
This patchset copies the development-pipeline and standard-container into the sample network mongodb directory to begin testing the pipeline and standard-container in a namespace created by jarvis-system. Change-Id: I8448a122e8da218752ea57b15fb2983881e90ec9
28 lines
971 B
YAML
28 lines
971 B
YAML
apiVersion: tekton.dev/v1beta1
|
|
kind: Task
|
|
metadata:
|
|
name: cleanup
|
|
namespace: {{ $.Release.Namespace }}
|
|
spec:
|
|
description: >-
|
|
This task gathers logs and cleans up the environment
|
|
workspaces:
|
|
- name: k8s_cluster_data
|
|
- name: development_pipeline_data
|
|
steps:
|
|
- name: cleanup
|
|
image: {{ $.Values.tasks.cleanup.cleanupImage }}
|
|
volumeMounts:
|
|
- mountPath: $(workspaces.development_pipeline_data.path)/config
|
|
name: kubeconfig
|
|
script: |
|
|
#!/bin/sh
|
|
ansible-playbook -vvv "{{ $.Values.tasks.cleanup.cleanupPlaybook }}" -i hosts \
|
|
-e @"$(workspaces.development_pipeline_data.path)/default.json" \
|
|
-e @"$(workspaces.development_pipeline_data.path)/chart.json" \
|
|
-e @"$(workspaces.development_pipeline_data.path)/image.json" \
|
|
-e @"$(workspaces.development_pipeline_data.path)/cluster.json"
|
|
volumes:
|
|
- name: kubeconfig
|
|
secret:
|
|
secretName: kubeconfig-secret |