Skip to content

Commit e6159f8

Browse files
authored
Merge pull request #4973 from nojnhuh/asotwodoteight
bump ASO to v2.8.0
2 parents 9079793 + 2236fa7 commit e6159f8

File tree

16 files changed

+25797
-4241
lines changed

16 files changed

+25797
-4241
lines changed

.github/workflows/cover.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2222
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2323
with:
24-
go-version: '1.21'
24+
go-version: '1.22'
2525
- run: "PATH=/usr/local/go/bin:$PATH make test-cover"
2626
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
2727
env:

.github/workflows/dependabot-code-gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Go 1.x
2727
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2828
with:
29-
go-version: '1.21'
29+
go-version: '1.22'
3030
id: go
3131
- name: Check out code into the Go module directory
3232
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

.github/workflows/scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
- name: Setup go
2323
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2424
with:
25-
go-version: 1.21
25+
go-version: 1.22
2626
- name: Run verify container script
2727
run: make verify-container-images

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ linters-settings:
123123
arguments:
124124
- disableStutteringCheck
125125
staticcheck:
126-
go: "1.21"
126+
go: "1.22"
127127
stylecheck:
128-
go: "1.21"
128+
go: "1.22"
129129
unused:
130-
go: "1.21"
130+
go: "1.22"
131131

132132
issues:
133133
exclude-rules:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ARG ARCH
1919

2020
# Build the manager binary
21-
FROM golang:1.21 as builder
21+
FROM golang:1.22 as builder
2222
WORKDIR /workspace
2323

2424
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ CRD_ROOT ?= $(MANIFEST_ROOT)/crd/bases
165165
WEBHOOK_ROOT ?= $(MANIFEST_ROOT)/webhook
166166
RBAC_ROOT ?= $(MANIFEST_ROOT)/rbac
167167
ASO_CRDS_PATH := $(MANIFEST_ROOT)/aso/crds.yaml
168-
ASO_VERSION := v2.6.0
168+
ASO_VERSION := v2.8.0
169169
ASO_CRDS := resourcegroups.resources.azure.com natgateways.network.azure.com managedclusters.containerservice.azure.com managedclustersagentpools.containerservice.azure.com bastionhosts.network.azure.com virtualnetworks.network.azure.com virtualnetworkssubnets.network.azure.com privateendpoints.network.azure.com fleetsmembers.containerservice.azure.com extensions.kubernetesconfiguration.azure.com
170170

171171
# Allow overriding the imagePullPolicy
@@ -393,7 +393,7 @@ delete-workload-cluster: $(KUBECTL) ## Deletes the example workload Kubernetes c
393393
.PHONY: docker-pull-prerequisites
394394
docker-pull-prerequisites: ## Pull prerequisites for building controller-manager.
395395
docker pull docker/dockerfile:1.4
396-
docker pull docker.io/library/golang:1.21
396+
docker pull docker.io/library/golang:1.22
397397
docker pull gcr.io/distroless/static:latest
398398

399399
.PHONY: docker-build
@@ -647,7 +647,7 @@ release-binary: $(RELEASE_DIR) ## Compile and build release binaries.
647647
-e GOARCH=$(GOARCH) \
648648
-v "$$(pwd):/workspace" \
649649
-w /workspace \
650-
golang:1.21 \
650+
golang:1.22 \
651651
go build -a -ldflags '$(LDFLAGS) -extldflags "-static"' \
652652
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY))-$(GOOS)-$(GOARCH) $(RELEASE_BINARY)
653653

Tiltfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def validate_auth():
126126

127127
tilt_helper_dockerfile_header = """
128128
# Tilt image
129-
FROM golang:1.21 as tilt-helper
129+
FROM golang:1.22 as tilt-helper
130130
# Support live reloading with Tilt
131131
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
132132
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \

config/aso/crds.yaml

Lines changed: 25651 additions & 4108 deletions
Large diffs are not rendered by default.

config/aso/kustomization.yaml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
22
kind: Component
33
namespace: capz-system
44
resources:
5-
- https://github.com/Azure/azure-service-operator/releases/download/v2.6.0/azureserviceoperator_v2.6.0.yaml
5+
- https://github.com/Azure/azure-service-operator/releases/download/v2.8.0/azureserviceoperator_v2.8.0.yaml
66
- crds.yaml
77
- settings.yaml
88

@@ -25,38 +25,17 @@ patches:
2525
name: azureserviceoperator-system
2626
- patch: |-
2727
- op: test
28-
path: /spec/template/spec/containers/0/args/4
28+
path: /spec/template/spec/containers/0/args/6
2929
value: --crd-pattern=
3030
- op: replace # Users can specify additional ASO CRDs. CRDs should be appended with ';'
31-
path: /spec/template/spec/containers/0/args/4
31+
path: /spec/template/spec/containers/0/args/6
3232
value: --crd-pattern=${ADDITIONAL_ASO_CRDS:= }
3333
target:
3434
group: apps
3535
kind: Deployment
3636
name: azureserviceoperator-controller-manager
3737
version: v1
3838

39-
# This implements https://github.com/Azure/azure-service-operator/pull/4011
40-
# for versions of ASO which don't include that fix.
41-
- patch: |-
42-
apiVersion: apps/v1
43-
kind: Deployment
44-
metadata:
45-
name: azureserviceoperator-controller-manager
46-
namespace: azureserviceoperator-system
47-
spec:
48-
template:
49-
spec:
50-
containers:
51-
- name: manager
52-
env:
53-
- name: AZURE_USER_AGENT_SUFFIX
54-
valueFrom:
55-
secretKeyRef:
56-
key: AZURE_USER_AGENT_SUFFIX
57-
name: aso-controller-settings
58-
optional: true
59-
6039
replacements:
6140
- source:
6241
fieldPath: metadata.namespace

config/aso/settings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ stringData:
77
AZURE_AUTHORITY_HOST: ${AZURE_AUTHORITY_HOST:=""}
88
AZURE_RESOURCE_MANAGER_ENDPOINT: ${AZURE_RESOURCE_MANAGER_ENDPOINT:=""}
99
AZURE_RESOURCE_MANAGER_AUDIENCE: ${AZURE_RESOURCE_MANAGER_AUDIENCE:=""}
10-
AZURE_SYNC_PERIOD: ${AZURE_SYNC_PERIOD:="1h"}
10+
AZURE_SYNC_PERIOD: ${AZURE_SYNC_PERIOD:=""}
1111
AZURE_USER_AGENT_SUFFIX: cluster-api-provider-azure/main
1212
# Per-resource Secrets will be created based on a Cluster's AzureClusterIdentity.
1313
AZURE_SUBSCRIPTION_ID: ""

0 commit comments

Comments
 (0)