Skip to content

Commit ca7e10c

Browse files
committed
fix rebasing issue
1 parent bef45ab commit ca7e10c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

api/crds/manifests/dns.openmcp.cloud_dnsserviceconfigs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ spec:
229229
required:
230230
- name
231231
type: object
232+
serviceAccountName:
233+
description: |-
234+
ServiceAccountName is the name of the Kubernetes ServiceAccount used to
235+
authenticate to the GitRepository. This field is only supported for 'azure' provider.
236+
type: string
232237
sparseCheckout:
233238
description: |-
234239
SparseCheckout specifies a list of directories to checkout when cloning
@@ -290,6 +295,11 @@ spec:
290295
- interval
291296
- url
292297
type: object
298+
x-kubernetes-validations:
299+
- message: serviceAccountName can only be set when provider is
300+
'azure'
301+
rule: '!has(self.serviceAccountName) || (has(self.provider)
302+
&& self.provider == ''azure'')'
293303
helm:
294304
description: |-
295305
HelmRepositorySpec specifies the required configuration to produce an

internal/controllers/cluster/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ func (r *ClusterReconciler) deployHelmRelease(ctx context.Context, c *clustersv1
563563
hr.Spec.Upgrade.Remediation.Retries = 3
564564
// reference Cluster kubeconfig
565565
hr.Spec.KubeConfig = &fluxmeta.KubeConfigReference{
566-
SecretRef: fluxmeta.SecretKeyReference{
566+
SecretRef: &fluxmeta.SecretKeyReference{
567567
Name: rr.AccessRequest.Status.SecretRef.Name,
568568
Key: clustersv1alpha1.SecretKeyKubeconfig,
569569
},

0 commit comments

Comments
 (0)