Skip to content

Commit

Permalink
chore: Update to app version 2.9.6 (#50)
Browse files Browse the repository at this point in the history
* chore: Update to app version 2.9.6

* fix: Fix PDB compat for K8s versions >=1.21

* fix: Use keycloak image via quay.io

* chore: Wait until keycloak deployment completes
  • Loading branch information
mkilchhofer authored Mar 28, 2024
1 parent 89dd2df commit 05bb957
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,7 @@ spec:
spec:
containers:
- name: keycloak
image: jboss/keycloak:16.1.1
image: quay.io/keycloak/keycloak:16.1.1
env:
- name: KEYCLOAK_USER
value: admin
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
run: |
kubectl config use-context kind-chart-testing
kubectl apply -f .github/manifest.yaml
kubectl rollout status deployment/keycloak --timeout=600s
- name: Run chart-testing (install)
run: ct install --config .github/ct.yaml
4 changes: 2 additions & 2 deletions charts/gatekeeper/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ sources:
maintainers:
- name: gogatekeeper
url: https://gogatekeeper.github.io/
version: 0.1.46
appVersion: "2.9.4"
version: 0.1.47
appVersion: "2.9.6"
11 changes: 11 additions & 0 deletions charts/gatekeeper/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ Return the appropriate apiVersion for ingress
{{- end -}}
{{- end -}}

{{/*
Return the appropriate apiVersion for PodDisruptionBudget
*/}}
{{- define "gatekeeper.pdb.apiVersion" -}}
{{- if semverCompare "<1.21-0" (include "gatekeeper.kubeVersion" $) -}}
{{- print "policy/v1beta1" -}}
{{- else -}}
{{- print "policy/v1" -}}
{{- end -}}
{{- end -}}

{{/*
Return the target Kubernetes version
*/}}
Expand Down
2 changes: 1 addition & 1 deletion charts/gatekeeper/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.pdb.create }}
apiVersion: policy/v1beta1
apiVersion: {{ include "gatekeeper.pdb.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
name: {{ include "gatekeeper.fullname" . }}
Expand Down

0 comments on commit 05bb957

Please sign in to comment.