From 2a517d6e080b5e5fc58ad10c6344df6068d82fca Mon Sep 17 00:00:00 2001 From: Murali Paluru Date: Fri, 21 Feb 2020 23:10:00 +0530 Subject: [PATCH] generated changes --- .../v3/zz_generated_deepcopy.go | 126 +++++++++++++++++- ...zz_generated_cis_benchmark_version_info.go | 8 +- .../v3/zz_generated_cis_scan_config.go | 2 + .../v3/zz_generated_cis_scan_status.go | 18 +++ client/management/v3/zz_generated_cluster.go | 4 + .../v3/zz_generated_cluster_alert_rule.go | 2 + .../zz_generated_cluster_alert_rule_spec.go | 2 + .../v3/zz_generated_cluster_scan.go | 4 +- .../v3/zz_generated_cluster_scan_rule.go | 12 ++ .../v3/zz_generated_cluster_scan_spec.go | 4 +- .../v3/zz_generated_cluster_scan_status.go | 8 +- .../v3/zz_generated_cluster_spec.go | 2 + .../v3/zz_generated_cluster_spec_base.go | 2 + .../v3/zz_generated_cluster_status.go | 44 +++--- .../v3/zz_generated_scheduled_cluster_scan.go | 14 ++ ...generated_scheduled_cluster_scan_config.go | 12 ++ ...generated_scheduled_cluster_scan_status.go | 12 ++ 17 files changed, 246 insertions(+), 30 deletions(-) create mode 100644 client/management/v3/zz_generated_cis_scan_status.go create mode 100644 client/management/v3/zz_generated_cluster_scan_rule.go create mode 100644 client/management/v3/zz_generated_scheduled_cluster_scan.go create mode 100644 client/management/v3/zz_generated_scheduled_cluster_scan_config.go create mode 100644 client/management/v3/zz_generated_scheduled_cluster_scan_status.go diff --git a/apis/management.cattle.io/v3/zz_generated_deepcopy.go b/apis/management.cattle.io/v3/zz_generated_deepcopy.go index c614c648..deef54bd 100644 --- a/apis/management.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/management.cattle.io/v3/zz_generated_deepcopy.go @@ -929,7 +929,7 @@ func (in *CisBenchmarkVersion) DeepCopyInto(out *CisBenchmarkVersion) { out.Namespaced = in.Namespaced out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Info = in.Info + in.Info.DeepCopyInto(&out.Info) return } @@ -954,6 +954,20 @@ func (in *CisBenchmarkVersion) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CisBenchmarkVersionInfo) DeepCopyInto(out *CisBenchmarkVersionInfo) { *out = *in + if in.SkippedChecks != nil { + in, out := &in.SkippedChecks, &out.SkippedChecks + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.NotApplicableChecks != nil { + in, out := &in.NotApplicableChecks, &out.NotApplicableChecks + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } @@ -1098,6 +1112,22 @@ func (in *CisScanConfig) DeepCopy() *CisScanConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CisScanStatus) DeepCopyInto(out *CisScanStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CisScanStatus. +func (in *CisScanStatus) DeepCopy() *CisScanStatus { + if in == nil { + return nil + } + out := new(CisScanStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CloudCredential) DeepCopyInto(out *CloudCredential) { *out = *in @@ -1470,6 +1500,11 @@ func (in *ClusterAlertRuleSpec) DeepCopyInto(out *ClusterAlertRuleSpec) { *out = new(MetricRule) **out = **in } + if in.ClusterScanRule != nil { + in, out := &in.ClusterScanRule, &out.ClusterScanRule + *out = new(ClusterScanRule) + **out = **in + } return } @@ -2125,6 +2160,22 @@ func (in *ClusterScanList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterScanRule) DeepCopyInto(out *ClusterScanRule) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanRule. +func (in *ClusterScanRule) DeepCopy() *ClusterScanRule { + if in == nil { + return nil + } + out := new(ClusterScanRule) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterScanSpec) DeepCopyInto(out *ClusterScanSpec) { *out = *in @@ -2150,6 +2201,11 @@ func (in *ClusterScanStatus) DeepCopyInto(out *ClusterScanStatus) { *out = make([]ClusterScanCondition, len(*in)) copy(*out, *in) } + if in.CisScanStatus != nil { + in, out := &in.CisScanStatus, &out.CisScanStatus + *out = new(CisScanStatus) + **out = **in + } return } @@ -2223,6 +2279,11 @@ func (in *ClusterSpecBase) DeepCopyInto(out *ClusterSpecBase) { **out = **in } out.LocalClusterAuthEndpoint = in.LocalClusterAuthEndpoint + if in.ScheduledClusterScan != nil { + in, out := &in.ScheduledClusterScan, &out.ScheduledClusterScan + *out = new(ScheduledClusterScan) + (*in).DeepCopyInto(*out) + } return } @@ -2310,6 +2371,11 @@ func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { (*out)[key] = val } } + if in.ScheduledClusterScanStatus != nil { + in, out := &in.ScheduledClusterScanStatus, &out.ScheduledClusterScanStatus + *out = new(ScheduledClusterScanStatus) + **out = **in + } return } @@ -8835,6 +8901,64 @@ func (in *SaveAsTemplateOutput) DeepCopy() *SaveAsTemplateOutput { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ScheduledClusterScan) DeepCopyInto(out *ScheduledClusterScan) { + *out = *in + if in.ScheduleConfig != nil { + in, out := &in.ScheduleConfig, &out.ScheduleConfig + *out = new(ScheduledClusterScanConfig) + **out = **in + } + if in.ScanConfig != nil { + in, out := &in.ScanConfig, &out.ScanConfig + *out = new(ClusterScanConfig) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledClusterScan. +func (in *ScheduledClusterScan) DeepCopy() *ScheduledClusterScan { + if in == nil { + return nil + } + out := new(ScheduledClusterScan) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ScheduledClusterScanConfig) DeepCopyInto(out *ScheduledClusterScanConfig) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledClusterScanConfig. +func (in *ScheduledClusterScanConfig) DeepCopy() *ScheduledClusterScanConfig { + if in == nil { + return nil + } + out := new(ScheduledClusterScanConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ScheduledClusterScanStatus) DeepCopyInto(out *ScheduledClusterScanStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledClusterScanStatus. +func (in *ScheduledClusterScanStatus) DeepCopy() *ScheduledClusterScanStatus { + if in == nil { + return nil + } + out := new(ScheduledClusterScanStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SchedulerService) DeepCopyInto(out *SchedulerService) { *out = *in diff --git a/client/management/v3/zz_generated_cis_benchmark_version_info.go b/client/management/v3/zz_generated_cis_benchmark_version_info.go index f6dda5b3..f3cf776f 100644 --- a/client/management/v3/zz_generated_cis_benchmark_version_info.go +++ b/client/management/v3/zz_generated_cis_benchmark_version_info.go @@ -2,9 +2,15 @@ package client const ( CisBenchmarkVersionInfoType = "cisBenchmarkVersionInfo" + CisBenchmarkVersionInfoFieldManaged = "managed" CisBenchmarkVersionInfoFieldMinKubernetesVersion = "minKubernetesVersion" + CisBenchmarkVersionInfoFieldNotApplicableChecks = "notApplicableChecks" + CisBenchmarkVersionInfoFieldSkippedChecks = "skippedChecks" ) type CisBenchmarkVersionInfo struct { - MinKubernetesVersion string `json:"minKubernetesVersion,omitempty" yaml:"minKubernetesVersion,omitempty"` + Managed bool `json:"managed,omitempty" yaml:"managed,omitempty"` + MinKubernetesVersion string `json:"minKubernetesVersion,omitempty" yaml:"minKubernetesVersion,omitempty"` + NotApplicableChecks map[string]string `json:"notApplicableChecks,omitempty" yaml:"notApplicableChecks,omitempty"` + SkippedChecks map[string]string `json:"skippedChecks,omitempty" yaml:"skippedChecks,omitempty"` } diff --git a/client/management/v3/zz_generated_cis_scan_config.go b/client/management/v3/zz_generated_cis_scan_config.go index 9cce5a4e..bf487982 100644 --- a/client/management/v3/zz_generated_cis_scan_config.go +++ b/client/management/v3/zz_generated_cis_scan_config.go @@ -6,6 +6,7 @@ const ( CisScanConfigFieldDebugWorker = "debugWorker" CisScanConfigFieldOverrideBenchmarkVersion = "overrideBenchmarkVersion" CisScanConfigFieldOverrideSkip = "overrideSkip" + CisScanConfigFieldProfile = "profile" ) type CisScanConfig struct { @@ -13,4 +14,5 @@ type CisScanConfig struct { DebugWorker bool `json:"debugWorker,omitempty" yaml:"debugWorker,omitempty"` OverrideBenchmarkVersion string `json:"overrideBenchmarkVersion,omitempty" yaml:"overrideBenchmarkVersion,omitempty"` OverrideSkip []string `json:"overrideSkip,omitempty" yaml:"overrideSkip,omitempty"` + Profile string `json:"profile,omitempty" yaml:"profile,omitempty"` } diff --git a/client/management/v3/zz_generated_cis_scan_status.go b/client/management/v3/zz_generated_cis_scan_status.go new file mode 100644 index 00000000..a6c27a96 --- /dev/null +++ b/client/management/v3/zz_generated_cis_scan_status.go @@ -0,0 +1,18 @@ +package client + +const ( + CisScanStatusType = "cisScanStatus" + CisScanStatusFieldFail = "fail" + CisScanStatusFieldNotApplicable = "notApplicable" + CisScanStatusFieldPass = "pass" + CisScanStatusFieldSkip = "skip" + CisScanStatusFieldTotal = "total" +) + +type CisScanStatus struct { + Fail int64 `json:"fail,omitempty" yaml:"fail,omitempty"` + NotApplicable int64 `json:"notApplicable,omitempty" yaml:"notApplicable,omitempty"` + Pass int64 `json:"pass,omitempty" yaml:"pass,omitempty"` + Skip int64 `json:"skip,omitempty" yaml:"skip,omitempty"` + Total int64 `json:"total,omitempty" yaml:"total,omitempty"` +} diff --git a/client/management/v3/zz_generated_cluster.go b/client/management/v3/zz_generated_cluster.go index 3edf643e..15470bd0 100644 --- a/client/management/v3/zz_generated_cluster.go +++ b/client/management/v3/zz_generated_cluster.go @@ -51,6 +51,8 @@ const ( ClusterFieldRancherKubernetesEngineConfig = "rancherKubernetesEngineConfig" ClusterFieldRemoved = "removed" ClusterFieldRequested = "requested" + ClusterFieldScheduledClusterScan = "scheduledClusterScan" + ClusterFieldScheduledClusterScanStatus = "scheduledClusterScanStatus" ClusterFieldState = "state" ClusterFieldTransitioning = "transitioning" ClusterFieldTransitioningMessage = "transitioningMessage" @@ -106,6 +108,8 @@ type Cluster struct { RancherKubernetesEngineConfig *RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty" yaml:"rancherKubernetesEngineConfig,omitempty"` Removed string `json:"removed,omitempty" yaml:"removed,omitempty"` Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"` + ScheduledClusterScan *ScheduledClusterScan `json:"scheduledClusterScan,omitempty" yaml:"scheduledClusterScan,omitempty"` + ScheduledClusterScanStatus *ScheduledClusterScanStatus `json:"scheduledClusterScanStatus,omitempty" yaml:"scheduledClusterScanStatus,omitempty"` State string `json:"state,omitempty" yaml:"state,omitempty"` Transitioning string `json:"transitioning,omitempty" yaml:"transitioning,omitempty"` TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"` diff --git a/client/management/v3/zz_generated_cluster_alert_rule.go b/client/management/v3/zz_generated_cluster_alert_rule.go index cbc5fb5c..6c3502ad 100644 --- a/client/management/v3/zz_generated_cluster_alert_rule.go +++ b/client/management/v3/zz_generated_cluster_alert_rule.go @@ -9,6 +9,7 @@ const ( ClusterAlertRuleFieldAlertState = "alertState" ClusterAlertRuleFieldAnnotations = "annotations" ClusterAlertRuleFieldClusterID = "clusterId" + ClusterAlertRuleFieldClusterScanRule = "clusterScanRule" ClusterAlertRuleFieldCreated = "created" ClusterAlertRuleFieldCreatorID = "creatorId" ClusterAlertRuleFieldEventRule = "eventRule" @@ -37,6 +38,7 @@ type ClusterAlertRule struct { AlertState string `json:"alertState,omitempty" yaml:"alertState,omitempty"` Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"` ClusterID string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"` + ClusterScanRule *ClusterScanRule `json:"clusterScanRule,omitempty" yaml:"clusterScanRule,omitempty"` Created string `json:"created,omitempty" yaml:"created,omitempty"` CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"` EventRule *EventRule `json:"eventRule,omitempty" yaml:"eventRule,omitempty"` diff --git a/client/management/v3/zz_generated_cluster_alert_rule_spec.go b/client/management/v3/zz_generated_cluster_alert_rule_spec.go index 2cbf67fb..dfbc2ec0 100644 --- a/client/management/v3/zz_generated_cluster_alert_rule_spec.go +++ b/client/management/v3/zz_generated_cluster_alert_rule_spec.go @@ -3,6 +3,7 @@ package client const ( ClusterAlertRuleSpecType = "clusterAlertRuleSpec" ClusterAlertRuleSpecFieldClusterID = "clusterId" + ClusterAlertRuleSpecFieldClusterScanRule = "clusterScanRule" ClusterAlertRuleSpecFieldDisplayName = "displayName" ClusterAlertRuleSpecFieldEventRule = "eventRule" ClusterAlertRuleSpecFieldGroupID = "groupId" @@ -18,6 +19,7 @@ const ( type ClusterAlertRuleSpec struct { ClusterID string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"` + ClusterScanRule *ClusterScanRule `json:"clusterScanRule,omitempty" yaml:"clusterScanRule,omitempty"` DisplayName string `json:"displayName,omitempty" yaml:"displayName,omitempty"` EventRule *EventRule `json:"eventRule,omitempty" yaml:"eventRule,omitempty"` GroupID string `json:"groupId,omitempty" yaml:"groupId,omitempty"` diff --git a/client/management/v3/zz_generated_cluster_scan.go b/client/management/v3/zz_generated_cluster_scan.go index 43d851e0..be09e7a6 100644 --- a/client/management/v3/zz_generated_cluster_scan.go +++ b/client/management/v3/zz_generated_cluster_scan.go @@ -11,11 +11,11 @@ const ( ClusterScanFieldCreated = "created" ClusterScanFieldCreatorID = "creatorId" ClusterScanFieldLabels = "labels" - ClusterScanFieldManual = "manual" ClusterScanFieldName = "name" ClusterScanFieldNamespaceId = "namespaceId" ClusterScanFieldOwnerReferences = "ownerReferences" ClusterScanFieldRemoved = "removed" + ClusterScanFieldRunType = "runType" ClusterScanFieldScanConfig = "scanConfig" ClusterScanFieldScanType = "scanType" ClusterScanFieldState = "state" @@ -32,11 +32,11 @@ type ClusterScan struct { Created string `json:"created,omitempty" yaml:"created,omitempty"` CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` - Manual bool `json:"manual,omitempty" yaml:"manual,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` Removed string `json:"removed,omitempty" yaml:"removed,omitempty"` + RunType string `json:"runType,omitempty" yaml:"runType,omitempty"` ScanConfig *ClusterScanConfig `json:"scanConfig,omitempty" yaml:"scanConfig,omitempty"` ScanType string `json:"scanType,omitempty" yaml:"scanType,omitempty"` State string `json:"state,omitempty" yaml:"state,omitempty"` diff --git a/client/management/v3/zz_generated_cluster_scan_rule.go b/client/management/v3/zz_generated_cluster_scan_rule.go new file mode 100644 index 00000000..ed5670e8 --- /dev/null +++ b/client/management/v3/zz_generated_cluster_scan_rule.go @@ -0,0 +1,12 @@ +package client + +const ( + ClusterScanRuleType = "clusterScanRule" + ClusterScanRuleFieldFailuresOnly = "failuresOnly" + ClusterScanRuleFieldScanRunType = "scanRunType" +) + +type ClusterScanRule struct { + FailuresOnly bool `json:"failuresOnly,omitempty" yaml:"failuresOnly,omitempty"` + ScanRunType string `json:"scanRunType,omitempty" yaml:"scanRunType,omitempty"` +} diff --git a/client/management/v3/zz_generated_cluster_scan_spec.go b/client/management/v3/zz_generated_cluster_scan_spec.go index 19ce3811..0fa555f1 100644 --- a/client/management/v3/zz_generated_cluster_scan_spec.go +++ b/client/management/v3/zz_generated_cluster_scan_spec.go @@ -3,14 +3,14 @@ package client const ( ClusterScanSpecType = "clusterScanSpec" ClusterScanSpecFieldClusterID = "clusterId" - ClusterScanSpecFieldManual = "manual" + ClusterScanSpecFieldRunType = "runType" ClusterScanSpecFieldScanConfig = "scanConfig" ClusterScanSpecFieldScanType = "scanType" ) type ClusterScanSpec struct { ClusterID string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"` - Manual bool `json:"manual,omitempty" yaml:"manual,omitempty"` + RunType string `json:"runType,omitempty" yaml:"runType,omitempty"` ScanConfig *ClusterScanConfig `json:"scanConfig,omitempty" yaml:"scanConfig,omitempty"` ScanType string `json:"scanType,omitempty" yaml:"scanType,omitempty"` } diff --git a/client/management/v3/zz_generated_cluster_scan_status.go b/client/management/v3/zz_generated_cluster_scan_status.go index 4356c48f..601f5402 100644 --- a/client/management/v3/zz_generated_cluster_scan_status.go +++ b/client/management/v3/zz_generated_cluster_scan_status.go @@ -1,10 +1,12 @@ package client const ( - ClusterScanStatusType = "clusterScanStatus" - ClusterScanStatusFieldConditions = "conditions" + ClusterScanStatusType = "clusterScanStatus" + ClusterScanStatusFieldCisScanStatus = "cisScanStatus" + ClusterScanStatusFieldConditions = "conditions" ) type ClusterScanStatus struct { - Conditions []ClusterScanCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"` + CisScanStatus *CisScanStatus `json:"cisScanStatus,omitempty" yaml:"cisScanStatus,omitempty"` + Conditions []ClusterScanCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"` } diff --git a/client/management/v3/zz_generated_cluster_spec.go b/client/management/v3/zz_generated_cluster_spec.go index ba5dad08..5f8dc322 100644 --- a/client/management/v3/zz_generated_cluster_spec.go +++ b/client/management/v3/zz_generated_cluster_spec.go @@ -25,6 +25,7 @@ const ( ClusterSpecFieldInternal = "internal" ClusterSpecFieldLocalClusterAuthEndpoint = "localClusterAuthEndpoint" ClusterSpecFieldRancherKubernetesEngineConfig = "rancherKubernetesEngineConfig" + ClusterSpecFieldScheduledClusterScan = "scheduledClusterScan" ClusterSpecFieldWindowsPreferedCluster = "windowsPreferedCluster" ) @@ -52,5 +53,6 @@ type ClusterSpec struct { Internal bool `json:"internal,omitempty" yaml:"internal,omitempty"` LocalClusterAuthEndpoint *LocalClusterAuthEndpoint `json:"localClusterAuthEndpoint,omitempty" yaml:"localClusterAuthEndpoint,omitempty"` RancherKubernetesEngineConfig *RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty" yaml:"rancherKubernetesEngineConfig,omitempty"` + ScheduledClusterScan *ScheduledClusterScan `json:"scheduledClusterScan,omitempty" yaml:"scheduledClusterScan,omitempty"` WindowsPreferedCluster bool `json:"windowsPreferedCluster,omitempty" yaml:"windowsPreferedCluster,omitempty"` } diff --git a/client/management/v3/zz_generated_cluster_spec_base.go b/client/management/v3/zz_generated_cluster_spec_base.go index 40322e6b..91e80362 100644 --- a/client/management/v3/zz_generated_cluster_spec_base.go +++ b/client/management/v3/zz_generated_cluster_spec_base.go @@ -13,6 +13,7 @@ const ( ClusterSpecBaseFieldEnableNetworkPolicy = "enableNetworkPolicy" ClusterSpecBaseFieldLocalClusterAuthEndpoint = "localClusterAuthEndpoint" ClusterSpecBaseFieldRancherKubernetesEngineConfig = "rancherKubernetesEngineConfig" + ClusterSpecBaseFieldScheduledClusterScan = "scheduledClusterScan" ClusterSpecBaseFieldWindowsPreferedCluster = "windowsPreferedCluster" ) @@ -28,5 +29,6 @@ type ClusterSpecBase struct { EnableNetworkPolicy *bool `json:"enableNetworkPolicy,omitempty" yaml:"enableNetworkPolicy,omitempty"` LocalClusterAuthEndpoint *LocalClusterAuthEndpoint `json:"localClusterAuthEndpoint,omitempty" yaml:"localClusterAuthEndpoint,omitempty"` RancherKubernetesEngineConfig *RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty" yaml:"rancherKubernetesEngineConfig,omitempty"` + ScheduledClusterScan *ScheduledClusterScan `json:"scheduledClusterScan,omitempty" yaml:"scheduledClusterScan,omitempty"` WindowsPreferedCluster bool `json:"windowsPreferedCluster,omitempty" yaml:"windowsPreferedCluster,omitempty"` } diff --git a/client/management/v3/zz_generated_cluster_status.go b/client/management/v3/zz_generated_cluster_status.go index 6ac55e84..9b03387f 100644 --- a/client/management/v3/zz_generated_cluster_status.go +++ b/client/management/v3/zz_generated_cluster_status.go @@ -22,29 +22,31 @@ const ( ClusterStatusFieldLimits = "limits" ClusterStatusFieldMonitoringStatus = "monitoringStatus" ClusterStatusFieldRequested = "requested" + ClusterStatusFieldScheduledClusterScanStatus = "scheduledClusterScanStatus" ClusterStatusFieldVersion = "version" ) type ClusterStatus struct { - APIEndpoint string `json:"apiEndpoint,omitempty" yaml:"apiEndpoint,omitempty"` - AgentFeatures map[string]bool `json:"agentFeatures,omitempty" yaml:"agentFeatures,omitempty"` - AgentImage string `json:"agentImage,omitempty" yaml:"agentImage,omitempty"` - Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"` - AppliedEnableNetworkPolicy bool `json:"appliedEnableNetworkPolicy,omitempty" yaml:"appliedEnableNetworkPolicy,omitempty"` - AppliedPodSecurityPolicyTemplateName string `json:"appliedPodSecurityPolicyTemplateId,omitempty" yaml:"appliedPodSecurityPolicyTemplateId,omitempty"` - AppliedSpec *ClusterSpec `json:"appliedSpec,omitempty" yaml:"appliedSpec,omitempty"` - AuthImage string `json:"authImage,omitempty" yaml:"authImage,omitempty"` - CACert string `json:"caCert,omitempty" yaml:"caCert,omitempty"` - Capabilities *Capabilities `json:"capabilities,omitempty" yaml:"capabilities,omitempty"` - Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"` - CertificatesExpiration map[string]CertExpiration `json:"certificatesExpiration,omitempty" yaml:"certificatesExpiration,omitempty"` - ComponentStatuses []ClusterComponentStatus `json:"componentStatuses,omitempty" yaml:"componentStatuses,omitempty"` - Conditions []ClusterCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"` - Driver string `json:"driver,omitempty" yaml:"driver,omitempty"` - FailedSpec *ClusterSpec `json:"failedSpec,omitempty" yaml:"failedSpec,omitempty"` - IstioEnabled bool `json:"istioEnabled,omitempty" yaml:"istioEnabled,omitempty"` - Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"` - MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty" yaml:"monitoringStatus,omitempty"` - Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"` - Version *Info `json:"version,omitempty" yaml:"version,omitempty"` + APIEndpoint string `json:"apiEndpoint,omitempty" yaml:"apiEndpoint,omitempty"` + AgentFeatures map[string]bool `json:"agentFeatures,omitempty" yaml:"agentFeatures,omitempty"` + AgentImage string `json:"agentImage,omitempty" yaml:"agentImage,omitempty"` + Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"` + AppliedEnableNetworkPolicy bool `json:"appliedEnableNetworkPolicy,omitempty" yaml:"appliedEnableNetworkPolicy,omitempty"` + AppliedPodSecurityPolicyTemplateName string `json:"appliedPodSecurityPolicyTemplateId,omitempty" yaml:"appliedPodSecurityPolicyTemplateId,omitempty"` + AppliedSpec *ClusterSpec `json:"appliedSpec,omitempty" yaml:"appliedSpec,omitempty"` + AuthImage string `json:"authImage,omitempty" yaml:"authImage,omitempty"` + CACert string `json:"caCert,omitempty" yaml:"caCert,omitempty"` + Capabilities *Capabilities `json:"capabilities,omitempty" yaml:"capabilities,omitempty"` + Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"` + CertificatesExpiration map[string]CertExpiration `json:"certificatesExpiration,omitempty" yaml:"certificatesExpiration,omitempty"` + ComponentStatuses []ClusterComponentStatus `json:"componentStatuses,omitempty" yaml:"componentStatuses,omitempty"` + Conditions []ClusterCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"` + Driver string `json:"driver,omitempty" yaml:"driver,omitempty"` + FailedSpec *ClusterSpec `json:"failedSpec,omitempty" yaml:"failedSpec,omitempty"` + IstioEnabled bool `json:"istioEnabled,omitempty" yaml:"istioEnabled,omitempty"` + Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"` + MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty" yaml:"monitoringStatus,omitempty"` + Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"` + ScheduledClusterScanStatus *ScheduledClusterScanStatus `json:"scheduledClusterScanStatus,omitempty" yaml:"scheduledClusterScanStatus,omitempty"` + Version *Info `json:"version,omitempty" yaml:"version,omitempty"` } diff --git a/client/management/v3/zz_generated_scheduled_cluster_scan.go b/client/management/v3/zz_generated_scheduled_cluster_scan.go new file mode 100644 index 00000000..dcdab448 --- /dev/null +++ b/client/management/v3/zz_generated_scheduled_cluster_scan.go @@ -0,0 +1,14 @@ +package client + +const ( + ScheduledClusterScanType = "scheduledClusterScan" + ScheduledClusterScanFieldEnabled = "enabled" + ScheduledClusterScanFieldScanConfig = "scanConfig" + ScheduledClusterScanFieldScheduleConfig = "scheduleConfig" +) + +type ScheduledClusterScan struct { + Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` + ScanConfig *ClusterScanConfig `json:"scanConfig,omitempty" yaml:"scanConfig,omitempty"` + ScheduleConfig *ScheduledClusterScanConfig `json:"scheduleConfig,omitempty" yaml:"scheduleConfig,omitempty"` +} diff --git a/client/management/v3/zz_generated_scheduled_cluster_scan_config.go b/client/management/v3/zz_generated_scheduled_cluster_scan_config.go new file mode 100644 index 00000000..6355c631 --- /dev/null +++ b/client/management/v3/zz_generated_scheduled_cluster_scan_config.go @@ -0,0 +1,12 @@ +package client + +const ( + ScheduledClusterScanConfigType = "scheduledClusterScanConfig" + ScheduledClusterScanConfigFieldCronSchedule = "cronSchedule" + ScheduledClusterScanConfigFieldRetention = "retention" +) + +type ScheduledClusterScanConfig struct { + CronSchedule string `json:"cronSchedule,omitempty" yaml:"cronSchedule,omitempty"` + Retention int64 `json:"retention,omitempty" yaml:"retention,omitempty"` +} diff --git a/client/management/v3/zz_generated_scheduled_cluster_scan_status.go b/client/management/v3/zz_generated_scheduled_cluster_scan_status.go new file mode 100644 index 00000000..1060685b --- /dev/null +++ b/client/management/v3/zz_generated_scheduled_cluster_scan_status.go @@ -0,0 +1,12 @@ +package client + +const ( + ScheduledClusterScanStatusType = "scheduledClusterScanStatus" + ScheduledClusterScanStatusFieldEnabled = "enabled" + ScheduledClusterScanStatusFieldLastRunTimestamp = "lastRunTimestamp" +) + +type ScheduledClusterScanStatus struct { + Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` + LastRunTimestamp string `json:"lastRunTimestamp,omitempty" yaml:"lastRunTimestamp,omitempty"` +}