From a4a607ad10fc9029275d1121196e14bd265936bb Mon Sep 17 00:00:00 2001 From: Raul Sevilla Date: Thu, 19 Sep 2024 09:46:55 +0200 Subject: [PATCH] Organize network policy objects Signed-off-by: Raul Sevilla --- cmd/config/{ => networkpolicy-assets}/clusterrole.yml | 0 cmd/config/{ => networkpolicy-assets}/clusterrolebinding.yml | 0 cmd/config/networkpolicy-matchexpressions/clusterrole.yml | 1 + .../networkpolicy-matchexpressions/clusterrolebinding.yml | 1 + .../networkpolicy-matchexpressions.yml | 4 ++-- cmd/config/networkpolicy-matchlabels/clusterrole.yml | 1 + cmd/config/networkpolicy-matchlabels/clusterrolebinding.yml | 1 + .../networkpolicy-matchlabels/networkpolicy-matchlabels.yml | 4 ++-- cmd/config/networkpolicy-multitenant/clusterrole.yml | 1 + cmd/config/networkpolicy-multitenant/clusterrolebinding.yml | 1 + .../networkpolicy-multitenant/networkpolicy-multitenant.yml | 4 ++-- 11 files changed, 12 insertions(+), 6 deletions(-) rename cmd/config/{ => networkpolicy-assets}/clusterrole.yml (100%) rename cmd/config/{ => networkpolicy-assets}/clusterrolebinding.yml (100%) create mode 120000 cmd/config/networkpolicy-matchexpressions/clusterrole.yml create mode 120000 cmd/config/networkpolicy-matchexpressions/clusterrolebinding.yml create mode 120000 cmd/config/networkpolicy-matchlabels/clusterrole.yml create mode 120000 cmd/config/networkpolicy-matchlabels/clusterrolebinding.yml create mode 120000 cmd/config/networkpolicy-multitenant/clusterrole.yml create mode 120000 cmd/config/networkpolicy-multitenant/clusterrolebinding.yml diff --git a/cmd/config/clusterrole.yml b/cmd/config/networkpolicy-assets/clusterrole.yml similarity index 100% rename from cmd/config/clusterrole.yml rename to cmd/config/networkpolicy-assets/clusterrole.yml diff --git a/cmd/config/clusterrolebinding.yml b/cmd/config/networkpolicy-assets/clusterrolebinding.yml similarity index 100% rename from cmd/config/clusterrolebinding.yml rename to cmd/config/networkpolicy-assets/clusterrolebinding.yml diff --git a/cmd/config/networkpolicy-matchexpressions/clusterrole.yml b/cmd/config/networkpolicy-matchexpressions/clusterrole.yml new file mode 120000 index 00000000..6847b217 --- /dev/null +++ b/cmd/config/networkpolicy-matchexpressions/clusterrole.yml @@ -0,0 +1 @@ +../networkpolicy-assets/clusterrole.yml \ No newline at end of file diff --git a/cmd/config/networkpolicy-matchexpressions/clusterrolebinding.yml b/cmd/config/networkpolicy-matchexpressions/clusterrolebinding.yml new file mode 120000 index 00000000..82a668a3 --- /dev/null +++ b/cmd/config/networkpolicy-matchexpressions/clusterrolebinding.yml @@ -0,0 +1 @@ +../networkpolicy-assets/clusterrolebinding.yml \ No newline at end of file diff --git a/cmd/config/networkpolicy-matchexpressions/networkpolicy-matchexpressions.yml b/cmd/config/networkpolicy-matchexpressions/networkpolicy-matchexpressions.yml index f1fb3baa..b48bb041 100644 --- a/cmd/config/networkpolicy-matchexpressions/networkpolicy-matchexpressions.yml +++ b/cmd/config/networkpolicy-matchexpressions/networkpolicy-matchexpressions.yml @@ -28,9 +28,9 @@ jobs: skipIndexing: true jobIterations: 1 objects: - - objectTemplate: ../clusterrole.yml + - objectTemplate: clusterrole.yml replicas: 1 - - objectTemplate: ../clusterrolebinding.yml + - objectTemplate: clusterrolebinding.yml replicas: 1 - name: networkpolicy-matchexpressions diff --git a/cmd/config/networkpolicy-matchlabels/clusterrole.yml b/cmd/config/networkpolicy-matchlabels/clusterrole.yml new file mode 120000 index 00000000..6847b217 --- /dev/null +++ b/cmd/config/networkpolicy-matchlabels/clusterrole.yml @@ -0,0 +1 @@ +../networkpolicy-assets/clusterrole.yml \ No newline at end of file diff --git a/cmd/config/networkpolicy-matchlabels/clusterrolebinding.yml b/cmd/config/networkpolicy-matchlabels/clusterrolebinding.yml new file mode 120000 index 00000000..82a668a3 --- /dev/null +++ b/cmd/config/networkpolicy-matchlabels/clusterrolebinding.yml @@ -0,0 +1 @@ +../networkpolicy-assets/clusterrolebinding.yml \ No newline at end of file diff --git a/cmd/config/networkpolicy-matchlabels/networkpolicy-matchlabels.yml b/cmd/config/networkpolicy-matchlabels/networkpolicy-matchlabels.yml index 23751219..710a849f 100644 --- a/cmd/config/networkpolicy-matchlabels/networkpolicy-matchlabels.yml +++ b/cmd/config/networkpolicy-matchlabels/networkpolicy-matchlabels.yml @@ -28,9 +28,9 @@ jobs: skipIndexing: true jobIterations: 1 objects: - - objectTemplate: ../clusterrole.yml + - objectTemplate: clusterrole.yml replicas: 1 - - objectTemplate: ../clusterrolebinding.yml + - objectTemplate: clusterrolebinding.yml replicas: 1 - name: networkpolicy-matchlabels diff --git a/cmd/config/networkpolicy-multitenant/clusterrole.yml b/cmd/config/networkpolicy-multitenant/clusterrole.yml new file mode 120000 index 00000000..6847b217 --- /dev/null +++ b/cmd/config/networkpolicy-multitenant/clusterrole.yml @@ -0,0 +1 @@ +../networkpolicy-assets/clusterrole.yml \ No newline at end of file diff --git a/cmd/config/networkpolicy-multitenant/clusterrolebinding.yml b/cmd/config/networkpolicy-multitenant/clusterrolebinding.yml new file mode 120000 index 00000000..82a668a3 --- /dev/null +++ b/cmd/config/networkpolicy-multitenant/clusterrolebinding.yml @@ -0,0 +1 @@ +../networkpolicy-assets/clusterrolebinding.yml \ No newline at end of file diff --git a/cmd/config/networkpolicy-multitenant/networkpolicy-multitenant.yml b/cmd/config/networkpolicy-multitenant/networkpolicy-multitenant.yml index 6be85300..2faced0d 100644 --- a/cmd/config/networkpolicy-multitenant/networkpolicy-multitenant.yml +++ b/cmd/config/networkpolicy-multitenant/networkpolicy-multitenant.yml @@ -28,9 +28,9 @@ jobs: skipIndexing: true jobIterations: 1 objects: - - objectTemplate: ../clusterrole.yml + - objectTemplate: clusterrole.yml replicas: 1 - - objectTemplate: ../clusterrolebinding.yml + - objectTemplate: clusterrolebinding.yml replicas: 1 - name: networkpolicy-multitenant