Skip to content

✨ Rosa Config implementaiton #5499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ resources:
- group: infrastructure
version: v1beta2
kind: AWSManagedCluster
- group: infrastructure
kind: ROSARoleConfig
version: v1beta2
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,9 @@ spec:
- name
type: object
installerRoleARN:
description: InstallerRoleARN is an AWS IAM role that OpenShift Cluster
Manager will assume to create the cluster..
description: |-
InstallerRoleARN is an AWS IAM role that OpenShift Cluster Manager will assume to create the cluster.
Required if RosaRoleConfigRef is not specified.
type: string
network:
description: Network config for the ROSA HCP cluster.
Expand Down Expand Up @@ -559,7 +560,9 @@ spec:
type: string
type: object
oidcID:
description: The ID of the internal OpenID Connect Provider.
description: |-
The ID of the internal OpenID Connect Provider.
Required if RosaRoleConfigRef is not specified.
type: string
x-kubernetes-validations:
- message: oidcID is immutable
Expand All @@ -575,8 +578,9 @@ spec:
description: The AWS Region the cluster lives in.
type: string
rolesRef:
description: AWS IAM roles used to perform credential requests by
the openshift operators.
description: |-
AWS IAM roles used to perform credential requests by the openshift operators.
Required if RosaRoleConfigRef is not specified.
properties:
controlPlaneOperatorARN:
description: "ControlPlaneOperatorARN is an ARN value referencing
Expand Down Expand Up @@ -755,15 +759,6 @@ spec:
[\n\t\t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\": [\n\t\t\t\t\"ec2:AttachVolume\",\n\t\t\t\t\"ec2:CreateSnapshot\",\n\t\t\t\t\"ec2:CreateTags\",\n\t\t\t\t\"ec2:CreateVolume\",\n\t\t\t\t\"ec2:DeleteSnapshot\",\n\t\t\t\t\"ec2:DeleteTags\",\n\t\t\t\t\"ec2:DeleteVolume\",\n\t\t\t\t\"ec2:DescribeInstances\",\n\t\t\t\t\"ec2:DescribeSnapshots\",\n\t\t\t\t\"ec2:DescribeTags\",\n\t\t\t\t\"ec2:DescribeVolumes\",\n\t\t\t\t\"ec2:DescribeVolumesModifications\",\n\t\t\t\t\"ec2:DetachVolume\",\n\t\t\t\t\"ec2:ModifyVolume\"\n\t\t\t],\n\t\t\t\"Resource\":
\"*\"\n\t\t}\n\t]\n}"
type: string
required:
- controlPlaneOperatorARN
- imageRegistryARN
- ingressARN
- kmsProviderARN
- kubeCloudControllerARN
- networkARN
- nodePoolManagementARN
- storageARN
type: object
rosaClusterName:
description: |-
Expand All @@ -776,6 +771,22 @@ spec:
x-kubernetes-validations:
- message: rosaClusterName is immutable
rule: self == oldSelf
rosaRoleConfigRef:
description: |-
RosaRoleConfigRef is a reference to a RosaRoleConfig resource that contains account and operator roles and OIDC configuration.
If specified, the roles and OIDC configuration will be taken from the referenced RosaRoleConfig instead of the direct fields.
properties:
name:
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
type: object
x-kubernetes-map-type: atomic
subnets:
description: |-
The Subnet IDs to use when installing the cluster.
Expand All @@ -787,6 +798,7 @@ spec:
description: |-
SupportRoleARN is an AWS IAM role used by Red Hat SREs to enable
access to the cluster account in order to provide support.
Required if RosaRoleConfigRef is not specified.
type: string
version:
description: OpenShift semantic version, for example "4.14.5".
Expand All @@ -805,22 +817,18 @@ spec:
- AlwaysAcknowledge
type: string
workerRoleARN:
description: WorkerRoleARN is an AWS IAM role that will be attached
to worker instances.
description: |-
WorkerRoleARN is an AWS IAM role that will be attached to worker instances.
Required if RosaRoleConfigRef is not specified.
type: string
required:
- availabilityZones
- channelGroup
- installerRoleARN
- oidcID
- region
- rolesRef
- rosaClusterName
- subnets
- supportRoleARN
- version
- versionGate
- workerRoleARN
type: object
status:
description: RosaControlPlaneStatus defines the observed state of ROSAControlPlane.
Expand Down
Loading
Loading