Skip to content

Commit

Permalink
Added support for reusing the webhook TLS certificate across differen…
Browse files Browse the repository at this point in the history
…t deployments to prevent cases where operator takes too long to start up (#282)
  • Loading branch information
orishoshan authored Feb 13, 2025
1 parent c774a00 commit 2edc900
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ if .Values.operator.priorityClassName }}
priorityClassName: {{ .Values.operator.priorityClassName }}
{{ end }}
containers:
- args:
- --secure-listen-address=0.0.0.0:8443
Expand Down
1 change: 1 addition & 0 deletions credentials-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
operator:
repository: otterize
image: credentials-operator
priorityClassName:
pullPolicy:
podSecurityContext:
fsGroup: 65532
Expand Down
8 changes: 8 additions & 0 deletions intents-operator/templates/intents-operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ metadata:
name: intents-operator-controller-manager
namespace: {{ .Release.Namespace }}
spec:
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
replicas: 1
selector:
matchLabels:
Expand Down Expand Up @@ -64,6 +69,9 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ if .Values.operator.priorityClassName }}
priorityClassName: {{ .Values.operator.priorityClassName }}
{{ end }}
containers:
- command:
- /manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resourceNames:
- intents-operator-webhook-cert
resources:
- secrets
verbs:
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
Expand Down
18 changes: 18 additions & 0 deletions intents-operator/templates/intents-operator-webhook-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
type: Opaque
kind: Secret
metadata:
name: intents-operator-webhook-cert
labels:
{{- with .Values.global.commonLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
app.kubernetes.io/version: {{ .Chart.Version }}
annotations:
{{- with .Values.global.commonAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
app.kubernetes.io/version: {{ .Chart.Version }}
data:
tls.crt: {{ "placeholder" | b64enc | quote }}
tls.key: {{ "placeholder" | b64enc | quote }}
1 change: 1 addition & 0 deletions intents-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
operator:
repository: otterize
image: intents-operator
priorityClassName:
pullPolicy:
podSecurityContext:
fsGroup: 65532
Expand Down
3 changes: 3 additions & 0 deletions network-mapper/templates/mapper-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ if .Values.mapper.priorityClassName }}
priorityClassName: {{ .Values.mapper.priorityClassName }}
{{ end }}
containers:
- name: {{ template "otterize.mapper.fullName" . }}
image: "{{ .Values.mapper.repository }}/{{ .Values.mapper.image }}:{{ default $.Chart.AppVersion .Values.mapper.tag }}"
Expand Down
1 change: 1 addition & 0 deletions network-mapper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mapper:
repository: otterize
image: network-mapper
pullPolicy:
priorityClassName:
podSecurityContext:
fsGroup: 65532
runAsGroup: 65532
Expand Down

0 comments on commit 2edc900

Please sign in to comment.