-
Notifications
You must be signed in to change notification settings - Fork 7
/
tanzu-application-platform.sh
executable file
·39 lines (30 loc) · 1.15 KB
/
tanzu-application-platform.sh
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
#!/bin/bash
tanzu_net_user=$1
tanzu_net_pass=$2
version=${TAP_VERSION:-1.0.1}
export INSTALL_REGISTRY_USERNAME=${tanzu_net_user}
export INSTALL_REGISTRY_PASSWORD=${tanzu_net_pass}
export INSTALL_REGISTRY_HOSTNAME=registry.tanzu.vmware.com
kubectl create namespace tap-install
tanzu secret registry add tap-registry \
--username ${INSTALL_REGISTRY_USERNAME} \
--password ${INSTALL_REGISTRY_PASSWORD} \
--server ${INSTALL_REGISTRY_HOSTNAME} \
--export-to-all-namespaces \
--namespace tap-install \
--yes
tanzu package repository add tanzu-tap-repository \
--url registry.tanzu.vmware.com/tanzu-application-platform/tap-packages:$version \
--namespace tap-install
tanzu package available list --namespace tap-install
cp tap-values-template.yml tap-values.yml
yq w -i tap-values.yml 'buildservice.tanzunet_username' "${tanzu_net_user}"
yq w -i tap-values.yml 'buildservice.tanzunet_password' "${tanzu_net_pass}"
tanzu package installed update tap \
--package-name tap.tanzu.vmware.com \
--version ${version} \
--values-file tap-values.yml \
--namespace tap-install \
--install
rm tap-values.yml
tanzu package installed list --namespace tap-install