Skip to content

Commit ae12190

Browse files
authored
fix: update gcp capi provider to work with latest capi charts (#865)
* fix: update gcp capi provider to work with latest capi charts * bump gcp chart dependency * allow helm to properly annotate certmanager SA * update bootstrap * bump helm/tf version
1 parent ade6b63 commit ae12190

File tree

12 files changed

+24
-23
lines changed

12 files changed

+24
-23
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: cluster-api-provider-gcp
33
repository: https://pluralsh.github.io/capi-helm-charts
4-
version: 0.1.4
5-
digest: sha256:4a5070742fa6e34bf27a5ea29d590a5c86cdac50f56522b1b79671181907da82
6-
generated: "2023-08-23T17:30:41.21781934+02:00"
4+
version: 0.1.9
5+
digest: sha256:276229b280a0de17bf5518f0a716d1d889100a7c52a9a49a651aa25d1d271363
6+
generated: "2023-11-03T15:03:07.222737147+01:00"

bootstrap/helm/cluster-api-provider-gcp/Chart.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ apiVersion: v2
22
name: cluster-api-provider-gcp
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 0.1.13
6-
appVersion: v1.4.5
5+
version: 0.2.0
6+
appVersion: v1.4.7
77
dependencies:
8-
- name: cluster-api-provider-gcp
9-
version: 0.1.4
10-
repository: https://pluralsh.github.io/capi-helm-charts
8+
- name: cluster-api-provider-gcp
9+
version: 0.1.9
10+
repository: https://pluralsh.github.io/capi-helm-charts
Binary file not shown.
Binary file not shown.

bootstrap/helm/cluster-api-provider-gcp/templates/gcpcluster-crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
name: gcpclusters.infrastructure.cluster.x-k8s.io
66
annotations:
7-
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/{{ include "cluster-api-provider-gcp.fullname" . }}-serving-cert'
7+
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/{{ include "cluster-api-provider-gcp.fullname" (index .Subcharts "cluster-api-provider-gcp") }}-serving-cert'
88
controller-gen.kubebuilder.io/version: v0.11.3
99
labels:
1010
clusterctl.cluster.x-k8s.io: ""
@@ -18,7 +18,7 @@ spec:
1818
clientConfig:
1919
caBundle: Cg==
2020
service:
21-
name: '{{ include "cluster-api-provider-gcp.fullname" . }}-webhook-service'
21+
name: '{{ include "cluster-api-provider-gcp.fullname" (index .Subcharts "cluster-api-provider-gcp") }}-webhook-service'
2222
namespace: '{{ .Release.Namespace }}'
2323
path: /convert
2424
conversionReviewVersions:

bootstrap/helm/cluster-api-provider-gcp/templates/gcpclustertemplate-crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
name: gcpclustertemplates.infrastructure.cluster.x-k8s.io
66
annotations:
7-
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/{{ include "cluster-api-provider-gcp.fullname" . }}-serving-cert'
7+
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/{{ include "cluster-api-provider-gcp.fullname" (index .Subcharts "cluster-api-provider-gcp") }}-serving-cert'
88
controller-gen.kubebuilder.io/version: v0.11.3
99
labels:
1010
clusterctl.cluster.x-k8s.io: ""
@@ -18,7 +18,7 @@ spec:
1818
clientConfig:
1919
caBundle: Cg==
2020
service:
21-
name: '{{ include "cluster-api-provider-gcp.fullname" . }}-webhook-service'
21+
name: '{{ include "cluster-api-provider-gcp.fullname" (index .Subcharts "cluster-api-provider-gcp") }}-webhook-service'
2222
namespace: '{{ .Release.Namespace }}'
2323
path: /convert
2424
conversionReviewVersions:

bootstrap/helm/cluster-api-provider-gcp/templates/gcpmachine-crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
name: gcpmachines.infrastructure.cluster.x-k8s.io
66
annotations:
7-
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/{{ include "cluster-api-provider-gcp.fullname" . }}-serving-cert'
7+
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/{{ include "cluster-api-provider-gcp.fullname" (index .Subcharts "cluster-api-provider-gcp") }}-serving-cert'
88
controller-gen.kubebuilder.io/version: v0.11.3
99
labels:
1010
clusterctl.cluster.x-k8s.io: ""
@@ -18,7 +18,7 @@ spec:
1818
clientConfig:
1919
caBundle: Cg==
2020
service:
21-
name: '{{ include "cluster-api-provider-gcp.fullname" . }}-webhook-service'
21+
name: '{{ include "cluster-api-provider-gcp.fullname" (index .Subcharts "cluster-api-provider-gcp") }}-webhook-service'
2222
namespace: '{{ .Release.Namespace }}'
2323
path: /convert
2424
conversionReviewVersions:

bootstrap/helm/cluster-api-provider-gcp/templates/gcpmachinetemplate-crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
name: gcpmachinetemplates.infrastructure.cluster.x-k8s.io
66
annotations:
7-
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/{{ include "cluster-api-provider-gcp.fullname" . }}-serving-cert'
7+
cert-manager.io/inject-ca-from: '{{ .Release.Namespace }}/{{ include "cluster-api-provider-gcp.fullname" (index .Subcharts "cluster-api-provider-gcp") }}-serving-cert'
88
controller-gen.kubebuilder.io/version: v0.11.3
99
labels:
1010
clusterctl.cluster.x-k8s.io: ""
@@ -18,7 +18,7 @@ spec:
1818
clientConfig:
1919
caBundle: Cg==
2020
service:
21-
name: '{{ include "cluster-api-provider-gcp.fullname" . }}-webhook-service'
21+
name: '{{ include "cluster-api-provider-gcp.fullname" (index .Subcharts "cluster-api-provider-gcp") }}-webhook-service'
2222
namespace: '{{ .Release.Namespace }}'
2323
path: /convert
2424
conversionReviewVersions:

bootstrap/helm/cluster-api-provider-gcp/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cluster-api-provider-gcp:
1111
manager:
1212
image:
1313
repository: ghcr.io/pluralsh/cluster-api-gcp-controller
14-
tag: v1.4.5
14+
tag: v1.4.7
1515
bootstrapMode: false
1616

1717
job:
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
cluster-api-provider-gcp:
2-
serviceAccount:
3-
annotations:
4-
iam.gke.io/gcp-service-account: {{ importValue "Terraform" "capi_sa_workload_identity_email" }}
2+
serviceAccounts:
3+
manager:
4+
annotations:
5+
iam.gke.io/gcp-service-account: {{ importValue "Terraform" "capi_sa_workload_identity_email" }}

0 commit comments

Comments
 (0)