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

Added support for reusing the webhook TLS certificate across different deployments to prevent cases where operator takes too long to start up #282

Merged
merged 3 commits into from
Feb 13, 2025
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
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
Loading