Skip to content
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

Use ignoreDifferences in AWSMachineTemplate.Spec to avoid out-of-sync baseclusters #251

Merged
merged 4 commits into from
Oct 1, 2022

Conversation

Rohitrajak1807
Copy link
Member

@Rohitrajak1807 Rohitrajak1807 commented Sep 29, 2022

Fixes #137

  • Use ignore difference rule for AWSMachineTemplate.spec
  • Doc changes to mention immutability

Testing (Manual):

Every 2.0s: argocd app list                                                                                                                                                                ip-172-31-25-241: Fri Sep 30 06:15:31 2022

NAME                         CLUSTER                         NAMESPACE         PROJECT  STATUS   HEALTH   SYNCPOLICY  CONDITIONS       REPO                                            PATH                       TARGET
cas-121                      https://kubernetes.default.svc  default           default  Synced   Healthy  Auto-Prune  <none>           https://github.com/ShaunakJoshi1407/arlon-demo  clusters/cas-121/mgmt      main
cas-121-calico-dynamic                                       default           default  Unknown  Healthy  Auto-Prune  ComparisonError  https://github.com/ShaunakJoshi1407/arlon-demo  bundles/calico             HEAD
cas-121-profile-prof-calico  https://kubernetes.default.svc  argocd            default  Synced   Healthy  Auto-Prune  <none>           https://github.com/ShaunakJoshi1407/arlon-demo  profiles/prof-calico/mgmt  HEAD
not-that-cluster             https://kubernetes.default.svc  not-that-cluster  default  Synced   Healthy  Auto-Prune  <none>           https://github.com/Rohitrajak1807/arln-oss.git  clusters/that-cluster      main
not-that-cluster-arlon       https://kubernetes.default.svc  default           default  Synced   Healthy  Auto-Prune  <none>           https://github.com/arlonproj/arlon.git          pkg/cluster/manifests      v0.9.0
that-cluster                 https://kubernetes.default.svc  that-cluster      default  Synced   Healthy  Auto-Prune  <none>           https://github.com/Rohitrajak1807/arln-oss.git  clusters/that-cluster      main
that-cluster-arlon           https://kubernetes.default.svc  default           default  Synced   Healthy  Auto-Prune  <none>           https://github.com/arlonproj/arlon.git          pkg/cluster/manifests      v0.9.0
  • that-cluster consumes the manifests at clusters/that-cluster.
  • The AWSMachineTemplate.spec is then edited and pushed to the git repository.
  • not-that-cluster is deployed using this modified manifest and put under observation for around 8 hours
  • Both these clusters are shown to be healthy and synced

@bcle
Copy link
Collaborator

bcle commented Sep 29, 2022

The PR is still in Draft mode. Was that intentional?

pkg/cluster/cluster_app.go Show resolved Hide resolved
pkg/cluster/cluster_app.go Show resolved Hide resolved
@Rohitrajak1807
Copy link
Member Author

Rohitrajak1807 commented Sep 29, 2022 via email

@Rohitrajak1807
Copy link
Member Author

Rohitrajak1807 commented Sep 29, 2022 via email

@Rohitrajak1807 Rohitrajak1807 marked this pull request as ready for review September 30, 2022 06:18
@Rohitrajak1807 Rohitrajak1807 self-assigned this Sep 30, 2022
@Rohitrajak1807 Rohitrajak1807 merged commit efd6843 into main Oct 1, 2022
@Rohitrajak1807 Rohitrajak1807 deleted the private/Rohitrajak1807/137 branch October 1, 2022 05:19
@Rohitrajak1807
Copy link
Member Author

Rohitrajak1807 commented Oct 11, 2022 via email

cruizen pushed a commit that referenced this pull request Dec 16, 2022
… baseclusters (#251)

* ignore diffs AWSMachineTemplate.spec
* add doc changes to mention immutability
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.

Changes to "immutable" fields of base cluster results in poor UX for existing clusters (OutOfSync)
2 participants