v1alpha1

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the k8s v1alpha1 API group +kubebuilder:object:generate=true +groupName=k8s.mondoo.com

Index

Constants

View Source
const (
	// MondooOperatorConfigName is the one allowed name for the
	// cluster-scoped MondooOperatorConfig resource
	MondooOperatorConfigName = "mondoo-operator-config"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "k8s.mondoo.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Image added in v0.0.11

type Image struct {
	Name string `json:"name,omitempty"`
	Tag  string `json:"tag,omitempty"`
}

func (*Image) DeepCopy added in v0.0.11

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto added in v0.0.11

func (in *Image) DeepCopyInto(out *Image)

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

type InjectionStyle added in v0.0.11

type InjectionStyle string

InjectionStyle is the specified method the cluster uses for automated creation of TLS certificates

const (
	CertManager InjectionStyle = "cert-manager"
	OpenShift   InjectionStyle = "openshift"
)

type Metrics added in v0.2.0

type Metrics struct {
	Enable bool `json:"enable,omitempty"`
	// ResourceLabels allows providing a list of extra labels to apply to the metrics-related
	// resources (eg. ServiceMonitor)
	ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
}

func (*Metrics) DeepCopy added in v0.2.0

func (in *Metrics) DeepCopy() *Metrics

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

func (*Metrics) DeepCopyInto added in v0.2.0

func (in *Metrics) DeepCopyInto(out *Metrics)

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

type MondooAuditConfig

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

	Spec   MondooAuditConfigData   `json:"spec,omitempty"`
	Status MondooAuditConfigStatus `json:"status,omitempty"`
}

MondooAuditConfig is the Schema for the mondooauditconfigs API

func (*MondooAuditConfig) ConvertFrom added in v0.2.6

func (dst *MondooAuditConfig) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1alpha2) to this version.

func (*MondooAuditConfig) ConvertTo added in v0.2.6

func (src *MondooAuditConfig) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this MondooAuditConfig to the Hub version (v1alpha2).

func (*MondooAuditConfig) DeepCopy

func (in *MondooAuditConfig) DeepCopy() *MondooAuditConfig

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

func (*MondooAuditConfig) DeepCopyInto

func (in *MondooAuditConfig) DeepCopyInto(out *MondooAuditConfig)

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

func (*MondooAuditConfig) DeepCopyObject

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

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

type MondooAuditConfigCondition added in v0.2.2

type MondooAuditConfigCondition struct {
	// Type is the specific type of the condition
	// +kubebuilder:validation:Required
	// +required
	Type MondooAuditConfigConditionType `json:"type"`
	// Status is the status of the condition
	// +kubebuilder:validation:Required
	// +required
	Status corev1.ConditionStatus `json:"status"`
	// LastAuditTime is the last time we probed the condition
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// LastTransitionTime is the last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// Reason is a unique, one-word, CamelCase reason for the condition's last transition
	Reason string `json:"reason,omitempty"`
	// Message is a human-readable message indicating details about the last transition
	Message string `json:"message,omitempty"`
}

func (*MondooAuditConfigCondition) DeepCopy added in v0.2.2

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

func (*MondooAuditConfigCondition) DeepCopyInto added in v0.2.2

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

type MondooAuditConfigConditionType added in v0.2.2

type MondooAuditConfigConditionType string

MondooOperatorConfigConditionType is a valid value for MondooOperatorConfig.Status.Condition[].Type

const (
	// Indicates weather NodeScanning is Degraded
	NodeScanningDegraded MondooAuditConfigConditionType = "NodeScanningDegraded"
	// Indicates weather APIScanning is Degraded
	APIScanningDegraded MondooAuditConfigConditionType = "APIScanningDegraded"
	// Indicates weather Webhook is Degraded
	WebhookDegraded MondooAuditConfigConditionType = "WebhookDegraded"
)

type MondooAuditConfigData

type MondooAuditConfigData struct {

	// Config is an example field of MondooAuditConfig. Edit mondooauditconfig_types.go to remove/update
	Nodes           Nodes     `json:"nodes,omitempty"`
	Workloads       Workloads `json:"workloads,omitempty"`
	Webhooks        Webhooks  `json:"webhooks,omitempty"`
	MondooSecretRef string    `json:"mondooSecretRef"`
}

MondooAuditConfigSpec defines the desired state of MondooAuditConfig

func (*MondooAuditConfigData) DeepCopy

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

func (*MondooAuditConfigData) DeepCopyInto

func (in *MondooAuditConfigData) DeepCopyInto(out *MondooAuditConfigData)

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

type MondooAuditConfigList

type MondooAuditConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MondooAuditConfig `json:"items"`
}

MondooAuditConfigList contains a list of MondooAuditConfig

func (*MondooAuditConfigList) DeepCopy

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

func (*MondooAuditConfigList) DeepCopyInto

func (in *MondooAuditConfigList) DeepCopyInto(out *MondooAuditConfigList)

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

func (*MondooAuditConfigList) DeepCopyObject

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

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

type MondooAuditConfigStatus

type MondooAuditConfigStatus struct {

	// Pods store the name of the pods which are running mondoo instances
	Pods []string `json:"pods,omitempty"`

	// Conditions includes detailed status for the MondooAuditConfig
	Conditions []MondooAuditConfigCondition `json:"conditions,omitempty"`
}

MondooAuditConfigStatus defines the observed state of MondooAuditConfig

func (*MondooAuditConfigStatus) DeepCopy

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

func (*MondooAuditConfigStatus) DeepCopyInto

func (in *MondooAuditConfigStatus) DeepCopyInto(out *MondooAuditConfigStatus)

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

type MondooOperatorConfig added in v0.2.0

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

	Spec   MondooOperatorConfigSpec   `json:"spec,omitempty"`
	Status MondooOperatorConfigStatus `json:"status,omitempty"`
}

MondooOperatorConfig is the Schema for the mondoooperatorconfigs API

func (*MondooOperatorConfig) ConvertFrom added in v0.2.6

func (dst *MondooOperatorConfig) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1alpha2) to this version.

func (*MondooOperatorConfig) ConvertTo added in v0.2.6

func (src *MondooOperatorConfig) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this MondooOperatorConfig to the Hub version (v1alpha2).

func (*MondooOperatorConfig) DeepCopy added in v0.2.0

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

func (*MondooOperatorConfig) DeepCopyInto added in v0.2.0

func (in *MondooOperatorConfig) DeepCopyInto(out *MondooOperatorConfig)

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

func (*MondooOperatorConfig) DeepCopyObject added in v0.2.0

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

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

type MondooOperatorConfigCondition added in v0.2.0

type MondooOperatorConfigCondition struct {
	// Type is the type of the condition.
	Type MondooOperatorConfigConditionType `json:"type"`
	// Status is the status of the condition.
	Status corev1.ConditionStatus `json:"status"`
	// LastUpdateTime is the last time the condition was updated.
	// +optional
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// LastTransitionTime is the last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// Reason is a unique, one-word, CamelCase reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	// Message is a human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

Condition contains details for the current condition of a MondooOperatorConfig

func (*MondooOperatorConfigCondition) DeepCopy added in v0.2.0

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

func (*MondooOperatorConfigCondition) DeepCopyInto added in v0.2.0

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

type MondooOperatorConfigConditionType added in v0.2.0

type MondooOperatorConfigConditionType string

MondooOperatorConfigConditionType is a valid value for MondooOperatorConfig.Status.Condition[].Type

const (
	// PrometheusMissingCondition is used to indicate whether Prometheus was found to be installed or not.
	PrometheusMissingCondition MondooOperatorConfigConditionType = "PrometheusMissing"
)

type MondooOperatorConfigList added in v0.2.0

type MondooOperatorConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MondooOperatorConfig `json:"items"`
}

MondooOperatorConfigList contains a list of MondooOperatorConfig

func (*MondooOperatorConfigList) DeepCopy added in v0.2.0

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

func (*MondooOperatorConfigList) DeepCopyInto added in v0.2.0

func (in *MondooOperatorConfigList) DeepCopyInto(out *MondooOperatorConfigList)

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

func (*MondooOperatorConfigList) DeepCopyObject added in v0.2.0

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

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

type MondooOperatorConfigSpec added in v0.2.0

type MondooOperatorConfigSpec struct {

	// Metrics controls the enabling/disabling of metrics report of mondoo-operator
	Metrics Metrics `json:"metrics,omitempty"`
	// Allows skipping Image resolution from upstream repository
	SkipContainerResolution bool `json:"skipContainerResolution,omitempty"`
}

MondooOperatorConfigSpec defines the desired state of MondooOperatorConfig

func (*MondooOperatorConfigSpec) DeepCopy added in v0.2.0

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

func (*MondooOperatorConfigSpec) DeepCopyInto added in v0.2.0

func (in *MondooOperatorConfigSpec) DeepCopyInto(out *MondooOperatorConfigSpec)

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

type MondooOperatorConfigStatus added in v0.2.0

type MondooOperatorConfigStatus struct {

	// Conditions includes more detailed status for the mondoo config
	// +optional
	Conditions []MondooOperatorConfigCondition `json:"conditions,omitempty"`
}

MondooOperatorConfigStatus defines the observed state of MondooOperatorConfig

func (*MondooOperatorConfigStatus) DeepCopy added in v0.2.0

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

func (*MondooOperatorConfigStatus) DeepCopyInto added in v0.2.0

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

type Nodes

type Nodes struct {
	Enable    bool                        `json:"enable,omitempty"`
	Inventory string                      `json:"inventory,omitempty"`
	Image     Image                       `json:"image,omitempty"`
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*Nodes) DeepCopy

func (in *Nodes) DeepCopy() *Nodes

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

func (*Nodes) DeepCopyInto

func (in *Nodes) DeepCopyInto(out *Nodes)

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

type WebhookCertificateConfig added in v0.0.11

type WebhookCertificateConfig struct {
	// +kubebuilder:validation:Enum="";cert-manager;openshift
	InjectionStyle string `json:"injectionStyle,omitempty"`
}

func (*WebhookCertificateConfig) DeepCopy added in v0.0.11

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

func (*WebhookCertificateConfig) DeepCopyInto added in v0.0.11

func (in *WebhookCertificateConfig) DeepCopyInto(out *WebhookCertificateConfig)

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

type WebhookMode added in v0.2.3

type WebhookMode string

WebhookMode specifies the allowed modes of operation for the webhook admission controller

const (
	Permissive WebhookMode = "permissive"
	Enforcing  WebhookMode = "enforcing"
)

type Webhooks added in v0.0.11

type Webhooks struct {
	Enable bool `json:"enable,omitempty"`

	// CertificateConfig allows defining which certificate system to use.
	// Leaving it as the empty string will mean the user will be responsible
	// for creating the Secret with the TLS data, and inserting the CA data
	// into the ValidatingWebhookConfigurations as well.
	CertificateConfig WebhookCertificateConfig `json:"certificateConfig,omitempty"`
	Image             Image                    `json:"image,omitempty"`
	// Mode represents whether the webhook will behave in a "permissive" mode (the default) which
	// will only scan and report on k8s resources or "enforcing" mode where depending
	// on the scan results may reject the k8s resource creation/modification.
	// +kubebuilder:validation:Enum="";permissive;enforcing
	Mode string `json:"mode,omitempty"`
}

func (*Webhooks) DeepCopy added in v0.0.11

func (in *Webhooks) DeepCopy() *Webhooks

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

func (*Webhooks) DeepCopyInto added in v0.0.11

func (in *Webhooks) DeepCopyInto(out *Webhooks)

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

type Workloads

type Workloads struct {
	Enable         bool                        `json:"enable,omitempty"`
	Inventory      string                      `json:"inventory,omitempty"`
	Resources      corev1.ResourceRequirements `json:"resources,omitempty"`
	ServiceAccount string                      `json:"serviceAccount,omitempty"`
	Image          Image                       `json:"image,omitempty"`
}

func (*Workloads) DeepCopy

func (in *Workloads) DeepCopy() *Workloads

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

func (*Workloads) DeepCopyInto

func (in *Workloads) DeepCopyInto(out *Workloads)

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