Documentation ¶
Index ¶
- type AlertRelabelConfigApplyConfiguration
- func AlertRelabelConfig(name, namespace string) *AlertRelabelConfigApplyConfiguration
- func ExtractAlertRelabelConfig(alertRelabelConfig *monitoringv1alpha1.AlertRelabelConfig, fieldManager string) (*AlertRelabelConfigApplyConfiguration, error)
- func ExtractAlertRelabelConfigStatus(alertRelabelConfig *monitoringv1alpha1.AlertRelabelConfig, fieldManager string) (*AlertRelabelConfigApplyConfiguration, error)
- func (b *AlertRelabelConfigApplyConfiguration) WithAPIVersion(value string) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithAnnotations(entries map[string]string) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithFinalizers(values ...string) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithGenerateName(value string) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithGeneration(value int64) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithKind(value string) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithLabels(entries map[string]string) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithName(value string) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithNamespace(value string) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithResourceVersion(value string) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithSpec(value *AlertRelabelConfigSpecApplyConfiguration) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithStatus(value *AlertRelabelConfigStatusApplyConfiguration) *AlertRelabelConfigApplyConfiguration
- func (b *AlertRelabelConfigApplyConfiguration) WithUID(value types.UID) *AlertRelabelConfigApplyConfiguration
- type AlertRelabelConfigSpecApplyConfiguration
- type AlertRelabelConfigStatusApplyConfiguration
- type AlertingRuleApplyConfiguration
- func AlertingRule(name, namespace string) *AlertingRuleApplyConfiguration
- func ExtractAlertingRule(alertingRule *monitoringv1alpha1.AlertingRule, fieldManager string) (*AlertingRuleApplyConfiguration, error)
- func ExtractAlertingRuleStatus(alertingRule *monitoringv1alpha1.AlertingRule, fieldManager string) (*AlertingRuleApplyConfiguration, error)
- func (b *AlertingRuleApplyConfiguration) WithAPIVersion(value string) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithAnnotations(entries map[string]string) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithFinalizers(values ...string) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithGenerateName(value string) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithGeneration(value int64) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithKind(value string) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithLabels(entries map[string]string) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithName(value string) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithNamespace(value string) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithResourceVersion(value string) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithSpec(value *AlertingRuleSpecApplyConfiguration) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithStatus(value *AlertingRuleStatusApplyConfiguration) *AlertingRuleApplyConfiguration
- func (b *AlertingRuleApplyConfiguration) WithUID(value types.UID) *AlertingRuleApplyConfiguration
- type AlertingRuleSpecApplyConfiguration
- type AlertingRuleStatusApplyConfiguration
- type PrometheusRuleRefApplyConfiguration
- type RelabelConfigApplyConfiguration
- func (b *RelabelConfigApplyConfiguration) WithAction(value string) *RelabelConfigApplyConfiguration
- func (b *RelabelConfigApplyConfiguration) WithModulus(value uint64) *RelabelConfigApplyConfiguration
- func (b *RelabelConfigApplyConfiguration) WithRegex(value string) *RelabelConfigApplyConfiguration
- func (b *RelabelConfigApplyConfiguration) WithReplacement(value string) *RelabelConfigApplyConfiguration
- func (b *RelabelConfigApplyConfiguration) WithSeparator(value string) *RelabelConfigApplyConfiguration
- func (b *RelabelConfigApplyConfiguration) WithSourceLabels(values ...v1alpha1.LabelName) *RelabelConfigApplyConfiguration
- func (b *RelabelConfigApplyConfiguration) WithTargetLabel(value string) *RelabelConfigApplyConfiguration
- type RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithAlert(value string) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithAnnotations(entries map[string]string) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithExpr(value intstr.IntOrString) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithFor(value string) *RuleApplyConfiguration
- func (b *RuleApplyConfiguration) WithLabels(entries map[string]string) *RuleApplyConfiguration
- type RuleGroupApplyConfiguration
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 *monitoringv1alpha1.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 *monitoringv1alpha1.AlertRelabelConfig, fieldManager string) (*AlertRelabelConfigApplyConfiguration, error)
ExtractAlertRelabelConfigStatus is the same as ExtractAlertRelabelConfig except that it extracts the status subresource applied configuration. Experimental!
func (*AlertRelabelConfigApplyConfiguration) WithAPIVersion ¶
func (b *AlertRelabelConfigApplyConfiguration) WithAPIVersion(value string) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithAnnotations(entries map[string]string) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithFinalizers(values ...string) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithGenerateName(value string) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithGeneration(value int64) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithKind(value string) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithLabels(entries map[string]string) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithName(value string) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithNamespace(value string) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithResourceVersion(value string) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithSpec(value *AlertRelabelConfigSpecApplyConfiguration) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithStatus(value *AlertRelabelConfigStatusApplyConfiguration) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigApplyConfiguration) WithUID(value types.UID) *AlertRelabelConfigApplyConfiguration
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 ¶
func (b *AlertRelabelConfigSpecApplyConfiguration) WithConfigs(values ...*RelabelConfigApplyConfiguration) *AlertRelabelConfigSpecApplyConfiguration
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 ¶
func (b *AlertRelabelConfigStatusApplyConfiguration) WithConditions(values ...v1.Condition) *AlertRelabelConfigStatusApplyConfiguration
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 *monitoringv1alpha1.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 *monitoringv1alpha1.AlertingRule, fieldManager string) (*AlertingRuleApplyConfiguration, error)
ExtractAlertingRuleStatus is the same as ExtractAlertingRule except that it extracts the status subresource applied configuration. Experimental!
func (*AlertingRuleApplyConfiguration) WithAPIVersion ¶
func (b *AlertingRuleApplyConfiguration) WithAPIVersion(value string) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithAnnotations(entries map[string]string) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithFinalizers(values ...string) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithGenerateName(value string) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithGeneration(value int64) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithKind(value string) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithLabels(entries map[string]string) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithName(value string) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithNamespace(value string) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithResourceVersion(value string) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithSpec(value *AlertingRuleSpecApplyConfiguration) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithStatus(value *AlertingRuleStatusApplyConfiguration) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleApplyConfiguration) WithUID(value types.UID) *AlertingRuleApplyConfiguration
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 ¶
func (b *AlertingRuleSpecApplyConfiguration) WithGroups(values ...*RuleGroupApplyConfiguration) *AlertingRuleSpecApplyConfiguration
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 ¶
func (b *AlertingRuleStatusApplyConfiguration) WithObservedGeneration(value int64) *AlertingRuleStatusApplyConfiguration
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 ¶
func (b *AlertingRuleStatusApplyConfiguration) WithPrometheusRule(value *PrometheusRuleRefApplyConfiguration) *AlertingRuleStatusApplyConfiguration
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 ¶
func (b *PrometheusRuleRefApplyConfiguration) WithName(value string) *PrometheusRuleRefApplyConfiguration
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 []v1alpha1.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 ¶
func (b *RelabelConfigApplyConfiguration) WithAction(value string) *RelabelConfigApplyConfiguration
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 ¶
func (b *RelabelConfigApplyConfiguration) WithModulus(value uint64) *RelabelConfigApplyConfiguration
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 ¶
func (b *RelabelConfigApplyConfiguration) WithRegex(value string) *RelabelConfigApplyConfiguration
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 ¶
func (b *RelabelConfigApplyConfiguration) WithReplacement(value string) *RelabelConfigApplyConfiguration
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 ¶
func (b *RelabelConfigApplyConfiguration) WithSeparator(value string) *RelabelConfigApplyConfiguration
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 ¶
func (b *RelabelConfigApplyConfiguration) WithSourceLabels(values ...v1alpha1.LabelName) *RelabelConfigApplyConfiguration
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 ¶
func (b *RelabelConfigApplyConfiguration) WithTargetLabel(value string) *RelabelConfigApplyConfiguration
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 *string `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 ¶
func (b *RuleApplyConfiguration) WithAlert(value string) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithExpr(value intstr.IntOrString) *RuleApplyConfiguration
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 ¶
func (b *RuleApplyConfiguration) WithFor(value string) *RuleApplyConfiguration
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 *string `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 ¶
func (b *RuleGroupApplyConfiguration) WithInterval(value string) *RuleGroupApplyConfiguration
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 ¶
func (b *RuleGroupApplyConfiguration) WithName(value string) *RuleGroupApplyConfiguration
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 ¶
func (b *RuleGroupApplyConfiguration) WithRules(values ...*RuleApplyConfiguration) *RuleGroupApplyConfiguration
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.