Fix golang lint errors (#2068)
* Fix golang lint errors Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com> * Typo for fields Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com> * Multi error fix Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com> * Multi error fix Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com> * Add nolint to logtostderr errcheck Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>
This commit is contained in:
@@ -154,15 +154,15 @@ func MergePodSpec(srcPodSpec *apiv1.PodSpec, targetPodSpec *apiv1.PodSpec) (*api
|
||||
srcPodSpec.AutomountServiceAccountToken = targetPodSpec.AutomountServiceAccountToken
|
||||
}
|
||||
|
||||
if targetPodSpec.HostNetwork != false {
|
||||
if targetPodSpec.HostNetwork {
|
||||
srcPodSpec.HostNetwork = targetPodSpec.HostNetwork
|
||||
}
|
||||
|
||||
if targetPodSpec.HostPID != false {
|
||||
if targetPodSpec.HostPID {
|
||||
srcPodSpec.HostPID = targetPodSpec.HostPID
|
||||
}
|
||||
|
||||
if targetPodSpec.HostIPC != false {
|
||||
if targetPodSpec.HostIPC {
|
||||
srcPodSpec.HostIPC = targetPodSpec.HostIPC
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user