Documentation
¶
Index ¶
- func CheckIfDoubleOptInPossible(clientMeta metav1.ObjectMeta, clientNSMeta metav1.ObjectMeta, ...) (bool, error)
- func IsInAllowedNamespaces(clientNSMeta metav1.ObjectMeta, dbNSMeta metav1.ObjectMeta, ...) (bool, error)
- func IsMatchByLabels(clientMeta metav1.ObjectMeta, consumers *dbapi.AllowedConsumers) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfDoubleOptInPossible ¶
func CheckIfDoubleOptInPossible(clientMeta metav1.ObjectMeta, clientNSMeta metav1.ObjectMeta, dbNSMeta metav1.ObjectMeta, consumers *dbapi.AllowedConsumers) (bool, error)
CheckIfDoubleOptInPossible is the intended function to be called from operator It checks if the namespace, where SchemaDatabase or Archiver is applied, is allowed. It also checks the labels of schemaDatabase OR archiver, to decide if that is allowed or not.
Here, clientMeta is the ObjectMeta of SchemaDatabase or Archiver & clientNSMeta is the ObjectMeta of the namespace where they belong.
func IsInAllowedNamespaces ¶
func IsInAllowedNamespaces(clientNSMeta metav1.ObjectMeta, dbNSMeta metav1.ObjectMeta, consumers *dbapi.AllowedConsumers) (bool, error)
func IsMatchByLabels ¶
func IsMatchByLabels(clientMeta metav1.ObjectMeta, consumers *dbapi.AllowedConsumers) (bool, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.