fix(bootstrap): patch flux resource names to match oci manifests (#1299)
* fix(bootstrap): patch flux resource names to match oci manifests Resource names differ in the installation manifests installed by the install file found on the flux/fluxcd2 github repo and the oci artifact oci://ghcr.io/fluxcd/flux-manifests. This commit introduces patches to the bootstrap kustomization to rename the resources to match the oci manifests. * Update bootstrap/templates/kubernetes/bootstrap/kustomization.yaml.j2 --------- Co-authored-by: surskitt <surskitt@users.noreply.github.com> Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
This commit is contained in:
1 file changed
+43
@@ -16,3 +16,46 @@ patches:
|
|||||||
target:
|
target:
|
||||||
group: networking.k8s.io
|
group: networking.k8s.io
|
||||||
kind: NetworkPolicy
|
kind: NetworkPolicy
|
||||||
|
# Resources renamed to match those installed by oci://ghcr.io/fluxcd/flux-manifests
|
||||||
|
- target:
|
||||||
|
kind: ResourceQuota
|
||||||
|
name: critical-pods
|
||||||
|
patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /metadata/name
|
||||||
|
value: critical-pods-flux-system
|
||||||
|
- target:
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
name: cluster-reconciler
|
||||||
|
patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /metadata/name
|
||||||
|
value: cluster-reconciler-flux-system
|
||||||
|
- target:
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
name: crd-controller
|
||||||
|
patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /metadata/name
|
||||||
|
value: crd-controller-flux-system
|
||||||
|
- target:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: crd-controller
|
||||||
|
patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /metadata/name
|
||||||
|
value: crd-controller-flux-system
|
||||||
|
- target:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: flux-edit
|
||||||
|
patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /metadata/name
|
||||||
|
value: flux-edit-flux-system
|
||||||
|
- target:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: flux-view
|
||||||
|
patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /metadata/name
|
||||||
|
value: flux-view-flux-system
|
||||||
Reference in new issue
Block a user