mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
Revert "Split CMD into ENTRYPOINT and CMD for Dockerfile"
This commit is contained in:
@@ -27,5 +27,4 @@ USER 1000
|
|||||||
|
|
||||||
COPY --from=0 /go/src/sigs.k8s.io/descheduler/_output/bin/descheduler /bin/descheduler
|
COPY --from=0 /go/src/sigs.k8s.io/descheduler/_output/bin/descheduler /bin/descheduler
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/descheduler"]
|
CMD ["/bin/descheduler", "--help"]
|
||||||
CMD ["--help"]
|
|
||||||
|
|||||||
@@ -19,5 +19,4 @@ USER 1000
|
|||||||
|
|
||||||
COPY _output/bin/descheduler /bin/descheduler
|
COPY _output/bin/descheduler /bin/descheduler
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/descheduler"]
|
CMD ["/bin/descheduler", "--help"]
|
||||||
CMD ["--help"]
|
|
||||||
|
|||||||
@@ -65,6 +65,8 @@ spec:
|
|||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
command:
|
||||||
|
- "/bin/descheduler"
|
||||||
args:
|
args:
|
||||||
- "--policy-config-file"
|
- "--policy-config-file"
|
||||||
- "/policy-dir/policy.yaml"
|
- "/policy-dir/policy.yaml"
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ spec:
|
|||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
command:
|
||||||
|
- "/bin/descheduler"
|
||||||
args:
|
args:
|
||||||
- "--policy-config-file"
|
- "--policy-config-file"
|
||||||
- "/policy-dir/policy.yaml"
|
- "/policy-dir/policy.yaml"
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /policy-dir
|
- mountPath: /policy-dir
|
||||||
name: policy-volume
|
name: policy-volume
|
||||||
|
command:
|
||||||
|
- "/bin/descheduler"
|
||||||
args:
|
args:
|
||||||
- "--policy-config-file"
|
- "--policy-config-file"
|
||||||
- "/policy-dir/policy.yaml"
|
- "/policy-dir/policy.yaml"
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ spec:
|
|||||||
- name: descheduler
|
- name: descheduler
|
||||||
image: registry.k8s.io/descheduler/descheduler:v0.25.1
|
image: registry.k8s.io/descheduler/descheduler:v0.25.1
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
command:
|
||||||
|
- "/bin/descheduler"
|
||||||
args:
|
args:
|
||||||
- "--policy-config-file"
|
- "--policy-config-file"
|
||||||
- "/policy-dir/policy.yaml"
|
- "/policy-dir/policy.yaml"
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /policy-dir
|
- mountPath: /policy-dir
|
||||||
name: policy-volume
|
name: policy-volume
|
||||||
|
command:
|
||||||
|
- "/bin/descheduler"
|
||||||
args:
|
args:
|
||||||
- "--policy-config-file"
|
- "--policy-config-file"
|
||||||
- "/policy-dir/policy.yaml"
|
- "/policy-dir/policy.yaml"
|
||||||
|
|||||||
Reference in New Issue
Block a user