Update scripts and templates
This commit is contained in:
parent
d20f6904cb
commit
cbcbd9b9e6
@ -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"]
|
||||||
|
@ -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"]
|
||||||
|
@ -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
|
resolver: cluster
|
||||||
retries: 3
|
params:
|
||||||
taskRef:
|
- name: kind
|
||||||
resolver: cluster
|
value: pipeline
|
||||||
params:
|
- name: name
|
||||||
- name: kind
|
value: hetzner-cleanup
|
||||||
value: task
|
- name: namespace
|
||||||
- name: name
|
value: tekton-pipelines
|
||||||
value: cleanup-hetzner-infra
|
serviceAccountName: secret-manager
|
||||||
- name: namespace
|
|
||||||
value: tekton-pipelines
|
|
||||||
params:
|
|
||||||
- name: environment
|
|
||||||
value: $(params.environment)
|
|
||||||
- name: namespace
|
|
||||||
value: $(params.namespace)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user