Skip to content

Commit

Permalink
Merge pull request #577 from WASdev/kustomize-deprecate
Browse files Browse the repository at this point in the history
Remove deprecated keys form kustomize files
  • Loading branch information
idlewis authored Nov 6, 2023
2 parents c238a0d + 7dede4b commit 35833e5
Show file tree
Hide file tree
Showing 24 changed files with 132 additions and 135 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: wlo-leader-election-cluster-rolebinding
subjects:
- kind: ServiceAccount
name: websphere-liberty-controller-manager
namespace: wlo-ns
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: wlo-manager-cluster-rolebinding
subjects:
- kind: ServiceAccount
name: websphere-liberty-controller-manager
namespace: wlo-ns
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ kind: Kustomization

namespace: wlo-ns

bases:
- ../../overlays/watch-all-namespaces

patchesStrategicMerge:
- wlo-ns.yaml
resources:
- ../../overlays/watch-all-namespaces
patches:
- path: binding-patch2.yaml
- path: binding-patch1.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: wlo-ns2

bases:
- ../../../overlays/watch-another-namespace/wlo-ns

patchesStrategicMerge:
- wlo-deployment.yaml
- wlo-roles.yaml
- wlo-sa.yaml
resources:
- ../../../overlays/watch-another-namespace/wlo-ns
patches:
- path: wlo-deployment.yaml
- path: role-patch1.yaml
- path: role-patch2.yaml
- path: role-patch3.yaml
- path: role-patch4.yaml
- path: wlo-sa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: websphere-liberty-leader-election-role
namespace: wlo-ns
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: websphere-liberty-manager-role
namespace: wlo-ns
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: websphere-liberty-leader-election-rolebinding
namespace: wlo-ns
subjects:
- kind: ServiceAccount
name: websphere-liberty-controller-manager
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: websphere-liberty-manager-rolebinding
namespace: wlo-ns
subjects:
- kind: ServiceAccount
name: websphere-liberty-controller-manager

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: wlo-watched-ns2

bases:
- ../../../overlays/watch-another-namespace/wlo-watched-ns

patchesStrategicMerge:
- watched-roles.yaml
resources:
- ../../../overlays/watch-another-namespace/wlo-watched-ns
patches:
- path: role-patch1.yaml
- path: role-patch2.yaml
- path: role-patch3.yaml
- path: role-patch4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: wlo-watched-role
namespace: wlo-watched-ns
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: wlo-watched-rolebinding
namespace: wlo-watched-ns
subjects:
- kind: ServiceAccount
name: websphere-liberty-controller-manager
namespace: wlo-ns2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: wlo-leader-election-watched-role
namespace: wlo-watched-ns
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: wlo-leader-election-watched-rolebinding
namespace: wlo-watched-ns
subjects:
- kind: ServiceAccount
name: websphere-liberty-controller-manager
namespace: wlo-ns2

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ kind: Kustomization

namespace: wlo-ns

bases:
resources:
- ../../base
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ kind: Kustomization

namespace: websphere-liberty

bases:
- ../../base

resources:
- cluster-roles.yaml
- ../../base

patchesStrategicMerge:
- wlo-all-namespaces.yaml
patches:
- path: wlo-all-namespaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: wlo-ns

bases:
- ../../../base

patchesStrategicMerge:
- wlo-deployment.yaml
- wlo-roles.yaml
- wlo-sa.yaml
resources:
- ../../../base
patches:
- path: wlo-deployment.yaml
- path: roles-patch1.yaml
- path: roles-patch2.yaml
- path: roles-patch3.yaml
- path: roles-patch4.yaml
- path: wlo-sa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: websphere-liberty-leader-election-role
namespace: websphere-liberty
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: websphere-liberty-manager-role
namespace: websphere-liberty
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: websphere-liberty-leader-election-rolebinding
namespace: websphere-liberty
subjects:
- kind: ServiceAccount
name: websphere-liberty-controller-manager
namespace: websphere-liberty
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: websphere-liberty-manager-rolebinding
namespace: websphere-liberty
subjects:
- kind: ServiceAccount
name: websphere-liberty-controller-manager
namespace: websphere-liberty

This file was deleted.

0 comments on commit 35833e5

Please sign in to comment.