remove more travis references in deploy scripts
This commit is contained in:
parent
20486915af
commit
13eefc781b
@ -9,7 +9,7 @@ set -o nounset
|
|||||||
echo "${K8S_CA_CRT}" | base64 -d - > "${HOME}/k8s_ca.crt"
|
echo "${K8S_CA_CRT}" | base64 -d - > "${HOME}/k8s_ca.crt"
|
||||||
|
|
||||||
# Setup the local kubectl client
|
# Setup the local kubectl client
|
||||||
kubectl config set-context travis \
|
kubectl config set-context atst-deployer \
|
||||||
--cluster=atat-cluster \
|
--cluster=atat-cluster \
|
||||||
--user=atat-deployer \
|
--user=atat-deployer \
|
||||||
--namespace=atat
|
--namespace=atat
|
||||||
@ -21,7 +21,7 @@ kubectl config set-cluster atat-cluster \
|
|||||||
|
|
||||||
kubectl config set-credentials atat-deployer --token="$(echo ${K8S_USER_TOKEN} | base64 -d -)"
|
kubectl config set-credentials atat-deployer --token="$(echo ${K8S_USER_TOKEN} | base64 -d -)"
|
||||||
|
|
||||||
kubectl config use-context travis
|
kubectl config use-context atst-deployer
|
||||||
kubectl config current-context
|
kubectl config current-context
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
@ -8,7 +8,7 @@ kind: Role
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
metadata:
|
metadata:
|
||||||
namespace: atat
|
namespace: atat
|
||||||
name: travis-deploy-role
|
name: atst-deploy-role
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: ["extensions", "apps"]
|
- apiGroups: ["extensions", "apps"]
|
||||||
resources: ["deployments"]
|
resources: ["deployments"]
|
||||||
@ -26,7 +26,7 @@ rules:
|
|||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
metadata:
|
metadata:
|
||||||
name: travis-role-binding
|
name: atst-role-binding
|
||||||
namespace: atat
|
namespace: atat
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
@ -34,5 +34,5 @@ subjects:
|
|||||||
namespace: atat
|
namespace: atat
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: Role
|
kind: Role
|
||||||
name: travis-deploy-role
|
name: atst-deploy-role
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
@ -28,7 +28,7 @@ trap cleanup EXIT
|
|||||||
echo "${K8S_CA_CRT}" | base64 -d - > "${HOME}/k8s_ca.crt"
|
echo "${K8S_CA_CRT}" | base64 -d - > "${HOME}/k8s_ca.crt"
|
||||||
|
|
||||||
# Setup the local kubectl client
|
# Setup the local kubectl client
|
||||||
kubectl config set-context travis \
|
kubectl config set-context atst-deployer \
|
||||||
--cluster=atat-cluster \
|
--cluster=atat-cluster \
|
||||||
--user=atat-deployer \
|
--user=atat-deployer \
|
||||||
--namespace=atat
|
--namespace=atat
|
||||||
@ -40,7 +40,7 @@ kubectl config set-cluster atat-cluster \
|
|||||||
|
|
||||||
kubectl config set-credentials atat-deployer --token="$(echo ${K8S_USER_TOKEN} | base64 -d -)"
|
kubectl config set-credentials atat-deployer --token="$(echo ${K8S_USER_TOKEN} | base64 -d -)"
|
||||||
|
|
||||||
kubectl config use-context travis
|
kubectl config use-context atst-deployer
|
||||||
kubectl config current-context
|
kubectl config current-context
|
||||||
|
|
||||||
# Update the ATST deployment
|
# Update the ATST deployment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user