bindingtarget

package
v0.2023.21 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const LinkAnnotation = "spi.appstudio.redhat.com/linked-access-token-binding" //#nosec G101 -- false positive, this is just a label

LinkAnnotation is used to associate the binding to the service account (even the referenced service accounts get annotated by this so that we can clean up their secret lists when the binding is deleted).

View Source
const ManagedByBindingLabel = "spi.appstudio.redhat.com/managed-by-binding"

ManagedByBindingLabel marks the other objects as managed by SPI. Meaning that their lifecycle is bound to the lifecycle of some SPI binding.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingNamespaceTarget

type BindingNamespaceTarget struct {
	Client  client.Client
	Binding *api.SPIAccessTokenBinding
}

BindingNamespaceTarget is the SecretDeploymentTarget that deploys to the same namespace as the SPI access token binding.

func (*BindingNamespaceTarget) GetActualSecretName

func (t *BindingNamespaceTarget) GetActualSecretName() string

GetActualSecretName implements dependents.SecretDeploymentTarget

func (*BindingNamespaceTarget) GetActualServiceAccountNames

func (t *BindingNamespaceTarget) GetActualServiceAccountNames() []string

GetActualServiceAccountNames implements dependents.SecretDeploymentTarget

func (*BindingNamespaceTarget) GetClient

func (t *BindingNamespaceTarget) GetClient() client.Client

GetClient implements dependents.SecretDeploymentTarget

func (*BindingNamespaceTarget) GetSpec

GetSpec implements dependents.SecretDeploymentTarget

func (*BindingNamespaceTarget) GetTargetNamespace

func (t *BindingNamespaceTarget) GetTargetNamespace() string

GetTargetNamespace implements dependents.SecretDeploymentTarget

func (*BindingNamespaceTarget) GetTargetObjectKey

func (t *BindingNamespaceTarget) GetTargetObjectKey() client.ObjectKey

GetTargetObjectKey implements dependents.SecretDeploymentTarget

func (*BindingNamespaceTarget) GetType

func (*BindingNamespaceTarget) GetType() string

GetType implements dependents.SecretDeploymentTarget

type BindingTargetObjectMarker

type BindingTargetObjectMarker struct {
}

func (*BindingTargetObjectMarker) GetReferencingTargets

func (m *BindingTargetObjectMarker) GetReferencingTargets(ctx context.Context, obj client.Object) ([]client.ObjectKey, error)

func (*BindingTargetObjectMarker) IsManagedBy

func (m *BindingTargetObjectMarker) IsManagedBy(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)

IsManaged implements dependents.ObjectMarker

func (*BindingTargetObjectMarker) IsReferencedBy

func (m *BindingTargetObjectMarker) IsReferencedBy(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)

IsReferenced implements dependents.ObjectMarker

func (*BindingTargetObjectMarker) ListManagedOptions

func (m *BindingTargetObjectMarker) ListManagedOptions(ctx context.Context, binding client.ObjectKey) ([]client.ListOption, error)

ListManagedOptions implements dependents.ObjectMarker

func (*BindingTargetObjectMarker) ListReferencedOptions

func (m *BindingTargetObjectMarker) ListReferencedOptions(ctx context.Context, binding client.ObjectKey) ([]client.ListOption, error)

ListReferencedOptions implements dependents.ObjectMarker

func (*BindingTargetObjectMarker) MarkManaged

func (m *BindingTargetObjectMarker) MarkManaged(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)

MarkManaged implements dependents.ObjectMarker

func (*BindingTargetObjectMarker) MarkReferenced

func (m *BindingTargetObjectMarker) MarkReferenced(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)

MarkReferenced implements dependents.ObjectMarker

func (*BindingTargetObjectMarker) UnmarkManaged

func (m *BindingTargetObjectMarker) UnmarkManaged(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)

UnmarkManaged implements dependents.ObjectMarker

func (*BindingTargetObjectMarker) UnmarkReferenced

func (m *BindingTargetObjectMarker) UnmarkReferenced(ctx context.Context, binding client.ObjectKey, obj client.Object) (bool, error)

UnmarkReferenced implements dependents.ObjectMarker

Jump to

Keyboard shortcuts

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