-
Notifications
You must be signed in to change notification settings - Fork 579
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
✨ controlplane/rosa: allow configuring private link #4758
✨ controlplane/rosa: allow configuring private link #4758
Conversation
@stevekuznetsov: GitHub didn't allow me to assign the following users: muraee. Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -74,6 +74,21 @@ type RosaControlPlaneSpec struct { //nolint: maligned | |||
// - ocmApiUrl: Optional, defaults to 'https://api.openshift.com' | |||
// +optional | |||
CredentialsSecretRef *corev1.LocalObjectReference `json:"credentialsSecretRef,omitempty"` | |||
|
|||
AWS *AWSConfiguration `json:"aws,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our Spec doesn't really mirror the fields in the ROSA API - I don't see a good reason to diverge from theirs, having to remember the mapping from one to the other is extra mental overhead and as we are, we're putting a bunch of concerns into the same namespace as opposed to having higher-level fields to separate them out.
To that end, I made this mirror the API we're talking with and will move bits over one by one until we're more similar.
0821b5b
to
69ec498
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
69ec498
to
613908e
Compare
Not able to reproduce either of those failures locally ...
|
/retest |
@@ -76,7 +76,7 @@ DOCKER_BUILDKIT=1 | |||
export ACK_GINKGO_DEPRECATIONS := 1.16.4 | |||
|
|||
# Set --output-base for conversion-gen if we are not within GOPATH | |||
ifneq ($(abspath $(REPO_ROOT)),$(shell go env GOPATH)/src/sigs.k8s.io/cluster-api-provider-aws) | |||
ifneq ($(abspath $(REPO_ROOT)),$(abspath $(shell go env GOPATH)/src/sigs.k8s.io/cluster-api-provider-aws)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously Makefile
couldn't handle $GOPATH
with trailing /
...
613908e
to
0b3474e
Compare
4f94515
to
e4d46ba
Compare
We should not be creating aliases for APIs that are something *other* than the name of the package and its version. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
e4d46ba
to
3fbec96
Compare
/test pull-cluster-api-provider-aws-e2e |
/test pull-cluster-api-provider-aws-e2e-conformance |
AccountID(*controlPlane.Spec.AccountID). | ||
BillingAccountID(*controlPlane.Spec.AccountID). | ||
SubnetIDs(controlPlane.Spec.Subnets...). | ||
PrivateLink(controlPlane.Spec.AWS.PrivateLink). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if PrivateLink
is enabled we should set the API server listening mode to Internal
see https://github.com/openshift/rosa/blob/4639f9824693ae52d013716a2b6b47758180eaea/pkg/ocm/clusters.go#L1041-L1049
@@ -74,6 +74,22 @@ type RosaControlPlaneSpec struct { //nolint: maligned | |||
// - ocmApiUrl: Optional, defaults to 'https://api.openshift.com' | |||
// +optional | |||
CredentialsSecretRef *corev1.LocalObjectReference `json:"credentialsSecretRef,omitempty"` | |||
|
|||
// AWS configures aspects of the ROSA HCP workload cluster that are specific to AWS. | |||
AWS AWSConfiguration `json:"aws"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this field required?
Given this provider can only provision AWS clusters, the naming of this field aws
might be confusing. Do we really need to wrap the PrivateLink
field with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PrivateLink bool `json:"privateLink"` | ||
|
||
// PrivateLinkConfiguration configures the Private Link for the cluster | ||
PrivateLinkConfiguration *PrivateLinkConfiguration `json:"privateLinkConfiguration,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PrivateLinkConfiguration
is not exposed by the rosa cli, I don't think we should expose it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does someone configure the principals with the rosa
CLI? Is it day-2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think its possible to configure this, maybe only SREs have access.
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Superseded by #4832 /close |
@stevekuznetsov: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
controlplane/rosa: add a test for the cluster transform
Signed-off-by: Steve Kuznetsov skuznets@redhat.com
controlpane/rosa: make cluster declaration idomatic
Signed-off-by: Steve Kuznetsov skuznets@redhat.com
controlplane/rosa: allow configuring private link
Signed-off-by: Steve Kuznetsov skuznets@redhat.com