v1alpha1

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

+groupName=maintenance.dynatrace.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: maintenance.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Window

type Window struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              WindowSpec   `json:"spec,omitempty"`
	Status            WindowStatus `json:"status,omitempty"`
}

func (*Window) DeepCopy

func (in *Window) DeepCopy() *Window

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

func (*Window) DeepCopyInto

func (in *Window) DeepCopyInto(out *Window)

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

func (*Window) DeepCopyObject

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

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

func (*Window) SetupWebhookWithManager

func (r *Window) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Window) ValidateCreate

func (r *Window) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Window) ValidateDelete

func (r *Window) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Window) ValidateUpdate

func (r *Window) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type WindowList

type WindowList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Window CRD objects
	Items []Window `json:"items,omitempty"`
}

WindowList is a list of Windows

func (*WindowList) DeepCopy

func (in *WindowList) DeepCopy() *WindowList

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

func (*WindowList) DeepCopyInto

func (in *WindowList) DeepCopyInto(out *WindowList)

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

func (*WindowList) DeepCopyObject

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

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

type WindowSpec

type WindowSpec struct {
	State *WindowSpecResource `json:"state,omitempty" tf:"-"`

	Resource WindowSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*WindowSpec) DeepCopy

func (in *WindowSpec) DeepCopy() *WindowSpec

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

func (*WindowSpec) DeepCopyInto

func (in *WindowSpec) DeepCopyInto(out *WindowSpec)

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

type WindowSpecMetadata

type WindowSpecMetadata struct {
	// Dynatrace server version
	// +optional
	ClusterVersion *string `json:"clusterVersion,omitempty" tf:"cluster_version"`
	// A Sorted list of the version numbers of the configuration
	// +optional
	ConfigurationVersions []int64 `json:"configurationVersions,omitempty" tf:"configuration_versions"`
	// A Sorted list of the version numbers of the configuration
	// +optional
	CurrentConfigurationVersions []string `json:"currentConfigurationVersions,omitempty" tf:"current_configuration_versions"`
}

func (*WindowSpecMetadata) DeepCopy

func (in *WindowSpecMetadata) DeepCopy() *WindowSpecMetadata

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

func (*WindowSpecMetadata) DeepCopyInto

func (in *WindowSpecMetadata) DeepCopyInto(out *WindowSpecMetadata)

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

type WindowSpecMetadataCodec

type WindowSpecMetadataCodec struct {
}

+k8s:deepcopy-gen=false

func (WindowSpecMetadataCodec) Decode

func (WindowSpecMetadataCodec) Encode

func (WindowSpecMetadataCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (WindowSpecMetadataCodec) IsEmpty

type WindowSpecResource

type WindowSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// A short description of the maintenance purpose
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// The Maintenance Window is enabled or disabled
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// `metadata` exists for backwards compatibility but shouldn't get specified anymore
	// +optional
	// Deprecated
	Metadata *WindowSpecMetadata `json:"metadata,omitempty" tf:"metadata"`
	// The name of the maintenance window, displayed in the UI
	Name *string `json:"name" tf:"name"`
	// The schedule of the maintenance window
	// +optional
	Schedule *WindowSpecSchedule `json:"schedule,omitempty" tf:"schedule"`
	// the tiles this Dashboard consist of
	// +optional
	Scope *WindowSpecScope `json:"scope,omitempty" tf:"scope"`
	// Suppress execution of synthetic monitors during the maintenance
	// +optional
	SuppressSynthMonExec *bool `json:"suppressSynthMonExec,omitempty" tf:"suppress_synth_mon_exec"`
	// The type of suppression of alerting and problem detection during the maintenance
	Suppression *string `json:"suppression" tf:"suppression"`
	// The type of the maintenance: planned or unplanned
	Type *string `json:"type" tf:"type"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
}

func (*WindowSpecResource) DeepCopy

func (in *WindowSpecResource) DeepCopy() *WindowSpecResource

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

func (*WindowSpecResource) DeepCopyInto

func (in *WindowSpecResource) DeepCopyInto(out *WindowSpecResource)

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

type WindowSpecSchedule

type WindowSpecSchedule struct {
	// The end date and time of the maintenance window validity period in yyyy-mm-dd HH:mm format
	End *string `json:"end" tf:"end"`
	// The recurrence of the maintenance window
	// +optional
	Recurrence *WindowSpecScheduleRecurrence `json:"recurrence,omitempty" tf:"recurrence"`
	// The type of the schedule recurrence. Possible values are `DAILY`, `MONTHLY`, `ONCE` and `WEEKLY`
	RecurrenceType *string `json:"recurrenceType" tf:"recurrence_type"`
	// The start date and time of the maintenance window validity period in yyyy-mm-dd HH:mm format
	Start *string `json:"start" tf:"start"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
	// The time zone of the start and end time. Default time zone is UTC. You can use either UTC offset `UTC+01:00` format or the IANA Time Zone Database format (for example, `Europe/Vienna`)
	ZoneID *string `json:"zoneID" tf:"zone_id"`
}

func (*WindowSpecSchedule) DeepCopy

func (in *WindowSpecSchedule) DeepCopy() *WindowSpecSchedule

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

func (*WindowSpecSchedule) DeepCopyInto

func (in *WindowSpecSchedule) DeepCopyInto(out *WindowSpecSchedule)

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

type WindowSpecScheduleCodec

type WindowSpecScheduleCodec struct {
}

+k8s:deepcopy-gen=false

func (WindowSpecScheduleCodec) Decode

func (WindowSpecScheduleCodec) Encode

func (WindowSpecScheduleCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (WindowSpecScheduleCodec) IsEmpty

type WindowSpecScheduleRecurrence

type WindowSpecScheduleRecurrence struct {
	// The day of the month for monthly maintenance.  The value of `31` is treated as the last day of the month for months that don't have a 31st day. The value of `30` is also treated as the last day of the month for February
	// +optional
	DayOfMonth *int64 `json:"dayOfMonth,omitempty" tf:"day_of_month"`
	// The day of the week for weekly maintenance.  The format is the full name of the day in upper case, for example `THURSDAY`
	// +optional
	DayOfWeek *string `json:"dayOfWeek,omitempty" tf:"day_of_week"`
	// The duration of the maintenance window in minutes
	DurationMinutes *int64 `json:"durationMinutes" tf:"duration_minutes"`
	// The start time of the maintenance window in HH:mm format
	StartTime *string `json:"startTime" tf:"start_time"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
}

func (*WindowSpecScheduleRecurrence) DeepCopy

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

func (*WindowSpecScheduleRecurrence) DeepCopyInto

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

type WindowSpecScheduleRecurrenceCodec

type WindowSpecScheduleRecurrenceCodec struct {
}

+k8s:deepcopy-gen=false

func (WindowSpecScheduleRecurrenceCodec) Decode

func (WindowSpecScheduleRecurrenceCodec) Encode

func (WindowSpecScheduleRecurrenceCodec) IsEmpty

type WindowSpecScope

type WindowSpecScope struct {
	// A list of Dynatrace entities (for example, hosts or services) to be included in the scope.  Allowed values are Dynatrace entity IDs
	// +optional
	Entities []string `json:"entities,omitempty" tf:"entities"`
	// A list of matching rules for dynamic scope formation.  If several rules are set, the OR logic applies
	// +optional
	// +kubebuilder:validation:MinItems=1
	Matches []WindowSpecScopeMatches `json:"matches,omitempty" tf:"matches"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
}

func (*WindowSpecScope) DeepCopy

func (in *WindowSpecScope) DeepCopy() *WindowSpecScope

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

func (*WindowSpecScope) DeepCopyInto

func (in *WindowSpecScope) DeepCopyInto(out *WindowSpecScope)

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

type WindowSpecScopeCodec

type WindowSpecScopeCodec struct {
}

+k8s:deepcopy-gen=false

func (WindowSpecScopeCodec) Decode

func (WindowSpecScopeCodec) Encode

func (WindowSpecScopeCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (WindowSpecScopeCodec) IsEmpty

func (WindowSpecScopeCodec) IsEmpty(ptr unsafe.Pointer) bool

type WindowSpecScopeMatches

type WindowSpecScopeMatches struct {
	// The ID of a management zone to which the matched entities must belong
	// +optional
	MzID *string `json:"mzID,omitempty" tf:"mz_id"`
	// The logic that applies when several tags are specified: AND/OR.  If not set, the OR logic is used
	// +optional
	TagCombination *string `json:"tagCombination,omitempty" tf:"tag_combination"`
	// The tag you want to use for matching.  You can use custom tags from the UI, AWS tags, Cloud Foundry tags, OpenShift/Kubernetes, and tags based on environment variables
	// +optional
	// +kubebuilder:validation:MinItems=1
	Tags []WindowSpecScopeMatchesTags `json:"tags,omitempty" tf:"tags"`
	// The type of the Dynatrace entities (for example, hosts or services) you want to pick up by matching
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
}

func (*WindowSpecScopeMatches) DeepCopy

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

func (*WindowSpecScopeMatches) DeepCopyInto

func (in *WindowSpecScopeMatches) DeepCopyInto(out *WindowSpecScopeMatches)

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

type WindowSpecScopeMatchesTags

type WindowSpecScopeMatchesTags struct {
	// The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the `CONTEXTLESS` value
	Context *string `json:"context" tf:"context"`
	// The key of the tag. Custom tags have the tag value here
	Key *string `json:"key" tf:"key"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
	// The value of the tag. Not applicable to custom tags
	// +optional
	Value *string `json:"value,omitempty" tf:"value"`
}

func (*WindowSpecScopeMatchesTags) DeepCopy

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

func (*WindowSpecScopeMatchesTags) DeepCopyInto

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

type WindowStatus

type WindowStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*WindowStatus) DeepCopy

func (in *WindowStatus) DeepCopy() *WindowStatus

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

func (*WindowStatus) DeepCopyInto

func (in *WindowStatus) DeepCopyInto(out *WindowStatus)

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