Skip to content

Commit

Permalink
feat(crd): Remove the all category from cluster-scoped CRDs (aquasecu…
Browse files Browse the repository at this point in the history
…rity#733)

This patch will not display cluster-scoped security reports
when kubectl get all command is run for the specified namespace.

    kubectl get all -n kube-system

Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
  • Loading branch information
danielpacak authored Oct 6, 2021
1 parent c45a06a commit b2e6588
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
3 changes: 1 addition & 2 deletions deploy/crd/ciskubebenchreports.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ spec:
plural: ciskubebenchreports
kind: CISKubeBenchReport
listKind: CISKubeBenchReportList
categories:
- all
categories: []
shortNames:
- kubebench
3 changes: 1 addition & 2 deletions deploy/crd/clusterconfigauditreports.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ spec:
plural: clusterconfigauditreports
kind: ClusterConfigAuditReport
listKind: ClusterConfigAuditReportList
categories:
- all
categories: []
shortNames:
- clusterconfigaudit
3 changes: 1 addition & 2 deletions deploy/crd/clustervulnerabilityreports.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ spec:
plural: clustervulnerabilityreports
kind: ClusterVulnerabilityReport
listKind: ClusterVulnerabilityReportList
categories:
- all
categories: []
shortNames:
- clustervuln
- clustervulns
3 changes: 1 addition & 2 deletions deploy/crd/kubehunterreports.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ spec:
plural: kubehunterreports
kind: KubeHunterReport
listKind: KubeHunterReportList
categories:
- all
categories: []
shortNames:
- kubehunter
4 changes: 0 additions & 4 deletions itest/starboard/starboard_cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ var _ = Describe("Starboard CLI", func() {
ShortNames: []string{"clustervuln", "clustervulns"},
Kind: "ClusterVulnerabilityReport",
ListKind: "ClusterVulnerabilityReportList",
Categories: []string{"all"},
}),
"Scope": Equal(apiextensionsv1beta1.ClusterScoped),
}),
Expand Down Expand Up @@ -109,7 +108,6 @@ var _ = Describe("Starboard CLI", func() {
ShortNames: []string{"clusterconfigaudit"},
Kind: "ClusterConfigAuditReport",
ListKind: "ClusterConfigAuditReportList",
Categories: []string{"all"},
}),
}),
}),
Expand All @@ -124,7 +122,6 @@ var _ = Describe("Starboard CLI", func() {
ShortNames: []string{"kubebench"},
Kind: "CISKubeBenchReport",
ListKind: "CISKubeBenchReportList",
Categories: []string{"all"},
}),
}),
}),
Expand All @@ -139,7 +136,6 @@ var _ = Describe("Starboard CLI", func() {
ShortNames: []string{"kubehunter"},
Kind: "KubeHunterReport",
ListKind: "KubeHunterReportList",
Categories: []string{"all"},
}),
}),
}),
Expand Down

0 comments on commit b2e6588

Please sign in to comment.