dry-run doesn't allow to install/apply dependencies #3374
-
I have following case: flux repo structure:
kustomization.yaml apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: kustomization-apps
namespace: flux-system
spec:
interval: 1m0s
path: ./apps/base
prune: true
sourceRef:
kind: GitRepository
name: flux-system
validation: client
dependsOn:
- name: kustomization-infrastructure
And the kustomization-infrastructure.yaml apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: kustomization-infrastructure
namespace: flux-system
spec:
interval: 1m0s
path: ./infrastructure/apps
prune: true
sourceRef:
kind: GitRepository
name: flux-system
validation: client Expected: The apps unter |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to enable waiting in the Flux Kustomization that installs the CRDs. See here an example: https://github.com/stefanprodan/flux-local-dev/blob/main/kubernetes/clusters/local/infra.yaml |
Beta Was this translation helpful? Give feedback.
You need to enable waiting in the Flux Kustomization that installs the CRDs. See here an example: https://github.com/stefanprodan/flux-local-dev/blob/main/kubernetes/clusters/local/infra.yaml