Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Add support for priorityClassName" #287

Merged
merged 1 commit into from
May 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions templates/injector-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ spec:
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 5
{{- if .Values.injector.priorityClassName }}
priorityClassName: {{ .Values.injector.priorityClassName }}
{{- end }}
{{- if .Values.injector.certs.secretName }}
volumeMounts:
- name: webhook-certs
Expand Down
3 changes: 0 additions & 3 deletions templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ spec:
{{- if .Values.server.extraContainers }}
{{ toYaml .Values.server.extraContainers | nindent 8}}
{{- end }}
{{- if .Values.server.priorityClassName }}
priorityClassName: {{ .Values.server.priorityClassName }}
{{- end }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
Expand Down
23 changes: 0 additions & 23 deletions test/unit/server-statefulset.bats
Original file line number Diff line number Diff line change
Expand Up @@ -872,29 +872,6 @@ load _helpers
[[ "${actual}" = *"foobar"* ]]
}

#--------------------------------------------------------------------
# priorityClassName

@test "server/standalone-StatefulSet: priorityClassName disabled by default" {
cd `chart_dir`
local actual=$(helm template \
-x templates/server-statefulset.yaml \
. | tee /dev/stderr |
yq -r '.spec.template.spec.priorityClassName' | tee /dev/stderr)

[ "${actual}" = "null" ]
}

@test "server/standalone-StatefulSet: priorityClassName enabled" {
cd `chart_dir`
local actual=$(helm template \
-x templates/server-statefulset.yaml \
--set 'server.priorityClassName=foo' \
. | tee /dev/stderr |
yq -r '.spec.template.spec.priorityClassName' | tee /dev/stderr)

[ "${actual}" = "foo" ]

#--------------------------------------------------------------------
# preStop
@test "server/standalone-StatefulSet: preStop sleep duration default" {
Expand Down
11 changes: 0 additions & 11 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ injector:
# memory: 256Mi
# cpu: 250m

# priorityClassName launches injector pods with a priority class.
# See: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
# for more details.
priorityClassName: null

# extraEnvironmentVars is a list of extra enviroment variables to set in the
# injector deployment.
extraEnvironmentVars: {}
Expand Down Expand Up @@ -136,12 +131,6 @@ server:
# cpu: 250m

# Ingress allows ingress services to be created to allow external access
# priorityClassName launches server pods with a priority class.
# See: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
# for more details.
priorityClassName: null

# Ingress allows ingress services to be created to allow external access
# from Kubernetes to access Vault pods.
ingress:
enabled: false
Expand Down