v1beta1

package
v0.0.0-...-dd2566a Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the merlin v1 API group +kubebuilder:object:generate=true +groupName=merlin.mercari.com

Index

Constants

View Source
const GROUP = "merlin.mercari.com"
View Source
const (
	Separator = string(types.Separator)
)
View Source
const VERSION = "v1beta1"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: GROUP, Version: VERSION}

	// 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 ClusterRuleConfigMapUnused

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

	Spec ClusterRuleConfigMapUnusedSpec `json:"spec,omitempty"`
}

ClusterRuleConfigMapUnused is the Schema for the clusterruleconfigmapunuseds API

func (*ClusterRuleConfigMapUnused) DeepCopy

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

func (*ClusterRuleConfigMapUnused) DeepCopyInto

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

func (*ClusterRuleConfigMapUnused) DeepCopyObject

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

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

type ClusterRuleConfigMapUnusedList

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

ClusterRuleConfigMapUnusedList contains a list of ClusterRuleConfigMapUnused

func (*ClusterRuleConfigMapUnusedList) DeepCopy

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

func (*ClusterRuleConfigMapUnusedList) DeepCopyInto

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

func (*ClusterRuleConfigMapUnusedList) DeepCopyObject

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

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

type ClusterRuleConfigMapUnusedSpec

type ClusterRuleConfigMapUnusedSpec struct {
	// IgnoreNamespaces is the list of namespaces to ignore for this rule
	IgnoreNamespaces []string `json:"ignoreNamespaces,omitempty"`
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
	// InitialDelaySeconds is the delay time before the check is being run
	InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`
}

ClusterRuleConfigMapUnusedSpec defines the desired state of ClusterRuleConfigMapUnused

func (*ClusterRuleConfigMapUnusedSpec) DeepCopy

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

func (*ClusterRuleConfigMapUnusedSpec) DeepCopyInto

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

type ClusterRuleHPAInvalidScaleTargetRef

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

	Spec ClusterRuleHPAInvalidScaleTargetRefSpec `json:"spec,omitempty"`
}

ClusterRuleHPAInvalidScaleTargetRef is the Schema for the cluster rule hpa invalid scale target refs API

func (*ClusterRuleHPAInvalidScaleTargetRef) DeepCopy

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

func (*ClusterRuleHPAInvalidScaleTargetRef) DeepCopyInto

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

func (*ClusterRuleHPAInvalidScaleTargetRef) DeepCopyObject

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

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

type ClusterRuleHPAInvalidScaleTargetRefList

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

ClusterRuleHPAInvalidScaleTargetRefList contains a list of ClusterRuleHPAInvalidScaleTargetRef

func (*ClusterRuleHPAInvalidScaleTargetRefList) DeepCopy

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

func (*ClusterRuleHPAInvalidScaleTargetRefList) DeepCopyInto

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

func (*ClusterRuleHPAInvalidScaleTargetRefList) DeepCopyObject

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

type ClusterRuleHPAInvalidScaleTargetRefSpec

type ClusterRuleHPAInvalidScaleTargetRefSpec struct {
	// IgnoreNamespaces is the list of namespaces to ignore for this rule
	IgnoreNamespaces []string `json:"ignoreNamespaces,omitempty"`
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
}

ClusterRuleHPAInvalidScaleTargetRefSpec defines the desired state of ClusterRuleHPAInvalidScaleTargetRef

func (*ClusterRuleHPAInvalidScaleTargetRefSpec) DeepCopy

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

func (*ClusterRuleHPAInvalidScaleTargetRefSpec) DeepCopyInto

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

type ClusterRuleHPAReplicaPercentage

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

	Spec ClusterRuleHPAReplicaPercentageSpec `json:"spec,omitempty"`
}

ClusterRuleHPAReplicaPercentage is the Schema for the cluster rule hpa replica percentages API

func (*ClusterRuleHPAReplicaPercentage) DeepCopy

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

func (*ClusterRuleHPAReplicaPercentage) DeepCopyInto

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

func (*ClusterRuleHPAReplicaPercentage) DeepCopyObject

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

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

type ClusterRuleHPAReplicaPercentageList

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

ClusterRuleHPAReplicaPercentageList contains a list of ClusterRuleHPAReplicaPercentage

func (*ClusterRuleHPAReplicaPercentageList) DeepCopy

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

func (*ClusterRuleHPAReplicaPercentageList) DeepCopyInto

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

func (*ClusterRuleHPAReplicaPercentageList) DeepCopyObject

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

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

type ClusterRuleHPAReplicaPercentageSpec

type ClusterRuleHPAReplicaPercentageSpec struct {
	// IgnoreNamespaces is the list of namespaces to ignore for this rule
	IgnoreNamespaces []string `json:"ignoreNamespaces,omitempty"`
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
	// Percent is the threshold of percentage for a HPA current replica divided by max replica to be considered as an issue.
	Percent int32 `json:"percent"`
}

ClusterRuleHPAReplicaPercentageSpec defines the desired state of ClusterRuleHPAReplicaPercentageSpec

func (*ClusterRuleHPAReplicaPercentageSpec) DeepCopy

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

func (*ClusterRuleHPAReplicaPercentageSpec) DeepCopyInto

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

type ClusterRuleNamespaceRequiredLabel

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

	Spec ClusterRuleNamespaceRequiredLabelSpec `json:"spec,omitempty"`
}

ClusterRuleNamespaceRequiredLabel is the Schema for the clusterrulenamespacerequiredlabels API

func (*ClusterRuleNamespaceRequiredLabel) DeepCopy

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

func (*ClusterRuleNamespaceRequiredLabel) DeepCopyInto

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

func (*ClusterRuleNamespaceRequiredLabel) DeepCopyObject

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

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

type ClusterRuleNamespaceRequiredLabelList

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

ClusterRuleNamespaceRequiredLabelList contains a list of ClusterRuleNamespaceRequiredLabel

func (*ClusterRuleNamespaceRequiredLabelList) DeepCopy

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

func (*ClusterRuleNamespaceRequiredLabelList) DeepCopyInto

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

func (*ClusterRuleNamespaceRequiredLabelList) DeepCopyObject

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

type ClusterRuleNamespaceRequiredLabelSpec

type ClusterRuleNamespaceRequiredLabelSpec struct {
	// IgnoreNamespaces is the list of namespaces to ignore for this rule
	IgnoreNamespaces []string `json:"ignoreNamespaces,omitempty"`
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
	// Label is the required label for this namespace, specified key, value, and a match
	Label RequiredLabel `json:"label"`
}

ClusterRuleNamespaceRequiredLabelSpec defines the desired state of ClusterRuleNamespaceRequiredLabel

func (*ClusterRuleNamespaceRequiredLabelSpec) DeepCopy

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

func (*ClusterRuleNamespaceRequiredLabelSpec) DeepCopyInto

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

type ClusterRulePDBInvalidSelector

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

	Spec ClusterRulePDBInvalidSelectorSpec `json:"spec,omitempty"`
}

ClusterRulePDBInvalidSelector is the Schema for the clusterrulepdbinvalidselectors API

func (*ClusterRulePDBInvalidSelector) DeepCopy

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

func (*ClusterRulePDBInvalidSelector) DeepCopyInto

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

func (*ClusterRulePDBInvalidSelector) DeepCopyObject

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

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

type ClusterRulePDBInvalidSelectorList

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

ClusterRulePDBInvalidSelectorList contains a list of ClusterRulePDBInvalidSelector

func (*ClusterRulePDBInvalidSelectorList) DeepCopy

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

func (*ClusterRulePDBInvalidSelectorList) DeepCopyInto

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

func (*ClusterRulePDBInvalidSelectorList) DeepCopyObject

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

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

type ClusterRulePDBInvalidSelectorSpec

type ClusterRulePDBInvalidSelectorSpec struct {
	// IgnoreNamespaces is the list of namespaces to ignore for this rule
	IgnoreNamespaces []string `json:"ignoreNamespaces,omitempty"`
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
}

ClusterRulePDBInvalidSelectorSpec defines the desired state of ClusterRulePDBInvalidSelector

func (*ClusterRulePDBInvalidSelectorSpec) DeepCopy

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

func (*ClusterRulePDBInvalidSelectorSpec) DeepCopyInto

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

type ClusterRulePDBMinAllowedDisruption

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

	Spec ClusterRulePDBMinAllowedDisruptionSpec `json:"spec,omitempty"`
}

ClusterRulePDBMinAllowedDisruption is the Schema for the clusterrulepdbminalloweddisruptions API

func (*ClusterRulePDBMinAllowedDisruption) DeepCopy

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

func (*ClusterRulePDBMinAllowedDisruption) DeepCopyInto

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

func (*ClusterRulePDBMinAllowedDisruption) DeepCopyObject

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

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

type ClusterRulePDBMinAllowedDisruptionList

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

ClusterRulePDBMinAllowedDisruptionList contains a list of ClusterRulePDBMinAllowedDisruption

func (*ClusterRulePDBMinAllowedDisruptionList) DeepCopy

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

func (*ClusterRulePDBMinAllowedDisruptionList) DeepCopyInto

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

func (*ClusterRulePDBMinAllowedDisruptionList) DeepCopyObject

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

type ClusterRulePDBMinAllowedDisruptionSpec

type ClusterRulePDBMinAllowedDisruptionSpec struct {
	// IgnoreNamespaces is the list of namespaces to ignore for this rule
	IgnoreNamespaces []string `json:"ignoreNamespaces,omitempty"`
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
	// MinAllowedDisruption is the minimal allowed disruption for this rule, should be an integer, default to 1
	MinAllowedDisruption int `json:"minAllowedDisruption,omitempty"`
}

ClusterRulePDBMinAllowedDisruptionSpec defines the desired state of ClusterRulePDBMinAllowedDisruption

func (*ClusterRulePDBMinAllowedDisruptionSpec) DeepCopy

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

func (*ClusterRulePDBMinAllowedDisruptionSpec) DeepCopyInto

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

type ClusterRuleSecretUnused

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

	Spec ClusterRuleSecretUnusedSpec `json:"spec,omitempty"`
}

ClusterRuleSecretUnused is the Schema for the clusterrulesecretunuseds API

func (*ClusterRuleSecretUnused) DeepCopy

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

func (*ClusterRuleSecretUnused) DeepCopyInto

func (in *ClusterRuleSecretUnused) DeepCopyInto(out *ClusterRuleSecretUnused)

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

func (*ClusterRuleSecretUnused) DeepCopyObject

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

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

type ClusterRuleSecretUnusedList

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

ClusterRuleSecretUnusedList contains a list of ClusterRuleSecretUnused

func (*ClusterRuleSecretUnusedList) DeepCopy

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

func (*ClusterRuleSecretUnusedList) DeepCopyInto

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

func (*ClusterRuleSecretUnusedList) DeepCopyObject

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

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

type ClusterRuleSecretUnusedSpec

type ClusterRuleSecretUnusedSpec struct {
	// IgnoreNamespaces is the list of namespaces to ignore for this rule
	IgnoreNamespaces []string `json:"ignoreNamespaces,omitempty"`
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
	// InitialDelaySeconds is the delay time before the check is being run
	InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`
}

ClusterRuleSecretUnusedSpec defines the desired state of ClusterRuleSecretUnused

func (*ClusterRuleSecretUnusedSpec) DeepCopy

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

func (*ClusterRuleSecretUnusedSpec) DeepCopyInto

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

type ClusterRuleServiceInvalidSelector

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

	Spec ClusterRuleServiceInvalidSelectorSpec `json:"spec,omitempty"`
}

ClusterRuleServiceInvalidSelector is the Schema for the clusterruleserviceinvalidselector API

func (*ClusterRuleServiceInvalidSelector) DeepCopy

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

func (*ClusterRuleServiceInvalidSelector) DeepCopyInto

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

func (*ClusterRuleServiceInvalidSelector) DeepCopyObject

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

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

type ClusterRuleServiceInvalidSelectorList

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

ClusterRuleServiceInvalidSelectorList contains a list of ClusterRuleServiceInvalidSelector

func (*ClusterRuleServiceInvalidSelectorList) DeepCopy

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

func (*ClusterRuleServiceInvalidSelectorList) DeepCopyInto

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

func (*ClusterRuleServiceInvalidSelectorList) DeepCopyObject

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

type ClusterRuleServiceInvalidSelectorSpec

type ClusterRuleServiceInvalidSelectorSpec struct {
	// IgnoreNamespaces is the list of namespaces to ignore for this rule
	IgnoreNamespaces []string `json:"ignoreNamespaces,omitempty"`
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
}

ClusterRuleServiceInvalidSelectorSpec defines the desired state of ClusterRuleServiceInvalidSelector

func (*ClusterRuleServiceInvalidSelectorSpec) DeepCopy

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

func (*ClusterRuleServiceInvalidSelectorSpec) DeepCopyInto

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

type Notification

type Notification struct {
	// Notifiers is the list of notifiers for this notification to send
	Notifiers []string `json:"notifiers"`
	// Suppressed means if this notification has been suppressed, used for temporary reduced the noise
	Suppressed bool `json:"suppressed,omitempty"`
	// Severity is the severity of the issue, one of info, warning, critical, or fatal
	Severity alert.Severity `json:"severity,omitempty"`
	// CustomMessageTemplate can used for customized message, variables can be used are "ResourceName, Severity, and Message"
	CustomMessageTemplate string `json:"customMessageTemplate,omitempty"`
}

func (*Notification) DeepCopy

func (in *Notification) DeepCopy() *Notification

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

func (*Notification) DeepCopyInto

func (in *Notification) DeepCopyInto(out *Notification)

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

type Notifier

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

	Spec   NotifierSpec   `json:"spec,omitempty"`
	Status NotifierStatus `json:"status,omitempty"`
}

Notifier is the Schema for the notifiers API

func (*Notifier) DeepCopy

func (in *Notifier) DeepCopy() *Notifier

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

func (*Notifier) DeepCopyInto

func (in *Notifier) DeepCopyInto(out *Notifier)

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

func (*Notifier) DeepCopyObject

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

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

type NotifierList

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

NotifierList contains a list of Notifier

func (*NotifierList) DeepCopy

func (in *NotifierList) DeepCopy() *NotifierList

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

func (*NotifierList) DeepCopyInto

func (in *NotifierList) DeepCopyInto(out *NotifierList)

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

func (*NotifierList) DeepCopyObject

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

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

type NotifierSpec

type NotifierSpec struct {
	// NotifyInterval is the interval for notifier to check and sends notifications
	NotifyInterval int64 `json:"notifyInterval"`
	// Slack is the notifier for slack
	Slack slack.Spec `json:"slack,omitempty"`
}

NotifierSpec defines the desired state of Notifier

func (*NotifierSpec) DeepCopy

func (in *NotifierSpec) DeepCopy() *NotifierSpec

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

func (*NotifierSpec) DeepCopyInto

func (in *NotifierSpec) DeepCopyInto(out *NotifierSpec)

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

type NotifierStatus

type NotifierStatus struct {
	// CheckedAt is the last check time of the notifier
	CheckedAt string `json:"checkedAt"`
	// Alerts are the map of alerts currently firing/pending for objects violate the rule
	Alerts map[string]alert.Alert `json:"alerts,omitempty"`
}

NotifierStatus defines the observed state of Notifier, example: status:

alerts:
  <RuleKind>/<RuleName>/<ResourceNamespacedName>:
    resourceKind: HorizontalPodAutoscaler
    resourceName: default/nginx
    severity: warning
    status: firing
    suppressed: false
checkedAt: 2006-01-02T15:04:05Z07:00

func (*NotifierStatus) DeepCopy

func (in *NotifierStatus) DeepCopy() *NotifierStatus

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

func (*NotifierStatus) DeepCopyInto

func (in *NotifierStatus) DeepCopyInto(out *NotifierStatus)

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

type RequiredLabel

type RequiredLabel struct {
	// Key is the label key name
	Key string `json:"key"`
	// Value is the label value, when match is set as "regexp", the acceptable syntax of regex is RE2 (https://github.com/google/re2/wiki/Syntax)
	Value string `json:"value"`
	// Match is the way of matching, default to "exact" match, can also use "regexp" and set value to a regular express for matching.
	Match string `json:"match,omitempty"`
}

RequiredLabel is the

func (*RequiredLabel) DeepCopy

func (in *RequiredLabel) DeepCopy() *RequiredLabel

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

func (*RequiredLabel) DeepCopyInto

func (in *RequiredLabel) DeepCopyInto(out *RequiredLabel)

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

type RuleHPAReplicaPercentage

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

	Spec RuleHPAReplicaPercentageSpec `json:"spec,omitempty"`
}

RuleHPAReplicaPercentage is the Schema for the rulehpareplicapercentage API

func (*RuleHPAReplicaPercentage) DeepCopy

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

func (*RuleHPAReplicaPercentage) DeepCopyInto

func (in *RuleHPAReplicaPercentage) DeepCopyInto(out *RuleHPAReplicaPercentage)

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

func (*RuleHPAReplicaPercentage) DeepCopyObject

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

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

type RuleHPAReplicaPercentageList

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

RuleHPAReplicaPercentageList contains a list of RuleHPAReplicaPercentage

func (*RuleHPAReplicaPercentageList) DeepCopy

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

func (*RuleHPAReplicaPercentageList) DeepCopyInto

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

func (*RuleHPAReplicaPercentageList) DeepCopyObject

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

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

type RuleHPAReplicaPercentageSpec

type RuleHPAReplicaPercentageSpec struct {
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
	// Selector selects name or matched labels for a resource to apply this rule
	Selector Selector `json:"selector"`
	// Percent is the threshold of percentage for a HPA current replica divided by max replica to be considered as an issue.
	Percent int32 `json:"percent"`
}

RuleHPAReplicaPercentageSpec defines the desired state of RuleHPAReplicaPercentage

func (*RuleHPAReplicaPercentageSpec) DeepCopy

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

func (*RuleHPAReplicaPercentageSpec) DeepCopyInto

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

type RulePDBMinAllowedDisruption

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

	Spec RulePDBMinAllowedDisruptionSpec `json:"spec,omitempty"`
}

RulePDBMinAllowedDisruption is the Schema for the rulepdbminalloweddisruptions API

func (*RulePDBMinAllowedDisruption) DeepCopy

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

func (*RulePDBMinAllowedDisruption) DeepCopyInto

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

func (*RulePDBMinAllowedDisruption) DeepCopyObject

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

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

type RulePDBMinAllowedDisruptionList

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

RulePDBMinAllowedDisruptionList contains a list of RulePDBMinAllowedDisruption

func (*RulePDBMinAllowedDisruptionList) DeepCopy

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

func (*RulePDBMinAllowedDisruptionList) DeepCopyInto

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

func (*RulePDBMinAllowedDisruptionList) DeepCopyObject

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

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

type RulePDBMinAllowedDisruptionSpec

type RulePDBMinAllowedDisruptionSpec struct {
	// Notification contains the channels and messages to send out to external system, such as slack or pagerduty.
	Notification Notification `json:"notification"`
	// Selector selects name or matched labels for a resource to apply this rule
	Selector Selector `json:"selector"`
	// MinAllowedDisruption is the minimal allowed disruption for this rule, should be an integer, default to 1
	MinAllowedDisruption int `json:"minAllowedDisruption,omitempty"`
}

RulePDBMinAllowedDisruptionSpec defines the desired state of RulePDBMinAllowedDisruption

func (*RulePDBMinAllowedDisruptionSpec) DeepCopy

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

func (*RulePDBMinAllowedDisruptionSpec) DeepCopyInto

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

type RulePodResources

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

	Spec RulePodResourcesSpec `json:"spec,omitempty"`
}

RulePodResources is the Schema for the rulepodresources API

func (*RulePodResources) DeepCopy

func (in *RulePodResources) DeepCopy() *RulePodResources

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

func (*RulePodResources) DeepCopyInto

func (in *RulePodResources) DeepCopyInto(out *RulePodResources)

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

func (*RulePodResources) DeepCopyObject

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

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

type RulePodResourcesList

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

RulePodResourcesList contains a list of RulePodResources

func (*RulePodResourcesList) DeepCopy

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

func (*RulePodResourcesList) DeepCopyInto

func (in *RulePodResourcesList) DeepCopyInto(out *RulePodResourcesList)

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

func (*RulePodResourcesList) DeepCopyObject

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

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

type RulePodResourcesSpec

type RulePodResourcesSpec struct {
}

RulePodResourcesSpec defines the desired state of RulePodResources

func (*RulePodResourcesSpec) DeepCopy

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

func (*RulePodResourcesSpec) DeepCopyInto

func (in *RulePodResourcesSpec) DeepCopyInto(out *RulePodResourcesSpec)

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

type RulePodResourcesStatus

type RulePodResourcesStatus struct {
}

RulePodResourcesStatus defines the observed state of RulePodResources

func (*RulePodResourcesStatus) DeepCopy

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

func (*RulePodResourcesStatus) DeepCopyInto

func (in *RulePodResourcesStatus) DeepCopyInto(out *RulePodResourcesStatus)

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

type Selector

type Selector struct {
	// Name is the resource name this selector will select
	Name string `json:"name,omitempty"`
	// MatchLabels is the map of labels this selector will select on
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

Selector is the resource selector that used when listing kubernetes objects, only namespaced rules have this since cluster rules apply for all objects.

func (*Selector) DeepCopy

func (in *Selector) DeepCopy() *Selector

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

func (*Selector) DeepCopyInto

func (in *Selector) DeepCopyInto(out *Selector)

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