Skip to content

Commit

Permalink
Upgrade kind to 0.10.0 / k8s 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed Feb 2, 2021
1 parent ba1e934 commit ca185d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ set -euxo pipefail
export PATH=$WSTMP:$PATH
if [ \! -x $WSTMP/kind ]
then
curl -Lo $WSTMP/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.9.0/kind-$(uname | tr '[:upper:]' '[:lower:]')-amd64
curl -Lo $WSTMP/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.10.0/kind-$(uname | tr '[:upper:]' '[:lower:]')-amd64
chmod +x $WSTMP/kind
fi
if [ \! -x $WSTMP/kubectl ]
then
curl -Lo $WSTMP/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.19.4/bin/$(uname | tr '[:upper:]' '[:lower:]')/amd64/kubectl
curl -Lo $WSTMP/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.20.2/bin/$(uname | tr '[:upper:]' '[:lower:]')/amd64/kubectl
chmod +x $WSTMP/kubectl
fi

Expand Down
4 changes: 2 additions & 2 deletions src/main/kubernetes/service-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:

---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: jenkins
rules:
Expand All @@ -30,7 +30,7 @@ rules:
verbs: ["get"]

---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: jenkins
Expand Down
4 changes: 2 additions & 2 deletions test-in-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
protocol: TCP
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: jenkins
rules:
Expand Down Expand Up @@ -103,7 +103,7 @@ rules:
resourceNames:
- privileged
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: jenkins
Expand Down

0 comments on commit ca185d5

Please sign in to comment.