Update scripts and templates
This commit is contained in:
parent
d20f6904cb
commit
cbcbd9b9e6
@ -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"]
|
||||
|
@ -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"]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user