feat: add k8s cis bench (#3315)

Signed-off-by: chenk <hen.keinan@gmail.com>
This commit is contained in:
chenk
2022-12-28 20:38:48 +02:00
committed by GitHub
parent 62b369ee39
commit a888440922
12 changed files with 580 additions and 329 deletions

View File

@@ -755,7 +755,7 @@ func NewKubernetesCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command {
reportFlagGroup := flag.NewReportFlagGroup()
compliance := flag.ComplianceFlag
compliance.Usage += fmt.Sprintf(" (%s)", types.ComplianceNsa)
compliance.Usage += fmt.Sprintf(" (%s,%s)", types.ComplianceNsa, types.ComplianceCIS)
reportFlagGroup.Compliance = &compliance // override usage as the accepted values differ for each subcommand.
k8sFlags := &flag.Flags{