Skip to content

Commit

Permalink
deploy: move namespace and namePrefix to respective kustomization files
Browse files Browse the repository at this point in the history
Moving namespace and namePrefix to respective kustomize files
of config/rbac and config/manager from config/default allows
us to generate them independently.

Signed-off-by: Rakshith R <[email protected]>
  • Loading branch information
Rakshith-R authored and mergify[bot] committed Feb 3, 2022
1 parent efd47cb commit eb14271
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
10 changes: 0 additions & 10 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# Adds namespace to all resources.
namespace: csi-addons-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: csi-addons-

# Labels to add to all resources and selectors.
#commonLabels:
# someName: someValue
Expand Down
10 changes: 10 additions & 0 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Adds namespace to all resources.
namespace: csi-addons-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: csi-addons-

resources:
- manager.yaml

Expand Down
10 changes: 10 additions & 0 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Adds namespace to all resources.
namespace: csi-addons-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: csi-addons-

resources:
# All RBAC will be applied under this service account in
# the deployment namespace. You may comment out this resource
Expand Down

0 comments on commit eb14271

Please sign in to comment.