Skip to content

Commit

Permalink
Normalize our kustomize files and get rid of deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsessler7 committed Oct 12, 2023
1 parent beac752 commit c9e3267
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 11 deletions.
13 changes: 9 additions & 4 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: postgres-operator

commonLabels:
# Note: this label differs from the label set in postgres-operator-examples
postgres-operator.crunchydata.com/control-plane: postgres-operator
labels:
- includeSelectors: true
pairs:
# Note: this label differs from the label set in postgres-operator-examples
postgres-operator.crunchydata.com/control-plane: postgres-operator

bases:
resources:
- ../crd
- ../rbac/cluster
- ../manager
Expand Down
2 changes: 1 addition & 1 deletion config/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
resources:
- ../default

patches:
Expand Down
3 changes: 3 additions & 0 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- manager.yaml
3 changes: 3 additions & 0 deletions config/namespace/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- namespace.yaml
3 changes: 3 additions & 0 deletions config/rbac/cluster/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- service_account.yaml
- role.yaml
Expand Down
3 changes: 3 additions & 0 deletions config/rbac/namespace/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- service_account.yaml
- role.yaml
Expand Down
17 changes: 11 additions & 6 deletions config/singlenamespace/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: postgres-operator

commonLabels:
postgres-operator.crunchydata.com/control-plane: postgres-operator
labels:
- includeSelectors: true
pairs:
postgres-operator.crunchydata.com/control-plane: postgres-operator

bases:
resources:
- ../crd
- ../rbac/namespace
- ../manager

patches:
- path: manager-target.yaml

images:
- name: postgres-operator
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator
newTag: latest

patches:
- path: manager-target.yaml
3 changes: 3 additions & 0 deletions examples/pgadmin/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: postgres-operator

resources:
Expand Down
3 changes: 3 additions & 0 deletions examples/postgrescluster/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: postgres-operator

resources:
Expand Down

0 comments on commit c9e3267

Please sign in to comment.