bin/kubeautoanalyzer in kube_auto_analyzer-0.0.16 vs bin/kubeautoanalyzer in kube_auto_analyzer-0.0.17
- old
+ new
@@ -6,27 +6,28 @@
options = OpenStruct.new
options.report_directory = Dir.pwd
options.report_file = 'kube-parse-report'
options.target_server = 'http://127.0.0.1:8080'
- options.html_report = false
+ options.html_report = true
options.json_report = false
options.token = ''
options.token_file = ''
options.config_file = false
options.agent_checks = false
options.insecure = false
options.context = false
options.nosslverify = false
options.dump_config = false
options.audit_rbac = false
+ options.cluster_version = '1.11'
+ options.cis_audit = false
opts = OptionParser.new do |opts|
opts.banner = "Kubernetes Auto Analyzer #{KubeAutoAnalyzer::VERSION}"
-
#TODO: Need options for different authentication mechanisms
opts.on("-c", "--config [CONFIG]", "kubeconfig file to load") do |file|
options.config_file = file
end
@@ -54,9 +55,13 @@
options.insecure = true
end
opts.on("-t", "--token [TOKEN]", "Bearer Token to Use") do |token|
options.token = token
+ end
+
+ opts.on("-a", "--audit [AUDIT]", "CIS Audit against 1.8 Standard") do |audit|
+ options.cis_audit = true
end
opts.on("-j", "--json", "Create a JSON report") do |json|
options.json_report = true
end
\ No newline at end of file