Skip to content

Commit

Permalink
*: clarify the defaults for identity references
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <[email protected]>
  • Loading branch information
stevekuznetsov committed Feb 9, 2024
1 parent 71d5769 commit 1e11e57
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 18 deletions.
4 changes: 3 additions & 1 deletion api/v1beta1/awscluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ type AWSClusterSpec struct {
// +optional
Bastion Bastion `json:"bastion"`

// IdentityRef is a reference to a identity to be used when reconciling this cluster
// +optional

// IdentityRef is a reference to an identity to be used when reconciling the managed control plane.
// If no identity is specified, the default identity for this controller will be used.
IdentityRef *AWSIdentityReference `json:"identityRef,omitempty"`

// S3Bucket contains options to configure a supporting S3 bucket for this
Expand Down
4 changes: 3 additions & 1 deletion api/v1beta2/awscluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ type AWSClusterSpec struct {
// +optional
Bastion Bastion `json:"bastion"`

// IdentityRef is a reference to a identity to be used when reconciling this cluster
// +optional

// IdentityRef is a reference to an identity to be used when reconciling the managed control plane.
// If no identity is specified, the default identity for this controller will be used.
IdentityRef *AWSIdentityReference `json:"identityRef,omitempty"`

// S3Bucket contains options to configure a supporting S3 bucket for this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,9 @@ spec:
type: array
type: object
identityRef:
description: IdentityRef is a reference to a identity to be used when
reconciling the managed control plane.
description: IdentityRef is a reference to an identity to be used
when reconciling the managed control plane. If no identity is specified,
the default identity for this controller will be used.
properties:
kind:
description: Kind of the identity.
Expand Down Expand Up @@ -1887,8 +1888,9 @@ spec:
type: array
type: object
identityRef:
description: IdentityRef is a reference to a identity to be used when
reconciling the managed control plane.
description: IdentityRef is a reference to an identity to be used
when reconciling the managed control plane. If no identity is specified,
the default identity for this controller will be used.
properties:
kind:
description: Kind of the identity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ spec:
x-kubernetes-map-type: atomic
identityRef:
description: IdentityRef is a reference to an identity to be used
when reconciling the managed control plane.
when reconciling the managed control plane. If no identity is specified,
the default identity for this controller will be used.
properties:
kind:
description: Kind of the identity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ spec:
type: array
type: object
identityRef:
description: IdentityRef is a reference to a identity to be used when
reconciling this cluster
description: IdentityRef is a reference to an identity to be used
when reconciling the managed control plane. If no identity is specified,
the default identity for this controller will be used.
properties:
kind:
description: Kind of the identity.
Expand Down Expand Up @@ -1141,8 +1142,9 @@ spec:
type: array
type: object
identityRef:
description: IdentityRef is a reference to a identity to be used when
reconciling this cluster
description: IdentityRef is a reference to an identity to be used
when reconciling the managed control plane. If no identity is specified,
the default identity for this controller will be used.
properties:
kind:
description: Kind of the identity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,10 @@ spec:
type: array
type: object
identityRef:
description: IdentityRef is a reference to a identity to be
used when reconciling this cluster
description: IdentityRef is a reference to an identity to
be used when reconciling the managed control plane. If no
identity is specified, the default identity for this controller
will be used.
properties:
kind:
description: Kind of the identity.
Expand Down Expand Up @@ -741,8 +743,10 @@ spec:
type: array
type: object
identityRef:
description: IdentityRef is a reference to a identity to be
used when reconciling this cluster
description: IdentityRef is a reference to an identity to
be used when reconciling the managed control plane. If no
identity is specified, the default identity for this controller
will be used.
properties:
kind:
description: Kind of the identity.
Expand Down
4 changes: 3 additions & 1 deletion controlplane/eks/api/v1beta1/awsmanagedcontrolplane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ type AWSManagedControlPlaneSpec struct { //nolint: maligned
// +optional
EKSClusterName string `json:"eksClusterName,omitempty"`

// IdentityRef is a reference to a identity to be used when reconciling the managed control plane.
// +optional

// IdentityRef is a reference to an identity to be used when reconciling the managed control plane.
// If no identity is specified, the default identity for this controller will be used.
IdentityRef *infrav1.AWSIdentityReference `json:"identityRef,omitempty"`

// NetworkSpec encapsulates all things related to AWS network.
Expand Down
4 changes: 3 additions & 1 deletion controlplane/eks/api/v1beta2/awsmanagedcontrolplane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ type AWSManagedControlPlaneSpec struct { //nolint: maligned
// +optional
EKSClusterName string `json:"eksClusterName,omitempty"`

// IdentityRef is a reference to a identity to be used when reconciling the managed control plane.
// +optional

// IdentityRef is a reference to an identity to be used when reconciling the managed control plane.
// If no identity is specified, the default identity for this controller will be used.
IdentityRef *infrav1.AWSIdentityReference `json:"identityRef,omitempty"`

// NetworkSpec encapsulates all things related to AWS network.
Expand Down
4 changes: 3 additions & 1 deletion controlplane/rosa/api/v1beta2/rosacontrolplane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ type RosaControlPlaneSpec struct { //nolint: maligned
// +optional
CredentialsSecretRef *corev1.LocalObjectReference `json:"credentialsSecretRef,omitempty"`

// IdentityRef is a reference to an identity to be used when reconciling the managed control plane.
// +optional

// IdentityRef is a reference to an identity to be used when reconciling the managed control plane.
// If no identity is specified, the default identity for this controller will be used.
IdentityRef *infrav1.AWSIdentityReference `json:"identityRef,omitempty"`
}

Expand Down

0 comments on commit 1e11e57

Please sign in to comment.