-
Notifications
You must be signed in to change notification settings - Fork 852
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the kubeflow-m2m-oidc-configurator a CronJob (#2667)
* Make the kubeflow-m2m-oidc-configurator a CronJob Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski.kr3@roche.com> Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski94@gmail.com> * cronjob.kubeflow-m2m-oidc-configurator: concurrencyPolicy: Forbid Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski.kr3@roche.com> Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski94@gmail.com> * add tests/gh-actions/wait_for_kubeflow_m2m_oidc_configurator.sh Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski94@gmail.com> * Improve wait routine for m2m oidc configurator (#2) It was tested with self-hosted runner using custom dockerconfig credentials for debugging. Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski94@gmail.com> * use docker.io/curlimages/curl for cronjob.kubeflow-m2m-oidc-configurator.yaml Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski94@gmail.com> * make the m2m oidc configurator idempotent Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski94@gmail.com> * verify jwks configuration in requestauthentication Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski94@gmail.com> --------- Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski.kr3@roche.com> Signed-off-by: Krzysztof Romanowski <krzysztof.romanowski94@gmail.com>
- Loading branch information
1 parent
81ed256
commit a1dbf47
Showing
14 changed files
with
235 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
.../configure-self-signed-kubernetes-oidc-issuer/cronjob.kubeflow-m2m-oidc-configurator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: kubeflow-m2m-oidc-configurator | ||
namespace: istio-system | ||
spec: | ||
schedule: '*/5 * * * *' | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
backoffLimit: 3 | ||
ttlSecondsAfterFinished: 600 | ||
template: | ||
metadata: | ||
labels: {} | ||
spec: | ||
restartPolicy: OnFailure | ||
serviceAccountName: kubeflow-m2m-oidc-configurator | ||
containers: | ||
- image: docker.io/curlimages/curl | ||
name: kubeflow-m2m-oidc-configurator | ||
command: | ||
- /script.sh | ||
envFrom: | ||
- configMapRef: | ||
name: kubeflow-m2m-oidc-configurator-envs | ||
volumeMounts: | ||
- mountPath: /script.sh | ||
name: script | ||
subPath: script.sh | ||
resources: {} | ||
volumes: | ||
- name: script | ||
configMap: | ||
name: kubeflow-m2m-oidc-configurator-script | ||
defaultMode: 0777 | ||
items: | ||
- key: script.sh | ||
path: script.sh |
34 changes: 0 additions & 34 deletions
34
...netes-oidc-issuer/job.configure-kubernetes-oidc-issuer-jwks-in-requestauthentication.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.