Documentation ¶
Index ¶
- Constants
- Variables
- func GVRMetaNamespaceKeyFunc(gvr schema.GroupVersionResource, obj interface{}) (string, error)
- func GVRMetaNamespaceKeyer(gvr schema.GroupVersionResource, key string) string
- func GetClusterKeyFromMeta(in interface{}) ([]string, error)
- func LabelsForComponent(owner, component string) map[string]string
- func MustParseSelector(selector string) labels.Selector
- func SelectorForComponent(owner, component string) labels.Selector
- func SplitGVRMetaNamespaceKey(key string) (gvr *schema.GroupVersionResource, namespace, name string, err error)
Constants ¶
View Source
const ( OwningClusterIndex = "owning-cluster" OperatorManagedLabelKey = "authzed.com/managed-by" OperatorManagedLabelValue = "operator" OwnerLabelKey = "authzed.com/cluster" OwnerAnnotationKeyPrefix = "authzed.com.cluster-owner/" ComponentLabelKey = "authzed.com/cluster-component" ComponentSpiceDBLabelValue = "spicedb" ComponentMigrationJobLabelValue = "migration-job" ComponentServiceAccountLabel = "spicedb-serviceaccount" ComponentRoleLabel = "spicedb-role" ComponentServiceLabel = "spicedb-service" ComponentRoleBindingLabel = "spicedb-rolebinding" SpiceDBMigrationRequirementsKey = "authzed.com/spicedb-migration" SpiceDBTargetMigrationKey = "authzed.com/spicedb-target-migration" SpiceDBSecretRequirementsKey = "authzed.com/spicedb-secret" // nolint: gosec SpiceDBConfigKey = "authzed.com/spicedb-configuration" FieldManager = "spicedb-operator" )
View Source
const PausedControllerSelectorKey = "authzed.com/controller-paused"
Variables ¶
View Source
var ( ApplyForceOwned = metav1.ApplyOptions{FieldManager: FieldManager, Force: true} PatchForceOwned = metav1.PatchOptions{FieldManager: FieldManager, Force: ptr.To(true)} ManagedDependentSelector = MustParseSelector(fmt.Sprintf("%s=%s", OperatorManagedLabelKey, OperatorManagedLabelValue)) )
View Source
var NotPausedSelector = MustParseSelector("!" + PausedControllerSelectorKey)
Functions ¶
func GVRMetaNamespaceKeyFunc ¶
func GVRMetaNamespaceKeyFunc(gvr schema.GroupVersionResource, obj interface{}) (string, error)
func GVRMetaNamespaceKeyer ¶
func GVRMetaNamespaceKeyer(gvr schema.GroupVersionResource, key string) string
func GetClusterKeyFromMeta ¶ added in v0.3.0
func LabelsForComponent ¶
func MustParseSelector ¶
func SelectorForComponent ¶
func SplitGVRMetaNamespaceKey ¶
func SplitGVRMetaNamespaceKey(key string) (gvr *schema.GroupVersionResource, namespace, name string, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.