-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: Remove ocm dependency from policy controller #711
Conversation
89763f2
to
179d72f
Compare
93759a5
to
8e31e4b
Compare
8e31e4b
to
2349f2b
Compare
2349f2b
to
1fa4be0
Compare
/label tide/merge-method-squash |
81fc3f7
to
067f964
Compare
067f964
to
26fb49c
Compare
26fb49c
to
17dff20
Compare
@@ -82,12 +83,6 @@ func (t *MultiClusterGatewayTarget) setClusterGatewayTargets(clusterGateways []C | |||
return nil | |||
} | |||
|
|||
// ClusterGateway contains the addresses of a Gateway on a single cluster and the attributes of the target cluster. |
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 did this move into a utils package? Wondering would it be better in the api pkg as a none CRD type?
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.
like perhaps cluster_types.go
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.
Yeah gateway wrapper belongs elsewhere. pkg/apis
certainly makes more sense. Moving that though would probably be better done in a different PR either before or after this one. Will look into it, if it doesn't add a lot of additional changes I'll add 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.
I'm going to do a follow up for this. There are some other changes/refactors/cleanup i want to make to the code that could all be part of a separate PR that has no functional changes.
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.
Question about location of the wrapper types. Also would be good to have some verification steps
0d34848
to
02f61f5
Compare
02f61f5
to
073e1f5
Compare
Remove all dependencies related to OCM from the policy controller and associated code. Instead of labeling the OCM ManagedCluster resources with weight and geo metadata, the labels are now added to the gateway itself with the cluster name embedded. ``` "kuadrant.io/kind-mgc-control-plane_lb-attribute-weight": "TSTATTR", "kuadrant.io/kind-mgc-control-plane_lb-attribute-geo-code": "EU" ```
Adds the watch for ManagedCluster resources to the gateway controller and adds an additional step in the reconcile (reconcileClusterLabels) to map the kuadrant.io labels from cluster(s) to gateway. reconcileClusterLabels - Not Implemented
24c5c16
to
fd70c83
Compare
fd70c83
to
094605f
Compare
094605f
to
1227ec6
Compare
…+ integration test bump golangci-lint to 1.55.2 patch in e2e
policies, maps cluster events to gateways. Use "clusters.kuadrant.io" for all cluster labels on the target gateway and remove all existing cluster labels during reconciliation in order to remove labels removed from the cluster resource. Ensure only cluster labels for the current cluster are added when processing labels.
1227ec6
to
1846155
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikenairn, philbrookes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Remove all dependencies related to OCM from the policy controller and associated code.
Instead of labelling the OCM ManagedCluster resources with weight and geo metadata, the labels are now added to the gateway itself with the cluster name embedded.
closes #622
ToDo