Skip to content

Commit 867a416

Browse files
authored
update Golang version to 1.21.7; update chart README (#2795)
1 parent 782795a commit 867a416

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/workflows/deps.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
- id: govulncheck
2727
uses: ./.github/actions/govulncheck
2828
with:
29-
go-version-input: 1.21.6
29+
go-version-input: 1.21.7
3030
go-version-file: go.mod
3131
cache: false
3232
repo-checkout: false
3333
- id: govulncheck-tests-agent
3434
uses: ./.github/actions/govulncheck
3535
with:
36-
go-version-input: 1.21.6
36+
go-version-input: 1.21.7
3737
go-version-file: test/agent/go.mod
3838
cache: false
3939
repo-checkout: false

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# VERSION is the source revision that executables and images are built from.
2323
VERSION ?= $(shell git describe --tags --always --dirty || echo "unknown")
2424
# GOLANG_IMAGE is the building golang container image used.
25-
GOLANG_IMAGE ?= public.ecr.aws/eks-distro-build-tooling/golang:1.21.6-7-gcc-al2
25+
GOLANG_IMAGE ?= public.ecr.aws/eks-distro-build-tooling/golang:1.21.7-8-gcc-al2
2626
# BASE_IMAGE_CNI is the base layer image for the primary AWS VPC CNI plugin container
2727
BASE_IMAGE_CNI ?= public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-iptables:latest.2
2828
# BASE_IMAGE_CNI_INIT is the base layer image for the AWS VPC CNI init container

charts/aws-vpc-cni/README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -108,25 +108,27 @@ $ helm install aws-vpc-cni --namespace kube-system eks/aws-vpc-cni --values valu
108108

109109
## Adopting the existing aws-node resources in an EKS cluster
110110

111-
If you do not want to delete the existing aws-node resources in your cluster that run the aws-vpc-cni and then install this helm chart, you can adopt the resources into a release instead. Refer to the script below to import existing resources into helm. Once you have annotated and labeled all the resources this chart specifies, enable the `originalMatchLabels` flag. If you have been careful this should not diff and leave all the resources unmodified and now under management of helm.
111+
If you do not want to delete the existing aws-node resources in your cluster that run the aws-vpc-cni and then install this helm chart, you can adopt the resources into a release instead. Refer to the script below to import existing resources into helm. Once you have annotated and labeled all the resources this chart specifies, enable the `originalMatchLabels` flag. If you have been careful, this should not diff and leave all the resources unmodified and now under management of helm.
112112

113-
WARNING: Substitute YOUR_HELM_RELEASE_NAME_HERE with the name of your helm release.
114113
```
115114
#!/usr/bin/env bash
116115
117116
set -euo pipefail
118117
119118
for kind in daemonSet clusterRole clusterRoleBinding serviceAccount; do
120119
echo "setting annotations and labels on $kind/aws-node"
121-
kubectl -n kube-system annotate --overwrite $kind aws-node meta.helm.sh/release-name=YOUR_HELM_RELEASE_NAME_HERE
120+
kubectl -n kube-system annotate --overwrite $kind aws-node meta.helm.sh/release-name=aws-vpc-cni
122121
kubectl -n kube-system annotate --overwrite $kind aws-node meta.helm.sh/release-namespace=kube-system
123122
kubectl -n kube-system label --overwrite $kind aws-node app.kubernetes.io/managed-by=Helm
124123
done
125124
126-
kubectl -n kube-system annotate --overwrite configmap amazon-vpc-cni meta.helm.sh/release-name=YOUR_HELM_RELEASE_NAME_HERE
125+
kubectl -n kube-system annotate --overwrite configmap amazon-vpc-cni meta.helm.sh/release-name=aws-vpc-cni
127126
kubectl -n kube-system annotate --overwrite configmap amazon-vpc-cni meta.helm.sh/release-namespace=kube-system
128127
kubectl -n kube-system label --overwrite configmap amazon-vpc-cni app.kubernetes.io/managed-by=Helm
129128
129+
Kubernetes recommends using server-side apply for more control over the field manager. After adopting the chart resources, you can run the following command to apply the chart:
130+
```
131+
helm template aws-vpc-cni --include-crds --namespace kube-system eks/aws-vpc-cni --set originalMatchLabels=true | kubectl apply --server-side --force-conflicts --field-manager Helm -f -
130132
```
131133
132134
## Migrate from Helm v2 to Helm v3

test/agent/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM public.ecr.aws/eks-distro-build-tooling/golang:1.21.6-7-gcc-al2 as builder
1+
FROM public.ecr.aws/eks-distro-build-tooling/golang:1.21.7-8-gcc-al2 as builder
22

33
WORKDIR /workspace
44
ENV GOPROXY direct

0 commit comments

Comments
 (0)