v1alpha1

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the dynatrace v1alpha1 API group +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=dynatrace.com

Package v1alpha1 contains API Schema definitions for the dynatrace v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=dynatrace.com

Index

Constants

This section is empty.

Variables

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

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

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func SetDefaults_OneAgentSpec

func SetDefaults_OneAgentSpec(obj *OneAgentSpec)

func SetObjectDefaults_OneAgent

func SetObjectDefaults_OneAgent(in *OneAgent)

func SetObjectDefaults_OneAgentList

func SetObjectDefaults_OneAgentList(in *OneAgentList)

Types

type OneAgent

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

	Spec   OneAgentSpec   `json:"spec,omitempty"`
	Status OneAgentStatus `json:"status,omitempty"`
}

OneAgent is the Schema for the oneagents API +k8s:openapi-gen=true

func (*OneAgent) DeepCopy

func (in *OneAgent) DeepCopy() *OneAgent

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

func (*OneAgent) DeepCopyInto

func (in *OneAgent) DeepCopyInto(out *OneAgent)

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

func (*OneAgent) DeepCopyObject

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

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

type OneAgentInstance

type OneAgentInstance struct {
	PodName   string `json:"podName,omitempty"`
	Version   string `json:"version,omitempty"`
	IPAddress string `json:"ipAddress,omitempty"`
}

func (*OneAgentInstance) DeepCopy

func (in *OneAgentInstance) DeepCopy() *OneAgentInstance

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

func (*OneAgentInstance) DeepCopyInto

func (in *OneAgentInstance) DeepCopyInto(out *OneAgentInstance)

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

type OneAgentList

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

OneAgentList contains a list of OneAgent

func (*OneAgentList) DeepCopy

func (in *OneAgentList) DeepCopy() *OneAgentList

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

func (*OneAgentList) DeepCopyInto

func (in *OneAgentList) DeepCopyInto(out *OneAgentList)

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

func (*OneAgentList) DeepCopyObject

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

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

type OneAgentSpec

type OneAgentSpec struct {
	ApiUrl           string              `json:"apiUrl"`
	SkipCertCheck    bool                `json:"skipCertCheck,omitempty"`
	NodeSelector     map[string]string   `json:"nodeSelector,omitempty"`
	Tolerations      []corev1.Toleration `json:"tolerations,omitempty"`
	WaitReadySeconds *uint16             `json:"waitReadySeconds,omitempty"`
	// Installer image
	// Defaults to docker.io/dynatrace/oneagent:latest
	Image string `json:"image,omitempty"`
	// Name of secret containing tokens
	// Secret must contain keys `apiToken` and `paasToken`
	Tokens string `json:"tokens"`
	// Arguments to the installer.
	Args []string `json:"args,omitempty"`
	// List of environment variables to set for the installer.
	Env []corev1.EnvVar `json:"env,omitempty"`
	// Compute Resources required by OneAgent containers.
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
	// If specified, indicates the pod's priority. Name must be defined by creating a PriorityClass object with that
	// name. If not specified the setting will be removed from the DaemonSet.
	PriorityClassName string `json:"priorityClassName,omitempty"`
	// If enabled, OneAgent pods won't be restarted automatically in case a new version is available
	DisableAgentUpdate bool `json:"disableAgentUpdate,omitempty"`
	// If enabled, Istio on the cluster will be configured automatically to allow access to the Dynatrace environment.
	EnableIstio bool `json:"enableIstio,omitempty"`
	// Name of the service account for the OneAgent
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

OneAgentSpec defines the desired state of OneAgent

func (*OneAgentSpec) DeepCopy

func (in *OneAgentSpec) DeepCopy() *OneAgentSpec

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

func (*OneAgentSpec) DeepCopyInto

func (in *OneAgentSpec) DeepCopyInto(out *OneAgentSpec)

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

type OneAgentStatus

type OneAgentStatus struct {
	Version          string                      `json:"version,omitempty"`
	Items            map[string]OneAgentInstance `json:"items,omitempty"`
	UpdatedTimestamp metav1.Time                 `json:"updatedTimestamp,omitempty"`
}

OneAgentStatus defines the observed state of OneAgent

func (*OneAgentStatus) DeepCopy

func (in *OneAgentStatus) DeepCopy() *OneAgentStatus

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

func (*OneAgentStatus) DeepCopyInto

func (in *OneAgentStatus) DeepCopyInto(out *OneAgentStatus)

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