Skip to content

Conversation

@kubasobon
Copy link
Contributor

@kubasobon kubasobon commented Sep 1, 2021

@kubasobon kubasobon self-assigned this Sep 1, 2021
@kubasobon
Copy link
Contributor Author

Tested with fixes:

gauss:thinkbook:~ k get application -n argocd -Lgiantswarm.io/managed-by | grep release-operator
app-operator-3.2.0                                  Synced        Healthy         release-operator
app-operator-3.2.1                                  Synced        Healthy         release-operator
aws-operator-10.2.0                                 Synced        Healthy         release-operator
aws-operator-10.3.1                                 Synced        Healthy         release-operator
aws-operator-5.7.6                                  Synced        Healthy         release-operator
aws-operator-9.3.10                                 Synced        Healthy         release-operator
capa-iam-controller-0.2.0                           Synced        Healthy         release-operator
cert-operator-0.1.0                                 Synced        Healthy         release-operator
cert-operator-1.0.1                                 Synced        Healthy         release-operator
cluster-api-bootstrap-provider-kubeadm-0.3.22-gs1   Unknown       Healthy         release-operator
cluster-api-control-plane-0.3.22-gs3                Unknown       Healthy         release-operator
cluster-api-core-0.3.22-gs4                         Synced        Healthy         release-operator
cluster-api-provider-aws-0.6.8-gs5                  Synced        Healthy         release-operator
cluster-apps-operator-0.6.0                         Synced        Healthy         release-operator
cluster-operator-0.23.18                            Synced        Healthy         release-operator
cluster-operator-3.6.0                              Synced        Healthy         release-operator
cluster-operator-3.7.1                              Synced        Healthy         release-operator
cluster-operator-3.9.0                              Synced        Healthy         release-operator
policies-aws-0.1.1                                  Synced        Healthy         release-operator
policies-common-0.1.1                               Synced        Healthy         release-operator

@kubasobon kubasobon changed the title Add argoapp with types + client Reconcile release components by creating/deleting Argo Applications Sep 9, 2021
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.
@kubasobon kubasobon requested review from a team September 10, 2021 10:08
@kubasobon kubasobon marked this pull request as ready for review September 10, 2021 10:08
konfigureB := extractKonfigureVariables(b)

match := true
match = match && konfigureA.AppName != "" && konfigureA.AppName == konfigureB.AppName
Copy link
Contributor

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?

Copy link
Contributor Author

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 {
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@kopiczko kopiczko left a 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

Copy link
Contributor

@kopiczko kopiczko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MarcelMue
Copy link
Contributor

Some comments from earlier seem still valid. Should we re-review anyway?

@kubasobon
Copy link
Contributor Author

@MarcelMue The PR is on hold until after onsite. Your remarks will be addressed.

@MarcelMue
Copy link
Contributor

@MarcelMue The PR is on hold until after onsite. Your remarks will be addressed.

All good - just saw Pawel approve and was confused :D

@kopiczko
Copy link
Contributor

@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.

@rossf7
Copy link
Contributor

rossf7 commented Feb 23, 2022

@kubasobon Same here. Closing as we're migrated to flux.

@rossf7 rossf7 closed this Feb 23, 2022
@rossf7 rossf7 deleted the argoapp-client branch February 23, 2022 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants