Skip to content

Commit

Permalink
Add docs for ROSA
Browse files Browse the repository at this point in the history
- add new cluster template for ROSA clusters
  • Loading branch information
muraee committed Jan 3, 2024
1 parent 4699264 commit 4637126
Show file tree
Hide file tree
Showing 7 changed files with 1,653 additions and 315 deletions.
9 changes: 8 additions & 1 deletion controlplane/rosa/controllers/rosacontrolplane_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import (
)

const (
ocmAPIUrl = "https://api.stage.openshift.com"
rosaCreatorArnProperty = "rosa_creator_arn"

rosaControlPlaneKind = "ROSAControlPlane"
Expand Down Expand Up @@ -293,6 +292,10 @@ func (r *ROSAControlPlaneReconciler) reconcileNormal(ctx context.Context, rosaSc

// Create the connection, and remember to close it:
token := os.Getenv("OCM_TOKEN")
ocmAPIUrl := os.Getenv("OCM_API_URL")
if ocmAPIUrl == "" {
ocmAPIUrl = "https://api.openshift.com"
}
connection, err := sdk.NewConnectionBuilder().
Logger(ocmLogger).
Tokens(token).
Expand Down Expand Up @@ -340,6 +343,10 @@ func (r *ROSAControlPlaneReconciler) reconcileDelete(_ context.Context, rosaScop
// Create the connection, and remember to close it:
// TODO: token should be read from a secret: https://github.com/kubernetes-sigs/cluster-api-provider-aws/issues/4460
token := os.Getenv("OCM_TOKEN")
ocmAPIUrl := os.Getenv("OCM_API_URL")
if ocmAPIUrl == "" {
ocmAPIUrl = "https://api.openshift.com"
}
connection, err := sdk.NewConnectionBuilder().
Logger(ocmLogger).
Tokens(token).
Expand Down
3 changes: 3 additions & 0 deletions docs/book/src/SUMMARY_PREFIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
- [Using EKS Addons](./topics/eks/addons.md)
- [Enabling Encryption](./topics/eks/encryption.md)
- [Cluster Upgrades](./topics/eks/cluster-upgrades.md)
- [ROSA Support](./topics/rosa/index.md)
- [Enabling ROSA Support](./topics/rosa/enabling.md)
- [Creating a cluster](./topics/rosa/creating-a-cluster.md)
- [Bring Your Own AWS Infrastructure](./topics/bring-your-own-aws-infrastructure.md)
- [Specifying the IAM Role to use for Management Components](./topics/specify-management-iam-role.md)
- [Using external cloud provider with EBS CSI driver](./topics/external-cloud-provider-with-ebs-csi-driver.md)
Expand Down
Loading

0 comments on commit 4637126

Please sign in to comment.