Update scripts and templates

This commit is contained in:
Nikolai Rodionov 2024-04-02 18:23:10 +02:00
parent d20f6904cb
commit cbcbd9b9e6
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
3 changed files with 14 additions and 20 deletions

View File

@ -1,9 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ $1 == "--config" ]] ; then if [[ $1 == "--config" ]] ; then
cat <<EOF cat <<EOF
configVersion: v1 configVersion: v1
kubernetes: kubernetes:
- name: Watch softplayer configmaps - name: Watch bootstrap configmaps getting removed
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
executeHookOnEvent: ["Deleted"] executeHookOnEvent: ["Deleted"]

View File

@ -9,7 +9,7 @@ if [[ $1 == "--config" ]] ; then
cat <<EOF cat <<EOF
configVersion: v1 configVersion: v1
kubernetes: kubernetes:
- name: Watch softplayer configmaps - name: Watch bootstrap configmaps getting created
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
executeHookOnEvent: ["Added"] executeHookOnEvent: ["Added"]

View File

@ -1,5 +1,5 @@
apiVersion: tekton.dev/v1beta1 apiVersion: tekton.dev/v1beta1
kind: Pipeline kind: PipelineRun
metadata: metadata:
generateName: hetzner-cleanup generateName: hetzner-cleanup
namespace: "${SP_TEKTON_RUNTIME_NS}" namespace: "${SP_TEKTON_RUNTIME_NS}"
@ -9,20 +9,13 @@ spec:
value: "${SP_CUSTOMER_ID}" value: "${SP_CUSTOMER_ID}"
- name: environment - name: environment
value: "${SP_ENVIRONMENT}" value: "${SP_ENVIRONMENT}"
tasks: pipelineRef:
- name: cleanup-hetzner-infra
retries: 3
taskRef:
resolver: cluster resolver: cluster
params: params:
- name: kind - name: kind
value: task value: pipeline
- name: name - name: name
value: cleanup-hetzner-infra value: hetzner-cleanup
- name: namespace - name: namespace
value: tekton-pipelines value: tekton-pipelines
params: serviceAccountName: secret-manager
- name: environment
value: $(params.environment)
- name: namespace
value: $(params.namespace)