v1

package
v0.0.0-...-d47a69b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=clusterscan-operator.cattle.io

+k8s:deepcopy-gen=package +groupName=clusterscan-operator.cattle.io

+k8s:deepcopy-gen=package +groupName=clusterscan-operator.cattle.io

Index

Constants

View Source
const (
	ClusterProviderRKE = "rke"
	ClusterProviderEKS = "eks"
	ClusterProviderGKE = "gke"

	ClusterScanNS               = "clusterscan-system"
	ClusterScanSA               = "clusterscan-serviceaccount"
	ClusterScanConfigMap        = "clusterscan-s-config-cm"
	ClusterScanPluginsConfigMap = "clusterscan-s-plugins-cm"
	ClusterScanService          = "service-rancher-cis-benchmark"
	DefaultScanOutputFileName   = "output.json"

	ClusterScanConditionCreated      = condition.Cond("Created")
	ClusterScanConditionRunCompleted = condition.Cond("RunCompleted")
	ClusterScanConditionComplete     = condition.Cond("Complete")
	ClusterScanConditionFailed       = condition.Cond("Failed")
	ClusterScanConditionAlerted      = condition.Cond("Alerted")
)

Variables

View Source
var (
	ClusterScanResourceName        = "clusterscans"
	ClusterScanProfileResourceName = "clusterscanprofiles"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: clusterscanoperator.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ClusterScan

type ClusterScan struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterScanSpec   `json:"spec"`
	Status ClusterScanStatus `yaml:"status" json:"status,omitempty"`
}

func NewClusterScan

func NewClusterScan(namespace, name string, obj ClusterScan) *ClusterScan

func (*ClusterScan) DeepCopy

func (in *ClusterScan) DeepCopy() *ClusterScan

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScan.

func (*ClusterScan) DeepCopyInto

func (in *ClusterScan) DeepCopyInto(out *ClusterScan)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterScan) DeepCopyObject

func (in *ClusterScan) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterScanList

type ClusterScanList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ClusterScan `json:"items"`
}

ClusterScanList is a list of ClusterScan resources

func (*ClusterScanList) DeepCopy

func (in *ClusterScanList) DeepCopy() *ClusterScanList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanList.

func (*ClusterScanList) DeepCopyInto

func (in *ClusterScanList) DeepCopyInto(out *ClusterScanList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterScanList) DeepCopyObject

func (in *ClusterScanList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterScanProfile

type ClusterScanProfile struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ClusterScanProfileSpec `json:"spec"`
}

func NewClusterScanProfile

func NewClusterScanProfile(namespace, name string, obj ClusterScanProfile) *ClusterScanProfile

func (*ClusterScanProfile) DeepCopy

func (in *ClusterScanProfile) DeepCopy() *ClusterScanProfile

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanProfile.

func (*ClusterScanProfile) DeepCopyInto

func (in *ClusterScanProfile) DeepCopyInto(out *ClusterScanProfile)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterScanProfile) DeepCopyObject

func (in *ClusterScanProfile) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterScanProfileList

type ClusterScanProfileList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ClusterScanProfile `json:"items"`
}

ClusterScanProfileList is a list of ClusterScanProfile resources

func (*ClusterScanProfileList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanProfileList.

func (*ClusterScanProfileList) DeepCopyInto

func (in *ClusterScanProfileList) DeepCopyInto(out *ClusterScanProfileList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterScanProfileList) DeepCopyObject

func (in *ClusterScanProfileList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterScanProfileSpec

type ClusterScanProfileSpec struct {
	ClusterProvider string `json:"clusterProvider,omitempty"`

	BenchmarkVersion string `json:"benchmarkVersion,omitempty"`

	SkipTests []string `json:"skipTests,omitempty"`

	MinKubernetesVersion string `json:"minKubernetesVersion,omitempty"`

	MaxKubernetesVersion string `json:"maxKubernetesVersion,omitempty"`

	//RENAME
	ConfigMap string `json:"configMap,omitempty"`
	//RENAME
	ConfigMapNamespace string `json:"configMapNamespace,omitempty"`
}

func (*ClusterScanProfileSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanProfileSpec.

func (*ClusterScanProfileSpec) DeepCopyInto

func (in *ClusterScanProfileSpec) DeepCopyInto(out *ClusterScanProfileSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterScanReport

type ClusterScanReport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ClusterScanReportSpec `json:"spec"`
}

func (*ClusterScanReport) DeepCopy

func (in *ClusterScanReport) DeepCopy() *ClusterScanReport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanReport.

func (*ClusterScanReport) DeepCopyInto

func (in *ClusterScanReport) DeepCopyInto(out *ClusterScanReport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterScanReport) DeepCopyObject

func (in *ClusterScanReport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterScanReportSpec

type ClusterScanReportSpec struct {
	BenchmarkVersion string `json:"benchmarkVersion,omitempty"`
	LastRunTimestamp string `yaml:"last_run_timestamp" json:"lastRunTimestamp"`
	Total            int    `json:"total"`
	Pass             int    `json:"pass"`
	Fail             int    `json:"fail"`
	Skip             int    `json:"skip"`
	// contains filtered or unexported fields
}

func (*ClusterScanReportSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanReportSpec.

func (*ClusterScanReportSpec) DeepCopyInto

func (in *ClusterScanReportSpec) DeepCopyInto(out *ClusterScanReportSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterScanSchedule

type ClusterScanSchedule struct {
	// Cron Expression for Schedule
	CronSchedule string `yaml:"cron_schedule" json:"cronSchedule,omitempty"`
	// Number of past scans to keep
	Retention int `yaml:"retention" json:"retention,omitempty"`
}

func (*ClusterScanSchedule) DeepCopy

func (in *ClusterScanSchedule) DeepCopy() *ClusterScanSchedule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanSchedule.

func (*ClusterScanSchedule) DeepCopyInto

func (in *ClusterScanSchedule) DeepCopyInto(out *ClusterScanSchedule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterScanSpec

type ClusterScanSpec struct {
	// scan profile to use
	ScanProfileName string               `json:"scanProfileName,omitempty"`
	ScanSchedule    *ClusterScanSchedule `yaml:"scanSchedule,omitempty" json:"scanSchedule,omitempty"`
}

func (*ClusterScanSpec) DeepCopy

func (in *ClusterScanSpec) DeepCopy() *ClusterScanSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanSpec.

func (*ClusterScanSpec) DeepCopyInto

func (in *ClusterScanSpec) DeepCopyInto(out *ClusterScanSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterScanStatus

type ClusterScanStatus struct {
	Enabled          bool                `yaml:"enabled" json:"enabled,omitempty"`
	LastRunTimestamp string              `yaml:"last_run_timestamp" json:"lastRunTimestamp"`
	Summary          *ClusterScanSummary `json:"summary,omitempty"`
	//Follow K8sStatus conventions from #2dotx
	//Wrangler: Status  handlers  or generating status handler (useful for CIS V2)
	//Examples: SystemUpgradeController or helmController
	Conditions []genericcondition.GenericCondition `json:"conditions,omitempty"`
}

func (*ClusterScanStatus) DeepCopy

func (in *ClusterScanStatus) DeepCopy() *ClusterScanStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanStatus.

func (*ClusterScanStatus) DeepCopyInto

func (in *ClusterScanStatus) DeepCopyInto(out *ClusterScanStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterScanSummary

type ClusterScanSummary struct {
	Total         int `json:"total"`
	Pass          int `json:"pass"`
	Fail          int `json:"fail"`
	Skip          int `json:"skip"`
	NotApplicable int `json:"notApplicable"`
}

func (*ClusterScanSummary) DeepCopy

func (in *ClusterScanSummary) DeepCopy() *ClusterScanSummary

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScanSummary.

func (*ClusterScanSummary) DeepCopyInto

func (in *ClusterScanSummary) DeepCopyInto(out *ClusterScanSummary)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL