API changes for BYO AWS infra - #38
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c941a4a to
20143d4
Compare
|
Current set of comments addressed |
20143d4 to
3eccaac
Compare
3eccaac to
9455f23
Compare
| Platform PlatformSpec `json:"platform"` | ||
|
|
||
| // InfraID is used to identify the cluster in cloud platforms | ||
| InfraID string `json:"infraID,omitempty"` |
There was a problem hiding this comment.
can you remind me why we need this exposed in the spec?
There was a problem hiding this comment.
@enxebre originally I had this in the status because it would be auto-generated by the hosted cluster controller, then I remembered that at some point we will likely need a way to restore a HostedCluster cr for a cluster that already exists (for DR). If not included in the spec, we won't be able to do this.
There was a problem hiding this comment.
Make sense, though may be wait to bake into the API until we have the story for DR fleshed out to avoid confusion
|
lgtm |
|
/lgtm |
Move kube controller manager arguments to command line
The router's adaptConfig function lists existing Route objects to generate the HAProxy ConfigMap. When the router was registered early in the component list (position openshift#8), components that create Routes — ignition-server (openshift#35) and metrics-proxy (openshift#38) — had not yet run during the first reconcile pass. This caused the initial HAProxy config to miss ignition and metrics-proxy backends, routing ignition requests to the KAS default backend and failing NodePool ignition. Move the router component to after metricsproxyv2 (the last route-creating component) so that all Routes exist when the router config is generated. This reduces the race window between router config generation and route creation, though the informer cache update from watch events is still async so the ordering is not a hard guarantee. Signed-off-by: OpenShift CI Bot <ci-bot@redhat.com>
Proposal for changes to the API to support BYO infra for hypershift on AWS
So we need infra information to satisfy these requirements: