Documentation
¶
Index ¶
- Constants
- func BuildPullSecret(instance *dynatracev1alpha1.DynaKube) corev1.LocalObjectReference
- func CheckIfOneAgentAPMExists(cfg *rest.Config) (bool, error)
- func CreateOrUpdateSecretIfNotExists(c client.Client, r client.Reader, secretName string, targetNS string, ...) error
- func ExtractToken(secret *corev1.Secret, key string) (string, error)
- func GetDeployment(c client.Client, ns string) (*appsv1.Deployment, error)
- func GetField(values map[string]string, key, defaultValue string) string
- func GetTokensName(obj *dynatracev1alpha1.DynaKube) string
- func SetUseImmutableImageStatus(instance *dynatracev1alpha1.DynaKube, fs *dynatracev1alpha1.FullStackSpec) bool
- type DockerConfig
- type Reconciliation
- type Tokens
Constants ¶
View Source
const ( DynatracePaasToken = "paasToken" DynatraceApiToken = "apiToken" )
Variables ¶
This section is empty.
Functions ¶
func BuildPullSecret ¶
func BuildPullSecret(instance *dynatracev1alpha1.DynaKube) corev1.LocalObjectReference
func CheckIfOneAgentAPMExists ¶
CheckIfOneAgentAPMExists checks if a OneAgentAPM object exists
func CreateOrUpdateSecretIfNotExists ¶
func CreateOrUpdateSecretIfNotExists(c client.Client, r client.Reader, secretName string, targetNS string, data map[string][]byte, secretType corev1.SecretType, log logr.Logger) error
CreateOrUpdateSecretIfNotExists creates a secret in case it does not exist or updates it if there are changes
func GetDeployment ¶
GetDeployment returns the Deployment object who is the owner of this pod.
func GetTokensName ¶
func GetTokensName(obj *dynatracev1alpha1.DynaKube) string
func SetUseImmutableImageStatus ¶
func SetUseImmutableImageStatus(instance *dynatracev1alpha1.DynaKube, fs *dynatracev1alpha1.FullStackSpec) bool
SetUseImmutableImageStatus updates the status' UseImmutableImage field to indicate whether the Operator should use immutable images or not.
Types ¶
type DockerConfig ¶
func NewDockerConfig ¶
func NewDockerConfig(secret *corev1.Secret) (*DockerConfig, error)
type Reconciliation ¶
type Reconciliation struct { Log logr.Logger Instance *dynatracev1alpha1.DynaKube Now metav1.Time // If update is true, then changes on instance will be sent to the Kubernetes API. // // Additionally, if err is not nil, then the Reconciliation will fail with its value. Unless it's a Too Many // Requests HTTP error from the Dynatrace API, on which case, a reconciliation is requeued after one minute delay. // // If err is nil, then a reconciliation is requeued after requeueAfter. Err error Updated bool RequeueAfter time.Duration }
func NewReconciliation ¶
func NewReconciliation(log logr.Logger, dk *dynatracev1alpha1.DynaKube) *Reconciliation
func (*Reconciliation) Error ¶
func (rec *Reconciliation) Error(err error) bool
func (*Reconciliation) IsOutdated ¶
Click to show internal directories.
Click to hide internal directories.