You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add BatchDelete helper to internal; use in Chronicle, Connect,
Package Manager, and Workbench cleanup/suspend functions
- Rename isProductEnabled to checkBool(ptr *bool, defaultVal bool)
and apply consistently for both enabled and teardown patterns
across site_controller.go and site_controller_networkpolicies.go
Copy file name to clipboardExpand all lines: docs/guides/upgrading.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,11 +174,15 @@ If you are upgrading an existing installation that has already run the operator
174
174
1. Identify the components with existing DB password secrets:
175
175
176
176
```bash
177
-
kubectl get secrets -n posit-team -o name | grep -v db-password
177
+
forcompin workbench connect packagemanager;do
178
+
kubectl get secret "${comp}" -n posit-team --ignore-not-found -o name
179
+
done
178
180
```
179
181
180
182
2. For each component (workbench, connect, packagemanager), rename the secret:
181
183
184
+
> **Warning:** If `${NEW_NAME}` already exists in the cluster, do not apply this migration — the operator has already generated a new password and you must re-synchronize the database password manually.
185
+
182
186
```bash
183
187
# Get the old secret data
184
188
OLD_NAME=<component-name>
@@ -187,7 +191,7 @@ If you are upgrading an existing installation that has already run the operator
187
191
188
192
# Create new secret with old data
189
193
kubectl get secret "${OLD_NAME}" -n "${NAMESPACE}" -o json \
190
-
| python3 -c "import json,sys; d=json.load(sys.stdin); d['metadata']['name']='${NEW_NAME}'; [d['metadata'].pop(k,None) for k in ['resourceVersion','uid','creationTimestamp','ownerReferences']]; print(json.dumps(d))" \
194
+
| python3 -c "import json,sys; d=json.load(sys.stdin); d['metadata']['name']='${NEW_NAME}'; [d['metadata'].pop(k,None) for k in ['resourceVersion','uid','creationTimestamp','managedFields','ownerReferences']]; print(json.dumps(d))" \
0 commit comments