Skip to content

Commit 6dab332

Browse files
authored
Merge branch 'main' into af/RetrieveIDServiceServer
2 parents 3bad5b6 + 3bfe95a commit 6dab332

File tree

9 files changed

+34
-27
lines changed

9 files changed

+34
-27
lines changed

.github/workflows/link-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222

23-
- uses: gaurav-nelson/github-action-markdown-link-check@1b916f2cf6c36510a6059943104e3c42ce6c16bc # v1.0.16
23+
- uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # v1.0.17
2424
with:
2525
use-quiet-mode: 'yes'
2626
config-file: ".markdownlinkcheck.json"

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818

19-
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
19+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
2020
with:
2121
go-version: "1.22"
2222
check-latest: true
2323
cache: false
2424

2525
- name: golangci-lint
26-
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
26+
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
2727
with:
2828
version: v1.63

OWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
approvers:
44
- sig-cluster-lifecycle-leads
5-
- sig-gcp-leads
65
- cluster-api-admins
76
- cluster-api-maintainers
87
- cluster-api-gcp-maintainers

OWNERS_ALIASES

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ aliases:
88
- vincepri
99

1010
cluster-api-admins:
11-
- CecileRobertMichon
11+
- fabriziopandini
12+
- sbueringer
1213
- vincepri
1314

1415
cluster-api-maintainers:
@@ -18,14 +19,12 @@ aliases:
1819
- sbueringer
1920
- vincepri
2021

21-
sig-gcp-leads:
22-
- abgworrall
23-
2422
cluster-api-gcp-maintainers:
2523
- cpanato
24+
- damdo
2625
- dims
2726
- richardcase
27+
- salasberryfin
2828

2929
cluster-api-gcp-reviewers:
30-
- damdo
31-
- salasberryfin
30+

Tiltfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,24 @@ def validate_auth():
9898

9999
tilt_helper_dockerfile_header = """
100100
# Tilt image
101-
FROM golang:1.18 as tilt-helper
101+
FROM golang:1.23.6 as tilt-helper
102+
# Install delve. Note this should be kept in step with the Go release minor version.
103+
RUN go install github.com/go-delve/delve/cmd/[email protected]
102104
# Support live reloading with Tilt
103-
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
104-
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \
105-
chmod +x /start.sh && chmod +x /restart.sh && \
106-
touch /process.txt && chmod 0666 /process.txt `# pre-create PID file to allow even non-root users to run the image`
105+
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/tilt-dev/rerun-process-wrapper/master/restart.sh && \
106+
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/tilt-dev/rerun-process-wrapper/master/start.sh && \
107+
chmod +x /start.sh && chmod +x /restart.sh && chmod +x /go/bin/dlv && \
108+
touch /process.txt && chmod 0777 /process.txt `# pre-create PID file to allow even non-root users to run the image`
107109
"""
108110

109111
tilt_dockerfile_header = """
110-
FROM gcr.io/distroless/base:debug as tilt
112+
FROM golang:1.23.6 as tilt
111113
WORKDIR /
114+
COPY --from=tilt-helper /process.txt .
112115
COPY --from=tilt-helper /start.sh .
113116
COPY --from=tilt-helper /restart.sh .
114117
COPY --from=tilt-helper /process.txt .
118+
COPY --from=tilt-helper /go/bin/dlv .
115119
COPY manager .
116120
"""
117121

cloud/services/container/clusters/reconcile.go

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -457,17 +457,21 @@ func (s *Service) checkDiffAndPrepareUpdate(existingCluster *containerpb.Cluster
457457
}
458458

459459
// LoggingService
460-
if existingCluster.GetLoggingService() != s.scope.GCPManagedControlPlane.Spec.LoggingService.String() {
461-
needUpdate = true
462-
clusterUpdate.DesiredLoggingService = s.scope.GCPManagedControlPlane.Spec.LoggingService.String()
463-
log.V(2).Info("LoggingService config update required", "current", existingCluster.GetLoggingService(), "desired", s.scope.GCPManagedControlPlane.Spec.LoggingService.String())
460+
if specLoggingService := s.scope.GCPManagedControlPlane.Spec.LoggingService; specLoggingService != nil {
461+
if existingCluster.GetLoggingService() != specLoggingService.String() {
462+
needUpdate = true
463+
clusterUpdate.DesiredLoggingService = specLoggingService.String()
464+
log.V(2).Info("LoggingService config update required", "current", existingCluster.GetLoggingService(), "desired", specLoggingService.String())
465+
}
464466
}
465467

466468
// MonitoringService
467-
if existingCluster.GetMonitoringService() != s.scope.GCPManagedControlPlane.Spec.MonitoringService.String() {
468-
needUpdate = true
469-
clusterUpdate.DesiredLoggingService = s.scope.GCPManagedControlPlane.Spec.MonitoringService.String()
470-
log.V(2).Info("MonitoringService config update required", "current", existingCluster.GetMonitoringService(), "desired", s.scope.GCPManagedControlPlane.Spec.MonitoringService.String())
469+
if specMonitoringService := s.scope.GCPManagedControlPlane.Spec.MonitoringService; specMonitoringService != nil {
470+
if existingCluster.GetMonitoringService() != specMonitoringService.String() {
471+
needUpdate = true
472+
clusterUpdate.DesiredLoggingService = specMonitoringService.String()
473+
log.V(2).Info("MonitoringService config update required", "current", existingCluster.GetMonitoringService(), "desired", specMonitoringService.String())
474+
}
471475
}
472476

473477
// DesiredMasterAuthorizedNetworksConfig

cloudbuild-nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ timeout: 3600s
33
options:
44
substitution_option: ALLOW_LOOSE
55
steps:
6-
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240210-29014a6e3a'
6+
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud@sha256:4e830b673791d5595719bc6c4ca62dce3746b4e20d749e45004254bc6ef0a140' # v20250116-2a05ea7e3d go 1.23.4
77
entrypoint: make
88
env:
99
- DOCKER_CLI_EXPERIMENTAL=enabled

cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ timeout: 3600s
33
options:
44
substitution_option: ALLOW_LOOSE
55
steps:
6-
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240210-29014a6e3a'
6+
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud@sha256:4e830b673791d5595719bc6c4ca62dce3746b4e20d749e45004254bc6ef0a140' # v20250116-2a05ea7e3d go 1.23.4
77
entrypoint: make
88
env:
99
- DOCKER_CLI_EXPERIMENTAL=enabled

exp/controllers/gcpmanagedcontrolplane_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ func (r *GCPManagedControlPlaneReconciler) reconcileDelete(ctx context.Context,
215215
}
216216
}
217217

218-
if conditions.Get(managedControlPlaneScope.GCPManagedControlPlane, infrav1exp.GKEControlPlaneDeletingCondition).Reason == infrav1exp.GKEControlPlaneDeletedReason {
218+
if managedControlPlaneScope.GCPManagedControlPlane != nil &&
219+
conditions.Get(managedControlPlaneScope.GCPManagedControlPlane, infrav1exp.GKEControlPlaneDeletingCondition).Reason == infrav1exp.GKEControlPlaneDeletedReason {
219220
controllerutil.RemoveFinalizer(managedControlPlaneScope.GCPManagedControlPlane, infrav1exp.ManagedControlPlaneFinalizer)
220221
}
221222

0 commit comments

Comments
 (0)