Skip to content

Commit

Permalink
✨ applying restrictive SCC for all conatiners produced by the tool
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed May 25, 2022
1 parent 009a626 commit 3821225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ fi
kind export kubeconfig --kubeconfig $tmp_root/kubeconfig --name $KIND_CLUSTER
export KUBECONFIG=$tmp_root/kubeconfig

test_cluster -v -ginkgo.v
test_cluster -vvv -ginkgo.v
7 changes: 4 additions & 3 deletions test/e2e/v3/plugin_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var _ = Describe("kubebuilder", func() {
kbc.UninstallCertManager(true)
})

It("should generate a runnable project", func() {
It("should generate a runnable project go/v2 with default SA", func() {
// go/v3 uses a unqiue-per-project service account name,
// while go/v2 still uses "default".
tmp := kbc.Kubectl.ServiceAccount
Expand All @@ -106,10 +106,11 @@ var _ = Describe("kubebuilder", func() {
kbc.UninstallCertManager(false)
})

It("should generate a runnable project", func() {
It("should generate a runnable project go/v3 with v1 CRDs and Webhooks", func() {
// Skip if cluster version < 1.16, when v1 CRDs and webhooks did not exist.
if srvVer := kbc.K8sVersion.ServerVersion; srvVer.GetMajorInt() <= 1 && srvVer.GetMinorInt() < 17 {
Skip(fmt.Sprintf("cluster version %s does not support v1 CRDs or webhooks", srvVer.GitVersion))
Skip(fmt.Sprintf(
"cluster version %s does not support v1 CRDs or webhooks", srvVer.GitVersion))
}

GenerateV3(kbc, "v1")
Expand Down

0 comments on commit 3821225

Please sign in to comment.