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
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_OneAgentSpec(obj *OneAgentSpec)
- func SetObjectDefaults_OneAgent(in *OneAgent)
- func SetObjectDefaults_OneAgentList(in *OneAgentList)
- type OneAgent
- func (oa *OneAgent) Condition(conditionType OneAgentConditionType) *OneAgentCondition
- func (in *OneAgent) DeepCopy() *OneAgent
- func (in *OneAgent) DeepCopyInto(out *OneAgent)
- func (in *OneAgent) DeepCopyObject() runtime.Object
- func (oa *OneAgent) SetCondition(condType OneAgentConditionType, status corev1.ConditionStatus, ...) bool
- func (oa *OneAgent) SetFailureCondition(conditionType OneAgentConditionType, reason, message string) bool
- type OneAgentCondition
- type OneAgentConditionType
- type OneAgentInstance
- type OneAgentList
- type OneAgentPhaseType
- type OneAgentSpec
- type OneAgentStatus
Constants ¶
const ( // ReasonTokenReady is set when a token has passed verifications. ReasonTokenReady = "TokenReady" // ReasonTokenSecretNotFound is set when the referenced secret can't be found. ReasonTokenSecretNotFound = "TokenSecretNotFound" // ReasonTokenMissing is set when the field is missing on the secret. ReasonTokenMissing = "TokenMissing" ReasonTokenUnauthorized = "TokenUnauthorized" // ReasonTokenScopeMissing is set when the token is missing the required scope for the Dynatrace API. ReasonTokenScopeMissing = "TokenScopeMissing" // ReasonTokenError is set when an unknown error has been found when verifying the token. ReasonTokenError = "TokenError" )
Possible reasons for ApiToken and PaaSToken conditions.
Variables ¶
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 GetOpenAPIDefinitions ¶ added in v0.6.0
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶
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"` // +optional Status OneAgentStatus `json:"status"` }
OneAgent is the Schema for the oneagents API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=oneagents,scope=Namespaced +kubebuilder:printcolumn:name="ApiUrl",type=string,JSONPath=`.spec.apiUrl` +kubebuilder:printcolumn:name="Tokens",type=string,JSONPath=`.spec.tokens` +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.status.version` +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
func (*OneAgent) Condition ¶ added in v0.6.0
func (oa *OneAgent) Condition(conditionType OneAgentConditionType) *OneAgentCondition
Condition returns OneAgentCondition for the given conditionType
func (*OneAgent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OneAgent.
func (*OneAgent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OneAgent) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*OneAgent) SetCondition ¶ added in v0.6.0
func (oa *OneAgent) SetCondition(condType OneAgentConditionType, status corev1.ConditionStatus, reason, message string) bool
SetCondition fills the state for a condition, return true if there were changes on the condition.
func (*OneAgent) SetFailureCondition ¶ added in v0.6.0
func (oa *OneAgent) SetFailureCondition(conditionType OneAgentConditionType, reason, message string) bool
SetFailureCondition fills the state for a failing condition
type OneAgentCondition ¶ added in v0.6.0
type OneAgentCondition struct { Type OneAgentConditionType `json:"type"` Status corev1.ConditionStatus `json:"status"` Reason string `json:"reason"` Message string `json:"message"` }
func (*OneAgentCondition) DeepCopy ¶ added in v0.6.0
func (in *OneAgentCondition) DeepCopy() *OneAgentCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OneAgentCondition.
func (*OneAgentCondition) DeepCopyInto ¶ added in v0.6.0
func (in *OneAgentCondition) DeepCopyInto(out *OneAgentCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OneAgentConditionType ¶ added in v0.6.0
type OneAgentConditionType string
const ( APITokenConditionType OneAgentConditionType = "APIToken" PaaSTokenConditionType OneAgentConditionType = "PaaSToken" )
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 OneAgentPhaseType ¶ added in v0.6.0
type OneAgentPhaseType string
const ( Running OneAgentPhaseType = "Running" Deploying OneAgentPhaseType = "Deploying" Error OneAgentPhaseType = "Error" )
type OneAgentSpec ¶
type OneAgentSpec struct { // Dynatrace api url including `/api` path at the end // either set ENVIRONMENTID to the proper tenant id or change the apiUrl as a whole, e.q. for Managed // +kubebuilder:validation:Required ApiUrl string `json:"apiUrl"` // Disable certificate validation checks for installer download and API communication SkipCertCheck bool `json:"skipCertCheck,omitempty"` // Node selector to control the selection of nodes (optional) NodeSelector map[string]string `json:"nodeSelector,omitempty"` // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ (optional) // +listType=set Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // Defines the time to wait until OneAgent pod is ready after update - default 300 sec (optional) // +kubebuilder:validation:Minimum=0 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,omitempty"` // Arguments to the installer. // +listType=set Args []string `json:"args,omitempty"` // List of environment variables to set for the installer. // +listType=set 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"` // DNS Policy for the OneAgent pods. DNSPolicy corev1.DNSPolicy `json:"dnsPolicy,omitempty"` // Name of the service account for the OneAgent ServiceAccountName string `json:"serviceAccountName,omitempty"` // Labels for the OneAgent pods Labels map[string]string `json:"labels,omitempty"` }
OneAgentSpec defines the desired state of OneAgent +k8s:openapi-gen=true
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"` Instances map[string]OneAgentInstance `json:"instances,omitempty"` UpdatedTimestamp metav1.Time `json:"updatedTimestamp,omitempty"` // Defines the current state (Running, Updating, Error, ...) Phase OneAgentPhaseType `json:"phase,omitempty"` // +listType=set // +optional Conditions []*OneAgentCondition `json:"conditions,omitempty"` // LastAPITokenProbeTimestamp tracks when the last request for the API token validity was sent. LastAPITokenProbeTimestamp *metav1.Time `json:"lastAPITokenProbeTimestamp,omitempty"` // LastPaaSTokenProbeTimestamp tracks when the last request for the PaaS token validity was sent. LastPaaSTokenProbeTimestamp *metav1.Time `json:"lastPaaSTokenProbeTimestamp,omitempty"` }
OneAgentStatus defines the observed state of OneAgent +k8s:openapi-gen=true
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.