Add common labels for components #3100
-
It's great that Flux manifests are now uploaded to OCI registries, and therefore can be installed with Kustomize controller. For example, if all resources related to image-reflector-controller (Deployment, Service, CRD, etc.) would have a label apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: flux
namespace: flux-system
spec:
interval: 1m0s
path: ./flux-system
prune: false
patches:
- target:
labelSelector: kind=image-reflector-controller
patch: |
$patch: delete
kind: ignored
apiVersion: ignored
metadata:
name: ignored
sourceRef:
kind: OCIRepository
name: flux |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Besides source-controller all Flux components are optional e.g. |
Beta Was this translation helpful? Give feedback.
-
I've added the You'll be able to opt-out from installing specific controllers using a label selector stating with Flux v0.35.0. |
Beta Was this translation helpful? Give feedback.
I've added the
app.kubernetes.io/component
label to each controller's resources in #3145You'll be able to opt-out from installing specific controllers using a label selector stating with Flux v0.35.0.