-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from projectsyn/set-noprune
Disable automatic pruning for ArgoCD app
- Loading branch information
Showing
6 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
= Upgrade `component-argocd` from `v5.5.x` to `v6.x` | ||
|
||
== Migration to ArgoCD Operator | ||
|
||
As of component version 6, the ArgoCD operator is used to manage ArgoCD on the cluster. | ||
To avoid ArgoCD becoming unavailable during the migration, it has to be prevented from pruning itself until the migration is complete. | ||
|
||
|
||
=== 1. Ensure component-argocd version v5.5.0 or higher is rolled out | ||
|
||
component-argocd v5.5.0 or higher disables auto-pruning by default. | ||
This is required for the migration to succeed. | ||
Ensure your cluster uses component-argocd v5.5.0 or higher. | ||
|
||
=== 2. Ensure Steward version v0.9.0 or higher is installed on the cluster | ||
|
||
Steward v0.9.0 and newer supports the migration to component-argocd v6.x. | ||
Older versions of Steward will interfere with the operator-managed ArgoCD deployment. | ||
|
||
Steward version v0.9.0 is introduced in component-steward v3.6.0. | ||
If you manage Steward via Project Syn, ensure that component-steward v3.6.0 or higher is rolled out on the cluster. | ||
|
||
=== 3. Upgrade component-argocd with migration flag | ||
|
||
The first time you roll out component-argocd v6.x, set the following configuration in your hierarchy: | ||
|
||
[source,yaml] | ||
---- | ||
parameters: | ||
argocd: | ||
operator: | ||
migrate: true | ||
---- | ||
|
||
Roll out the upgrade with this configuration, and wait until the new pods for `syn-argocd` appear in the configured namespace. | ||
|
||
=== 4. Remove the migration flag to complete the migration | ||
|
||
After the first rollout of v6.x, the migration flag can be removed. | ||
Once this change is rolled out, ArgoCD can become unavailable for up to 15 minutes, after which it should recover without manual intervention. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ spec: | |
targetRevision: HEAD | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
prune: false | ||
selfHeal: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ spec: | |
targetRevision: HEAD | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
prune: false | ||
selfHeal: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ spec: | |
targetRevision: HEAD | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
prune: false | ||
selfHeal: true |