Skip to content

Commit

Permalink
feat: Add operator.deploymentAnnotation value (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Sep 12, 2024
1 parent 13f5fe5 commit b473d5e
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
4 changes: 2 additions & 2 deletions charts/keycloak-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: keycloak-operator
description: Deploy Keycloak Operator and Keycloak
type: application
version: 1.3.4
version: 1.3.5
appVersion: "25.0.5"
icon: https://www.keycloak.org/resources/images/logo-stacked.svg
home: https://www.keycloak.org
Expand All @@ -16,4 +16,4 @@ maintainers:
annotations:
artifacthub.io/changes: |
- kind: changed
description: "chore(keycloak): update to v25.0.5"
description: "feat: Add operator.deploymentAnnotation value"
5 changes: 3 additions & 2 deletions charts/keycloak-operator/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions charts/keycloak-operator/templates/operator/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
name: {{ include "keycloak-operator.operator.fullname" . }}
labels:
{{- include "keycloak-operator.operator.labels" . | nindent 4 }}
{{- with .Values.operator.deploymentAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.operator.replicaCount }}
selector:
Expand Down
20 changes: 10 additions & 10 deletions charts/keycloak-operator/tests/__snapshot__/default_test.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: keycloakcontroller-cluster-role
rules:
- apiGroups:
Expand All @@ -36,7 +36,7 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: keycloakrealmimportcontroller-cluster-role
rules:
- apiGroups:
Expand All @@ -63,7 +63,7 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: RELEASE-NAME-keycloak-operator-operator
spec:
replicas: 1
Expand Down Expand Up @@ -128,7 +128,7 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: keycloak-operator-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand All @@ -147,7 +147,7 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: keycloak-operator-view
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand All @@ -166,7 +166,7 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: keycloakcontroller-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand All @@ -185,7 +185,7 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: keycloakrealmimportcontroller-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand All @@ -204,7 +204,7 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: keycloak-operator-role
rules:
- apiGroups:
Expand Down Expand Up @@ -267,7 +267,7 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: RELEASE-NAME-keycloak-operator-operator
spec:
ports:
Expand All @@ -290,5 +290,5 @@ should match snapshot:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: keycloak-operator
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: RELEASE-NAME-keycloak-operator
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ should match snapshot:
app.kubernetes.io/component: keycloak
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: keycloak
spec:
features:
Expand All @@ -34,7 +34,7 @@ should match snapshot:
labels:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/version: 25.0.5
helm.sh/chart: keycloak-operator-1.3.4
helm.sh/chart: keycloak-operator-1.3.5
name: RELEASE-NAME-keycloak-operator-test
spec:
keycloakCRName: keycloak
Expand Down
3 changes: 3 additions & 0 deletions charts/keycloak-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ operator:
name: ""

# -- Annotations to set on the Operator Deployment.
deploymentAnnotations: {}

# -- Annotations to set on the Operator Pod.
podAnnotations: {}

# -- Pod security group configuration for Operator Deployment.
Expand Down

0 comments on commit b473d5e

Please sign in to comment.