Skip to content

Commit f9631c0

Browse files
authored
feat: added automated syncing for apl-operator (#126)
1 parent 0cd6d65 commit f9631c0

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

docs/for-ops/upgrade-notes.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,16 @@ kubectl scale deploy harbor-core --replicas=0 -n harbor
9797
```
9898

9999
:::note
100-
If the version you are going to upgrade to is of v4.7.0 or higher you also have to scale down the apl-operator
100+
If the version you are going to upgrade to is of v4.7.0 or higher you also have to stop automated syncing and scale down the apl-operator
101101
:::
102102

103+
```shell
104+
kubectl patch application apl-operator-apl-operator \
105+
-n argocd \
106+
--type='json' \
107+
-p='[{"op": "remove", "path": "/spec/syncPolicy/automated"}]'
108+
```
109+
103110
```shell
104111
kubectl scale deploy apl-operator --replicas=0 -n apl-operator
105112
```
@@ -121,17 +128,17 @@ kubectl scale sts harbor-redis --replicas=1 -n harbor
121128

122129
#### Wait for pod ready status
123130
:::note
124-
If the version you are going to upgrade to is of v4.7.0 or higher you also have to scale up the apl-operator
131+
If the version you are going to upgrade to is of v4.7.0 or higher you also have to enable automated syncing and scale up the apl-operator
125132
:::
126133

127134
```shell
128135
kubectl scale deploy apl-operator --replicas=1 -n apl-operator
129136
```
130137

131-
#### Enable ArgoCD autoSync on harbor-harbor
132138
```shell
133-
kubectl patch application harbor-harbor \
139+
kubectl patch application apl-operator-apl-operator \
134140
-n argocd \
135141
--type='json' \
136-
-p='[{"op": "add", "path": "/spec/syncPolicy/automated", "value": {"prune": true,"selfHeal": true}}]'
142+
-p='[{"op": "add", "path": "/spec/syncPolicy/automated", "value": {"prune": true,"selfHeal": true, "allowEmpty": false}}]'
137143
```
144+

0 commit comments

Comments
 (0)