-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (47 loc) · 2 KB
/
uninstall-tanzu-data-services-repo-dispatch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "uninstall-tanzu-data-services-repo-dispatch"
on:
workflow_dispatch:
inputs:
cluster-provider:
description: "The Kubernetes service provider"
required: true
type: choice
options:
- eks
- aks
- gke
- tkg»aws
- tkg»azure
kubeconfig-contents:
description: "The base64 encoded contents of a .kube/config file that already has the current Kubernetes cluster context set"
required: true
jobs:
uninstall-tanzu-data-services-repo-on-azure:
if: contains(fromJson('["aks","tkg»azure"]'), github.event.inputs.cluster-provider)
uses: ./.github/workflows/uninstall-tanzu-data-services-repo.yml
with:
cluster-provider: ${{ github.event.inputs.cluster-provider }}
secrets:
KUBECONFIG_CONTENTS: ${{ github.event.inputs.kubeconfig-contents }}
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}
uninstall-tanzu-data-services-repo-on-aws:
if: contains(fromJson('["eks","tkg»aws"]'), github.event.inputs.cluster-provider)
uses: ./.github/workflows/uninstall-tanzu-data-services-repo.yml
with:
cluster-provider: ${{ github.event.inputs.cluster-provider }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
KUBECONFIG_CONTENTS: ${{ github.event.inputs.kubeconfig-contents }}
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}
uninstall-tanzu-data-services-repo-on-gke:
if: github.event.inputs.cluster-provider == 'gke'
uses: ./.github/workflows/uninstall-tanzu-data-services-repo.yml
with:
cluster-provider: ${{ github.event.inputs.cluster-provider }}
secrets:
GOOGLE_PROJECT_ID: ${{ secrets.GOOGLE_PROJECT_ID }}
GOOGLE_SERVICE_ACCOUNT_KEY: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}
KUBECONFIG_CONTENTS: ${{ github.event.inputs.kubeconfig-contents }}
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}