double_optin

package
v0.41.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL