1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-25 20:59:28 +01:00

Split CMD into ENTRYPOINT and CMD for Dockerfile

--help is now an CMD which means explicitly providing a command override in kubernetes is no longer required. You can now simply provide the necessary arguments
This commit is contained in:
Bobonium
2022-10-27 12:33:00 +02:00
parent 6481f1bc38
commit 4d203c5e0c
7 changed files with 5 additions and 12 deletions

View File

@@ -27,4 +27,6 @@ USER 1000
COPY --from=0 /go/src/sigs.k8s.io/descheduler/_output/bin/descheduler /bin/descheduler
CMD ["/bin/descheduler", "--help"]
ENTRYPOINT ["/bin/descheduler"]
CMD ["--help"]

View File

@@ -19,4 +19,5 @@ USER 1000
COPY _output/bin/descheduler /bin/descheduler
CMD ["/bin/descheduler", "--help"]
ENTRYPOINT ["/bin/descheduler"]
CMD ["--help"]

View File

@@ -62,8 +62,6 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- "/bin/descheduler"
args:
- "--policy-config-file"
- "/policy-dir/policy.yaml"

View File

@@ -43,8 +43,6 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- "/bin/descheduler"
args:
- "--policy-config-file"
- "/policy-dir/policy.yaml"

View File

@@ -20,8 +20,6 @@ spec:
volumeMounts:
- mountPath: /policy-dir
name: policy-volume
command:
- "/bin/descheduler"
args:
- "--policy-config-file"
- "/policy-dir/policy.yaml"

View File

@@ -21,8 +21,6 @@ spec:
- name: descheduler
image: k8s.gcr.io/descheduler/descheduler:v0.25.0
imagePullPolicy: IfNotPresent
command:
- "/bin/descheduler"
args:
- "--policy-config-file"
- "/policy-dir/policy.yaml"

View File

@@ -18,8 +18,6 @@ spec:
volumeMounts:
- mountPath: /policy-dir
name: policy-volume
command:
- "/bin/descheduler"
args:
- "--policy-config-file"
- "/policy-dir/policy.yaml"