hotfix: remove PriorityClassName from deploy spec (#257)

This commit is contained in:
naison
2024-05-21 14:15:59 +08:00
committed by GitHub
parent a23b197554
commit 28f6d54398
2 changed files with 1 additions and 6 deletions

View File

@@ -123,7 +123,4 @@ kubevpn serve -L "tun:/127.0.0.1:8422?net=${TunIPv4}&route=${CIDR4}" -F "tcp://$
},
ImagePullPolicy: corev1.PullIfNotPresent,
})
if len(spec.PriorityClassName) == 0 {
spec.PriorityClassName = "system-cluster-critical"
}
}

View File

@@ -399,8 +399,7 @@ kubevpn serve -L "tcp://:10800" -L "tun://:8422?net=${TunIPv4}" -L "gtcp://:1080
Resources: Resources,
},
},
RestartPolicy: v1.RestartPolicyAlways,
PriorityClassName: "system-cluster-critical",
RestartPolicy: v1.RestartPolicyAlways,
},
},
},
@@ -565,7 +564,6 @@ func InjectVPNSidecar(ctx1 context.Context, factory cmdutil.Factory, namespace,
// pods without controller
if len(path) == 0 {
log.Infof("workload %s/%s is not controlled by any controller", namespace, workload)
podTempSpec.Spec.PriorityClassName = ""
for _, container := range podTempSpec.Spec.Containers {
container.LivenessProbe = nil
container.StartupProbe = nil