Skip to content

Commit

Permalink
fix: Install protoc to run codegen; fix warnings in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs committed Apr 28, 2024
1 parent ff575cf commit 6c900eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions hack/e2e/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,9 @@ spec:
type: RollingUpdate
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
k8s-app: aws-iam-authenticator
spec:

# use service account with access to
serviceAccountName: aws-iam-authenticator

Expand All @@ -209,6 +206,10 @@ spec:
# run on each master node
nodeSelector:
node-role.kubernetes.io/master: ""

# mark pod as critical to the cluster
priorityClassName: system-cluster-critical

tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
Expand Down
4 changes: 2 additions & 2 deletions hack/e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ fi
## Applying test roles

loudecho "Applying testing roles"
${KUBECTL_BIN} apply -f "${ROLES_SPEC_FILE}" --kubeconfig "${KUBECONFIG_ADMIN}"
${KUBECTL_BIN} apply --server-side -f "${ROLES_SPEC_FILE}" --kubeconfig "${KUBECONFIG_ADMIN}"

## Updating the DaemonSet

Expand All @@ -218,7 +218,7 @@ sed -i "s#<IMAGE_NAME>#${IMAGE_NAME}:${IMAGE_TAG}#g" "${DAEMONSET_FILE}"
## applying the daemonset to the cluster

loudecho "Applying the daemonset"
${KUBECTL_BIN} apply -f "${DAEMONSET_FILE}" --kubeconfig "${KUBECONFIG_ADMIN}"
${KUBECTL_BIN} apply --server-side -f "${DAEMONSET_FILE}" --kubeconfig "${KUBECONFIG_ADMIN}"

kubectl get pods -n kube-system --kubeconfig "${KUBECONFIG_ADMIN}" | grep aws-iam-authenticator | awk '{print $1}' | xargs kubectl delete pod -n kube-system --kubeconfig "${KUBECONFIG_ADMIN}"

Expand Down
1 change: 1 addition & 0 deletions hack/test-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ mkdir -p ${TEST_ARTIFACTS}/k8s.io/kubernetes
git clone --branch ${KUBERNETES_TAG} --depth 1 https://github.com/kubernetes/kubernetes.git ${TEST_ARTIFACTS}/k8s.io/kubernetes --depth 1

pushd ${TEST_ARTIFACTS}/k8s.io/kubernetes
./hack/install-protoc.sh
./hack/update-codegen.sh
./hack/install-etcd.sh
export PATH="${TEST_ARTIFACTS}/k8s.io/kubernetes/third_party/etcd:${PATH}"
Expand Down

0 comments on commit 6c900eb

Please sign in to comment.