This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (54 loc) · 2.48 KB
/
install-tanzu-cluster-essentials-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
52
53
54
55
56
57
58
name: "install-tanzu-cluster-essentials-dispatch"
on:
workflow_dispatch:
inputs:
cluster-provider:
description: "The Kubernetes service provider"
required: true
type: choice
options:
- eks
- aks
- gke
kubeconfig-contents:
description: "The base64 encoded contents of a .kube/config file that already has the current Kubernetes cluster context set"
required: true
jobs:
install-tanzu-cluster-essentials-on-aks:
if: github.event.inputs.cluster-provider == 'aks'
uses: ./.github/workflows/install-tanzu-cluster-essentials.yml
with:
cluster-provider: ${{ github.event.inputs.cluster-provider }}
secrets:
TANZU_NETWORK_API_TOKEN: ${{ secrets.TANZU_NETWORK_API_TOKEN }}
TANZU_NETWORK_USERNAME: ${{ secrets.TANZU_NETWORK_USERNAME }}
TANZU_NETWORK_PASSWORD: ${{ secrets.TANZU_NETWORK_PASSWORD }}
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}
KUBECONFIG_CONTENTS: ${{ github.event.inputs.kubeconfig-contents }}
install-tanzu-cluster-essentials-on-eks:
if: github.event.inputs.cluster-provider == 'eks'
uses: ./.github/workflows/install-tanzu-cluster-essentials.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 }}
TANZU_NETWORK_API_TOKEN: ${{ secrets.TANZU_NETWORK_API_TOKEN }}
TANZU_NETWORK_USERNAME: ${{ secrets.TANZU_NETWORK_USERNAME }}
TANZU_NETWORK_PASSWORD: ${{ secrets.TANZU_NETWORK_PASSWORD }}
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}
KUBECONFIG_CONTENTS: ${{ github.event.inputs.kubeconfig-contents }}
install-tanzu-cluster-essentials-on-gke:
if: github.event.inputs.cluster-provider == 'gke'
uses: ./.github/workflows/install-tanzu-cluster-essentials.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 }}
TANZU_NETWORK_API_TOKEN: ${{ secrets.TANZU_NETWORK_API_TOKEN }}
TANZU_NETWORK_USERNAME: ${{ secrets.TANZU_NETWORK_USERNAME }}
TANZU_NETWORK_PASSWORD: ${{ secrets.TANZU_NETWORK_PASSWORD }}
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}
KUBECONFIG_CONTENTS: ${{ github.event.inputs.kubeconfig-contents }}