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
if [[ $1 == "--config" ]] ; then
cat <<EOF
configVersion: v1
kubernetes:
- name: Watch softplayer configmaps
- name: Watch bootstrap configmaps getting removed
apiVersion: v1
kind: ConfigMap
executeHookOnEvent: ["Deleted"]

View File

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

View File

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