v1

package
v0.0.0-...-6c851f4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertRelabelConfigApplyConfiguration

type AlertRelabelConfigApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *AlertRelabelConfigSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *AlertRelabelConfigStatusApplyConfiguration `json:"status,omitempty"`
}

AlertRelabelConfigApplyConfiguration represents an declarative configuration of the AlertRelabelConfig type for use with apply.

func AlertRelabelConfig

func AlertRelabelConfig(name, namespace string) *AlertRelabelConfigApplyConfiguration

AlertRelabelConfig constructs an declarative configuration of the AlertRelabelConfig type for use with apply.

func ExtractAlertRelabelConfig

func ExtractAlertRelabelConfig(alertRelabelConfig *apimonitoringv1.AlertRelabelConfig, fieldManager string) (*AlertRelabelConfigApplyConfiguration, error)

ExtractAlertRelabelConfig extracts the applied configuration owned by fieldManager from alertRelabelConfig. If no managedFields are found in alertRelabelConfig for fieldManager, a AlertRelabelConfigApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. alertRelabelConfig must be a unmodified AlertRelabelConfig API object that was retrieved from the Kubernetes API. ExtractAlertRelabelConfig provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func ExtractAlertRelabelConfigStatus

func ExtractAlertRelabelConfigStatus(alertRelabelConfig *apimonitoringv1.AlertRelabelConfig, fieldManager string) (*AlertRelabelConfigApplyConfiguration, error)

ExtractAlertRelabelConfigStatus is the same as ExtractAlertRelabelConfig except that it extracts the status subresource applied configuration. Experimental!

func (*AlertRelabelConfigApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*AlertRelabelConfigApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *AlertRelabelConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AlertRelabelConfigApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*AlertRelabelConfigApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*AlertRelabelConfigApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*AlertRelabelConfigApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*AlertRelabelConfigApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type AlertRelabelConfigSpecApplyConfiguration

type AlertRelabelConfigSpecApplyConfiguration struct {
	Configs []RelabelConfigApplyConfiguration `json:"configs,omitempty"`
}

AlertRelabelConfigSpecApplyConfiguration represents an declarative configuration of the AlertRelabelConfigSpec type for use with apply.

func AlertRelabelConfigSpec

func AlertRelabelConfigSpec() *AlertRelabelConfigSpecApplyConfiguration

AlertRelabelConfigSpecApplyConfiguration constructs an declarative configuration of the AlertRelabelConfigSpec type for use with apply.

func (*AlertRelabelConfigSpecApplyConfiguration) WithConfigs

WithConfigs adds the given value to the Configs field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Configs field.

type AlertRelabelConfigStatusApplyConfiguration

type AlertRelabelConfigStatusApplyConfiguration struct {
	Conditions []v1.Condition `json:"conditions,omitempty"`
}

AlertRelabelConfigStatusApplyConfiguration represents an declarative configuration of the AlertRelabelConfigStatus type for use with apply.

func AlertRelabelConfigStatus

func AlertRelabelConfigStatus() *AlertRelabelConfigStatusApplyConfiguration

AlertRelabelConfigStatusApplyConfiguration constructs an declarative configuration of the AlertRelabelConfigStatus type for use with apply.

func (*AlertRelabelConfigStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

type AlertingRuleApplyConfiguration

type AlertingRuleApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *AlertingRuleSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *AlertingRuleStatusApplyConfiguration `json:"status,omitempty"`
}

AlertingRuleApplyConfiguration represents an declarative configuration of the AlertingRule type for use with apply.

func AlertingRule

func AlertingRule(name, namespace string) *AlertingRuleApplyConfiguration

AlertingRule constructs an declarative configuration of the AlertingRule type for use with apply.

func ExtractAlertingRule

func ExtractAlertingRule(alertingRule *apimonitoringv1.AlertingRule, fieldManager string) (*AlertingRuleApplyConfiguration, error)

ExtractAlertingRule extracts the applied configuration owned by fieldManager from alertingRule. If no managedFields are found in alertingRule for fieldManager, a AlertingRuleApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. alertingRule must be a unmodified AlertingRule API object that was retrieved from the Kubernetes API. ExtractAlertingRule provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func ExtractAlertingRuleStatus

func ExtractAlertingRuleStatus(alertingRule *apimonitoringv1.AlertingRule, fieldManager string) (*AlertingRuleApplyConfiguration, error)

ExtractAlertingRuleStatus is the same as ExtractAlertingRule except that it extracts the status subresource applied configuration. Experimental!

func (*AlertingRuleApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*AlertingRuleApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *AlertingRuleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AlertingRuleApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*AlertingRuleApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*AlertingRuleApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*AlertingRuleApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*AlertingRuleApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type AlertingRuleSpecApplyConfiguration

type AlertingRuleSpecApplyConfiguration struct {
	Groups []RuleGroupApplyConfiguration `json:"groups,omitempty"`
}

AlertingRuleSpecApplyConfiguration represents an declarative configuration of the AlertingRuleSpec type for use with apply.

func AlertingRuleSpec

func AlertingRuleSpec() *AlertingRuleSpecApplyConfiguration

AlertingRuleSpecApplyConfiguration constructs an declarative configuration of the AlertingRuleSpec type for use with apply.

func (*AlertingRuleSpecApplyConfiguration) WithGroups

WithGroups adds the given value to the Groups field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Groups field.

type AlertingRuleStatusApplyConfiguration

type AlertingRuleStatusApplyConfiguration struct {
	ObservedGeneration *int64                               `json:"observedGeneration,omitempty"`
	PrometheusRule     *PrometheusRuleRefApplyConfiguration `json:"prometheusRule,omitempty"`
}

AlertingRuleStatusApplyConfiguration represents an declarative configuration of the AlertingRuleStatus type for use with apply.

func AlertingRuleStatus

func AlertingRuleStatus() *AlertingRuleStatusApplyConfiguration

AlertingRuleStatusApplyConfiguration constructs an declarative configuration of the AlertingRuleStatus type for use with apply.

func (*AlertingRuleStatusApplyConfiguration) WithObservedGeneration

WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ObservedGeneration field is set to the value of the last call.

func (*AlertingRuleStatusApplyConfiguration) WithPrometheusRule

WithPrometheusRule sets the PrometheusRule field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PrometheusRule field is set to the value of the last call.

type PrometheusRuleRefApplyConfiguration

type PrometheusRuleRefApplyConfiguration struct {
	Name *string `json:"name,omitempty"`
}

PrometheusRuleRefApplyConfiguration represents an declarative configuration of the PrometheusRuleRef type for use with apply.

func PrometheusRuleRef

func PrometheusRuleRef() *PrometheusRuleRefApplyConfiguration

PrometheusRuleRefApplyConfiguration constructs an declarative configuration of the PrometheusRuleRef type for use with apply.

func (*PrometheusRuleRefApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

type RelabelConfigApplyConfiguration

type RelabelConfigApplyConfiguration struct {
	SourceLabels []v1.LabelName `json:"sourceLabels,omitempty"`
	Separator    *string        `json:"separator,omitempty"`
	TargetLabel  *string        `json:"targetLabel,omitempty"`
	Regex        *string        `json:"regex,omitempty"`
	Modulus      *uint64        `json:"modulus,omitempty"`
	Replacement  *string        `json:"replacement,omitempty"`
	Action       *string        `json:"action,omitempty"`
}

RelabelConfigApplyConfiguration represents an declarative configuration of the RelabelConfig type for use with apply.

func RelabelConfig

func RelabelConfig() *RelabelConfigApplyConfiguration

RelabelConfigApplyConfiguration constructs an declarative configuration of the RelabelConfig type for use with apply.

func (*RelabelConfigApplyConfiguration) WithAction

WithAction sets the Action field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Action field is set to the value of the last call.

func (*RelabelConfigApplyConfiguration) WithModulus

WithModulus sets the Modulus field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Modulus field is set to the value of the last call.

func (*RelabelConfigApplyConfiguration) WithRegex

WithRegex sets the Regex field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Regex field is set to the value of the last call.

func (*RelabelConfigApplyConfiguration) WithReplacement

WithReplacement sets the Replacement field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Replacement field is set to the value of the last call.

func (*RelabelConfigApplyConfiguration) WithSeparator

WithSeparator sets the Separator field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Separator field is set to the value of the last call.

func (*RelabelConfigApplyConfiguration) WithSourceLabels

WithSourceLabels adds the given value to the SourceLabels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SourceLabels field.

func (*RelabelConfigApplyConfiguration) WithTargetLabel

WithTargetLabel sets the TargetLabel field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TargetLabel field is set to the value of the last call.

type RuleApplyConfiguration

type RuleApplyConfiguration struct {
	Alert       *string             `json:"alert,omitempty"`
	Expr        *intstr.IntOrString `json:"expr,omitempty"`
	For         *v1.Duration        `json:"for,omitempty"`
	Labels      map[string]string   `json:"labels,omitempty"`
	Annotations map[string]string   `json:"annotations,omitempty"`
}

RuleApplyConfiguration represents an declarative configuration of the Rule type for use with apply.

func Rule

func Rule() *RuleApplyConfiguration

RuleApplyConfiguration constructs an declarative configuration of the Rule type for use with apply.

func (*RuleApplyConfiguration) WithAlert

WithAlert sets the Alert field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Alert field is set to the value of the last call.

func (*RuleApplyConfiguration) WithAnnotations

func (b *RuleApplyConfiguration) WithAnnotations(entries map[string]string) *RuleApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*RuleApplyConfiguration) WithExpr

WithExpr sets the Expr field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Expr field is set to the value of the last call.

func (*RuleApplyConfiguration) WithFor

WithFor sets the For field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the For field is set to the value of the last call.

func (*RuleApplyConfiguration) WithLabels

func (b *RuleApplyConfiguration) WithLabels(entries map[string]string) *RuleApplyConfiguration

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

type RuleGroupApplyConfiguration

type RuleGroupApplyConfiguration struct {
	Name     *string                  `json:"name,omitempty"`
	Interval *v1.Duration             `json:"interval,omitempty"`
	Rules    []RuleApplyConfiguration `json:"rules,omitempty"`
}

RuleGroupApplyConfiguration represents an declarative configuration of the RuleGroup type for use with apply.

func RuleGroup

func RuleGroup() *RuleGroupApplyConfiguration

RuleGroupApplyConfiguration constructs an declarative configuration of the RuleGroup type for use with apply.

func (*RuleGroupApplyConfiguration) WithInterval

WithInterval sets the Interval field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Interval field is set to the value of the last call.

func (*RuleGroupApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*RuleGroupApplyConfiguration) WithRules

WithRules adds the given value to the Rules field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Rules field.

Jump to

Keyboard shortcuts

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