1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

Merge pull request #1062 from leodotcloud/cis

rename skip to overrideSkip
This commit is contained in:
Dan Ramich
2019-12-17 14:42:29 -07:00
committed by GitHub
3 changed files with 12 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ const (
type CisScanConfig struct {
// IDs of the checks that need to be skipped in the final report
Skip string `json:"skip,omitempty"`
OverrideSkip []string `json:"overrideSkip"`
// Override the CIS benchmark version to use for the scan (instead of latest)
OverrideBenchmarkVersion string `json:"overrideBenchmarkVersion,omitempty"`
// Internal flag for debugging master component of the scan

View File

@@ -927,6 +927,11 @@ func (in *ChangePasswordInput) DeepCopy() *ChangePasswordInput {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CisScanConfig) DeepCopyInto(out *CisScanConfig) {
*out = *in
if in.OverrideSkip != nil {
in, out := &in.OverrideSkip, &out.OverrideSkip
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
@@ -1919,7 +1924,7 @@ func (in *ClusterScanConfig) DeepCopyInto(out *ClusterScanConfig) {
if in.CisScanConfig != nil {
in, out := &in.CisScanConfig, &out.CisScanConfig
*out = new(CisScanConfig)
**out = **in
(*in).DeepCopyInto(*out)
}
return
}