apiVersion: batch/v1 kind: Job metadata: name: keycloakoperator-job annotations: "helm.sh/hook": post-install spec: template: spec: containers: - name: crd-fetcher image: bitnami/kubectl:latest # Use Bitnami's kubectl image command: - "sh" - "-c" - "curl -fL {{ .Values.baseURL }}/{{ .Release.appVersion }}/kubernetes/kubernetes.yml -o /tmp/keycloakoperator.yml && kubectl apply -f /tmp/keycloakoperator.yml" restartPolicy: OnFailure