modified: docs/fluxcd.md

This commit is contained in:
Márcio Fernandes
2026-07-17 12:59:30 +00:00
parent e8fe8c449c
commit fd14473b99
+36
View File
@@ -80,6 +80,24 @@ spec:
**Disable:**
``` bash
FLUX_RESOURCE_NAME="???"
FLUX_RESOURCE_NS="???"
kubectl patch kustomization ${FLUX_RESOURCE_NAME} -n ${FLUX_RESOURCE_NS} --type merge -p '{"spec":{"prune":false}}'
```
**Enable:**
``` bash
FLUX_RESOURCE_NAME="???"
FLUX_RESOURCE_NS="???"
kubectl patch kustomization ${FLUX_RESOURCE_NAME} -n ${FLUX_RESOURCE_NS} --type merge -p '{"spec":{"prune":true}}'
```
## kustomization helm release
**Disable:**
``` bash
FLUX_RESOURCE_NAME="???"
FLUX_RESOURCE_NS="???"
@@ -93,3 +111,21 @@ FLUX_RESOURCE_NAME="???"
FLUX_RESOURCE_NS="???"
kubectl patch helmrelease ${FLUX_RESOURCE_NAME} -n ${FLUX_RESOURCE_NS} --type merge -p '{"spec":{"prune":true}}'
```
## Reconcile
**Source git:**
``` bash
FLUX_RESOURCE_NAME="???"
FLUX_RESOURCE_NS="???"
flux reconcile source git ${FLUX_RESOURCE_NAME} -n ${FLUX_RESOURCE_NS}
```
**Kustomization:**
``` bash
FLUX_RESOURCE_NAME="???"
FLUX_RESOURCE_NS="???"
flux reconcile kustomization ${FLUX_RESOURCE_NAME} -n ${FLUX_RESOURCE_NS}
```