Documentation ¶
Index ¶
Constants ¶
View Source
const ( UpdatedViaDynakubeAnnotation = "dynatrace.com/updated-via-operator" ErrorConflictingNamespace = "namespace matches two or more DynaKubes which is unsupported. " + "refine the labels on your namespace metadata or DynaKube/CodeModules specification" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConflictChecker ¶
type ConflictChecker struct {
// contains filtered or unexported fields
}
type DynakubeMapper ¶
type DynakubeMapper struct {
// contains filtered or unexported fields
}
DynakubeMapper manages the mapping creation from the dynakube's side
func NewDynakubeMapper ¶
func NewDynakubeMapper(ctx context.Context, clt client.Client, apiReader client.Reader, operatorNs string, dk *dynatracev1beta2.DynaKube) DynakubeMapper
func (DynakubeMapper) MapFromDynakube ¶
func (dm DynakubeMapper) MapFromDynakube() error
MapFromDynakube checks all the namespaces to all the dynakubes updates the labels on the namespaces if necessary, finds conflicting dynakubes (2 dynakube with codeModules on the same namespace)
func (DynakubeMapper) MatchingNamespaces ¶
func (dm DynakubeMapper) MatchingNamespaces() ([]*corev1.Namespace, error)
func (DynakubeMapper) UnmapFromDynaKube ¶
func (dm DynakubeMapper) UnmapFromDynaKube(namespaces []corev1.Namespace) error
type NamespaceMapper ¶
type NamespaceMapper struct {
// contains filtered or unexported fields
}
NamespaceMapper manages the mapping creation from the namespace's side
func NewNamespaceMapper ¶
func (NamespaceMapper) MapFromNamespace ¶
func (nm NamespaceMapper) MapFromNamespace(ctx context.Context) (bool, error)
MapFromNamespace adds the labels to the targetNs if there is a matching Dynakube
Click to show internal directories.
Click to hide internal directories.