-
Notifications
You must be signed in to change notification settings - Fork 0
Reconcile release components by creating/deleting Argo Applications #351
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
Conversation
87910f8 to
3aaf803
Compare
|
Tested with fixes: |
Remove old controllers for unused resources (GiantSwarm App, Config) and common functions utilizing them. Also update apiextensions/v2 -> v3 for Release CR to include ConfigReference field.
2a5628c to
4ed13d8
Compare
| konfigureB := extractKonfigureVariables(b) | ||
|
|
||
| match := true | ||
| match = match && konfigureA.AppName != "" && konfigureA.AppName == konfigureB.AppName |
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 can we not compare the konfigureVariables struct directly here? Or implement a method func (r *konfigureVariables) compare(input konfigureVariables) bool?
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.
Good advice, let me fix that.
|
|
||
| } | ||
|
|
||
| type konfigureVariables struct { |
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.
Structs should always be at the top of the file.
| @@ -0,0 +1,255 @@ | |||
| package argoapps | |||
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.
Can we split this up into at least two files? Maybe the state reconciliation and konfigureVariables stuff in separate files.
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.
Sure, it'll make it more readable.
kopiczko
left a comment
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.
Reads nicely, I got a few remarks
7ee78ad to
76268cd
Compare
kopiczko
left a comment
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
|
Some comments from earlier seem still valid. Should we re-review anyway? |
|
@MarcelMue The PR is on hold until after onsite. Your remarks will be addressed. |
All good - just saw Pawel approve and was confused :D |
As far as I'm concerned it's fine. I should write, that I'm happy when @MarcelMue is happy. |
|
@kubasobon Same here. Closing as we're migrated to flux. |
Towards https://github.com/giantswarm/giantswarm/issues/18502
Checklist
go.modversions for the above