Documentation ¶
Index ¶
- Constants
- func AffinityNodeRequirement() []corev1.NodeSelectorRequirement
- func AffinityNodeRequirementWithARM64() []corev1.NodeSelectorRequirement
- func CheckIfOneAgentAPMExists(cfg *rest.Config) (bool, error)
- func CreateEmptySecret(name string, namespace string) *corev1.Secret
- func CreateOrUpdateDaemonSet(c client.Client, logger logr.Logger, desiredDs *appsv1.DaemonSet) (bool, error)
- func CreateOrUpdateSecretIfNotExists(c client.Client, r client.Reader, secretName string, targetNS string, ...) (bool, error)
- func ExtractToken(secret *corev1.Secret, key string) (string, error)
- func GenerateHash(ds interface{}) (string, error)
- func GetDeployment(c client.Client, podName, namespace string) (*appsv1.Deployment, error)
- func GetField(values map[string]string, key string, defaultValue string) string
- func GetFieldBool(values map[string]string, key string, defaultValue bool) bool
- func GetSecret(ctx context.Context, apiReader client.Reader, name string, namespace string) (*corev1.Secret, error)
- func HasChanged(a, b metav1.Object) bool
- func MergeLabels(labels ...map[string]string) map[string]string
- type Tokens
Constants ¶
View Source
const AnnotationHash = "internal.operator.dynatrace.com/template-hash"
Variables ¶
This section is empty.
Functions ¶
func AffinityNodeRequirement ¶
func AffinityNodeRequirement() []corev1.NodeSelectorRequirement
func AffinityNodeRequirementWithARM64 ¶
func AffinityNodeRequirementWithARM64() []corev1.NodeSelectorRequirement
func CheckIfOneAgentAPMExists ¶
CheckIfOneAgentAPMExists checks if a OneAgentAPM object exists
func CreateOrUpdateDaemonSet ¶
func CreateOrUpdateSecretIfNotExists ¶
func CreateOrUpdateSecretIfNotExists(c client.Client, r client.Reader, secretName string, targetNS string, data map[string][]byte, secretType corev1.SecretType, log logr.Logger) (bool, error)
CreateOrUpdateSecretIfNotExists creates a secret in case it does not exist or updates it if there are changes
func GenerateHash ¶
func GetDeployment ¶
GetDeployment returns the Deployment object who is the owner of this pod.
func HasChanged ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.