-
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.
- Loading branch information
1 parent
52ca09e
commit 6abe77a
Showing
17 changed files
with
251 additions
and
312 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
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
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,34 @@ | ||
= Upgrade `component-argocd` from `v7.x` to `v8.x` | ||
|
||
== Migration to ArgoCD Operator | ||
|
||
As of component version 8, the ArgoCD operator uses a new api version `argoproj.io/v1beta1`. | ||
If there are other unmanaged ArgoCD deployed, you need to enable the conversion webhook. | ||
|
||
=== 1. Upgrade component-argocd with conversion webhook flag | ||
|
||
The first time you roll out component-argocd v6.x, set the following configuration in your hierarchy: | ||
|
||
[source,yaml] | ||
---- | ||
parameters: | ||
argocd: | ||
operator: | ||
conversion_webhook: true | ||
---- | ||
|
||
Roll out the upgrade with this configuration, and wait until: | ||
* The ArgoCD operator deployment is rolled out. | ||
* All unmanaged ArgoCD CR are updated. | ||
[source,shell] | ||
---- | ||
kubectl --as cluster-admin get argocds -A -ocustom-columns='NAMESPACE:.metadata.namespace,NAME:.metadata.name,API:.apiVersion' | ||
NAMESPACE NAME API | ||
openshift-gitops openshift-gitops argoproj.io/v1beta1 | ||
syn syn-argocd argoproj.io/v1beta1 | ||
---- | ||
|
||
|
||
=== 2. Remove the migration flag to complete the migration | ||
|
||
After the first rollout of v8.x, the conversion webhook flag can be removed. |
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 was deleted.
Oops, something went wrong.
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,30 @@ | ||
local com = import 'lib/commodore.libjsonnet'; | ||
|
||
local inv = com.inventory(); | ||
local params = inv.parameters.argocd.operator; | ||
|
||
local file_apiext_argocd = com.yaml_load(std.extVar('output_path') + '/apiextensions.k8s.io_v1_customresourcedefinition_argocds.argoproj.io.yaml'); | ||
local file_deployment = com.yaml_load(std.extVar('output_path') + '/apps_v1_deployment_syn-argocd-operator-controller-manager.yaml'); | ||
|
||
{ | ||
'apiextensions.k8s.io_v1_customresourcedefinition_argocds.argoproj.io': file_apiext_argocd { | ||
metadata+: { | ||
creationTimestamp: null, | ||
annotations+: { | ||
[if params.conversion_webhook then 'cert-manager.io/inject-ca-from']: params.namespace + '/serving-cert', | ||
}, | ||
}, | ||
spec+: { | ||
[if !params.conversion_webhook then 'conversion']: { strategy: 'None' }, | ||
}, | ||
}, | ||
'apps_v1_deployment_syn-argocd-operator-controller-manager': file_deployment { | ||
spec+: { | ||
template+: { | ||
spec+: { | ||
volumes: [ { name: 'cert', emptyDir: {} } ], | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
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
27 changes: 0 additions & 27 deletions
27
tests/golden/defaults/argocd/argocd/10_operator_webhook_certs.yaml
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.