--- apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: cleanup-dns-records namespace: {{ .Values.pipelineNamespace }} labels: {{- include "tekton-pipelines.labels" . | nindent 4 }} spec: params: - name: namespace type: string - name: environment type: string steps: - name: get-provider-outputs image: alpine/k8s:1.29.2 script: |- #!/bin/sh kubectl get configmap "$(params.environment)"-provider-outputs \ --namespace "$(params.namespace)" -o yaml \ | yq '.data."provider_outputs.yaml"' > /tmp/outputs/provider_outputs.yaml - name: setup-dns image: git.badhouseplants.net/softplayer/softplayer-coskgne:latest env: - name: SP_STATE value: absent - name: SP_ENV value: $(params.environment) - name: SOPS_AGE_KEY value: {{ .Values.providers.hetzner.ageKey }} script: |- #!/bin/sh ansible-playbook /src/playbooks/other/cloudflare/playbook.yml workspaces: - name: outputs description: A folder to store outputs optional: false mountPath: /tmp/outputs