Skip to content

Commit 4e9fe75

Browse files
authored
fix(manifests): Move metacontroller to the top in kustmization.yaml (#10669)
This is a noop for most people as they use legacy sorting in kustomize. If however, people use fifo sorting via sortOptions in the root kustomization.yaml, the order of resources becomes important so that the CompositeController CRDs are deployed before the CRs. Signed-off-by: Alexander Block <ablock84@gmail.com>
1 parent 24424ba commit 4e9fe75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/kustomize/env/platform-agnostic-multi-user-legacy/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5+
- ../../third-party/metacontroller/base
56
- ../../base/installs/multi-user
67
- ../../base/metadata/overlays/db
78
- ../../base/metadata/options/istio
@@ -10,7 +11,6 @@ resources:
1011
- ../../third-party/mysql/options/istio
1112
- ../../third-party/minio/base
1213
- ../../third-party/minio/options/istio
13-
- ../../third-party/metacontroller/base
1414

1515
# Identifier for application manager to apply ownerReference.
1616
# The ownerReference ensures the resources get garbage collected

manifests/kustomize/env/platform-agnostic-multi-user/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5+
- ../../third-party/metacontroller/base
56
- ../../base/installs/multi-user
67
- ../../base/metadata/base
78
- ../../base/metadata/options/istio
@@ -10,7 +11,6 @@ resources:
1011
- ../../third-party/mysql/options/istio
1112
- ../../third-party/minio/base
1213
- ../../third-party/minio/options/istio
13-
- ../../third-party/metacontroller/base
1414

1515
# Identifier for application manager to apply ownerReference.
1616
# The ownerReference ensures the resources get garbage collected

0 commit comments

Comments
 (0)