-
Notifications
You must be signed in to change notification settings - Fork 14
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
ROX-27130: Reconcile operators using ArgoCD #2195
Conversation
fef372d
to
d98821b
Compare
securedClusterReconcilerEnabled: false | ||
verticalPodAutoscaling: | ||
recommenders: [] | ||
applications: |
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 should we define apps in fleet-manager?
How about adding these apps to the bootstrap app?
We can target the HEAD revision and have kustomizations/helm values for each cluster if we want changes to the gitops config to take effect immediately.
UPD: But most likely we don't want that for operators, do we?
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 having all manifests in the acscs-manifests would be the end-goal, but it was a bit too radical for a single PR lol. Also, we'll need to remove the e2e-upgrade-tests suite altogether when we do
@@ -0,0 +1,163 @@ | |||
package argox |
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.
Is it like argo
+ rox
? :)
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.
lol. I meant argo
+ extensions
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.
Label selector must be changed, otherwise it doesn't match the default rollout group
} | ||
if want.Labels == nil { | ||
want.Labels = map[string]string{} | ||
if err := argox.ReconcileApplication(ctx, r.client, want); err != nil { |
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.
nice
/retest |
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.
Looks great 🎉
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.
Nice improvement!
} | ||
|
||
// Ensuring the desired applications have labels matching the existingStateSelector | ||
for k, v := range existingStateSelector { |
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.
This is plenty clear as it is but as FYI: https://pkg.go.dev/maps#Copy
IMHO it should really be called "Upsert" or "Update"
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ebensh, kovayur, kurlov, ludydoo 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 |
Description
This PR moves the reconciliation of RHACS operators to ArgoCD.
It introduces a new top-level field in the "Gitops Config" called "Applications". Those are ArgoCD applications that Fleetshard-Sync will manage.
Adds validation for the "applications" field
It removes the
rhacs_operators
field from the Gitops configurationIt removes the
fleetshard_sync_operator_health_status_images
metric, which is not used anywhere.SOPs will be modified once this is merged
GitOps config to be updated
Checklist (Definition of Done)
Test manual
ROX-12345: ...
Discussed security and business related topics privately. Will move any security and business related topics that arise to private communication channel.Add secret to app-interface Vault or Secrets Manager if necessaryRDS changes were e2e tested manuallyCheck AWS limits are reasonable for changes provisioning new resources(If applicable) Changes to the dp-terraform Helm values have been reflected in the addon on integration environmentTest manual
make deploy/bootstrap deploy/dev