remove autolock feature

Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>
This commit is contained in:
Christian Kotzbauer
2020-06-20 09:37:44 +02:00
parent a574a67c61
commit c473caafc8
3 changed files with 0 additions and 86 deletions
-39
View File
@@ -1,39 +0,0 @@
{{- if .Values.autolock.enabled }}
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: {{ template "kured.fullname" . }}-lock
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "kured.name" . }}
chart: {{ template "kured.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
schedule: {{ .Values.autolock.schedulelock | quote }}
jobTemplate:
spec:
template:
metadata:
labels:
app: {{ template "kured.name" . }}
chart: {{ template "kured.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
serviceAccountName: {{ template "kured.serviceAccountName" . }}
containers:
- name: {{ template "kured.fullname" . }}-lock
image: "{{ .Values.autolock.image.repository }}:{{ .Values.autolock.image.tag }}"
command:
- kubectl
args:
- -n
- {{ .Release.Namespace }}
- annotate
- ds
- {{ template "kured.fullname" . }}
- weave.works/kured-node-lock={"nodeID":"manual"}
restartPolicy: Never
backoffLimit: 1
{{- end -}}
@@ -1,39 +0,0 @@
{{- if .Values.autolock.enabled }}
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: {{ template "kured.fullname" . }}-unlock
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "kured.name" . }}
chart: {{ template "kured.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
schedule: {{ .Values.autolock.scheduleUnlock | quote }}
jobTemplate:
spec:
template:
metadata:
labels:
app: {{ template "kured.name" . }}
chart: {{ template "kured.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
serviceAccountName: {{ template "kured.serviceAccountName" . }}
containers:
- name: {{ template "kured.fullname" . }}-unlock
image: "{{ .Values.autolock.image.repository }}:{{ .Values.autolock.image.tag }}"
command:
- kubectl
args:
- -n
- {{ .Release.Namespace }}
- annotate
- ds
- {{ template "kured.fullname" . }}
- weave.works/kured-node-lock-
restartPolicy: Never
backoffLimit: 1
{{- end -}}
-8
View File
@@ -16,14 +16,6 @@ serviceAccount:
create: true
name:
autolock:
enabled: false
image:
repository: docker.io/bitnami/kubectl
tag: 1.17.5
scheduleUnlock: 0 4 * * *
schedulelock: 0 6 * * *
updateStrategy: OnDelete