Skip to content

Commit

Permalink
Remove bypass-psp-rbac.yaml to environment create (#502)
Browse files Browse the repository at this point in the history
* Remove bypass-psp-rbac rolebinding to environment create cmd
  • Loading branch information
poornima-krishnasamy authored Nov 27, 2023
1 parent dd7d714 commit 0ec7a0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions pkg/environment/templateEnvironment.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,6 @@ func downloadAndInitialiseTemplates(namespace string) ([]*templateFromUrl, error
name: "04-networkpolicy.yaml",
url: envTemplateLocation + "/" + "04-networkpolicy.yaml",
},
{
name: "bypass-psp-rbac.yaml",
url: envTemplateLocation + "/" + "bypass-psp-rbac.yaml",
},
{
name: "resources/main.tf",
url: envTemplateLocation + "/" + "resources/main.tf",
Expand Down
6 changes: 0 additions & 6 deletions pkg/environment/templateEnvironment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func TestCreateNamespaceWithAnswersFile(t *testing.T) {
dir + "02-limitrange.yaml",
dir + "03-resourcequota.yaml",
dir + "04-networkpolicy.yaml",
dir + "bypass-psp-rbac.yaml",
dir + "resources/main.tf",
variablesTfFile,
dir + "resources/versions.tf",
Expand Down Expand Up @@ -94,15 +93,13 @@ func TestCreateNamespace(t *testing.T) {
namespaceFile := dir + "00-namespace.yaml"
rbacFile := dir + "01-rbac.yaml"
variablesTfFile := dir + "resources/variables.tf"
bypassPspFile := dir + "bypass-psp-rbac.yaml"

filenames := []string{
namespaceFile,
rbacFile,
dir + "02-limitrange.yaml",
dir + "03-resourcequota.yaml",
dir + "04-networkpolicy.yaml",
dir + "bypass-psp-rbac.yaml",
dir + "resources/main.tf",
variablesTfFile,
dir + "resources/versions.tf",
Expand All @@ -123,9 +120,6 @@ func TestCreateNamespace(t *testing.T) {
namespaceFile: "cloud-platform.justice.gov.uk/source-code: \"https://github.com/ministryofjustice/somerepo\"",
namespaceFile: "cloud-platform.justice.gov.uk/is-production: \"false\"",
namespaceFile: "pod-security.kubernetes.io/enforce: restricted",
bypassPspFile: "name: psp:0-super-privileged",
bypassPspFile: "name: \"system:authenticated\"",
bypassPspFile: "namespace: \"foobar\"",
rbacFile: "name: \"github:my-github-team\"",
variablesTfFile: "my-team-slack_channel",
variablesTfFile: "my-github-team",
Expand Down

0 comments on commit 0ec7a0b

Please sign in to comment.