v1alpha1

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=internal.bindings.labs.vmware.com

Index

Constants

View Source
const (
	ServiceBindingProjectionConditionReady             = apis.ConditionReady
	ServiceBindingProjectionConditionWorkloadAvailable = "WorkloadAvailable"

	ServiceBindingRootEnv = "SERVICE_BINDING_ROOT"
)
View Source
const (
	GroupName = "internal.bindings.labs.vmware.com"
)
View Source
const (
	ServiceBindingProjectionAnnotationKey = GroupName + "/projection"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type EnvVar

type EnvVar struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

func (*EnvVar) DeepCopy

func (in *EnvVar) DeepCopy() *EnvVar

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar.

func (*EnvVar) DeepCopyInto

func (in *EnvVar) DeepCopyInto(out *EnvVar)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (EnvVar) Validate

func (e EnvVar) Validate(ctx context.Context) (errs *apis.FieldError)

type ServiceBindingProjection

type ServiceBindingProjection struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServiceBindingProjectionSpec   `json:"spec,omitempty"`
	Status ServiceBindingProjectionStatus `json:"status,omitempty"`
}

+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ServiceBindingProjection) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBindingProjection.

func (*ServiceBindingProjection) DeepCopyInto

func (in *ServiceBindingProjection) DeepCopyInto(out *ServiceBindingProjection)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceBindingProjection) DeepCopyObject

func (in *ServiceBindingProjection) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ServiceBindingProjection) Do

func (*ServiceBindingProjection) GetBindingStatus

func (b *ServiceBindingProjection) GetBindingStatus() duck.BindableStatus

func (*ServiceBindingProjection) GetConditionSet

func (b *ServiceBindingProjection) GetConditionSet() apis.ConditionSet

func (*ServiceBindingProjection) GetGroupVersionKind

func (b *ServiceBindingProjection) GetGroupVersionKind() schema.GroupVersionKind

func (*ServiceBindingProjection) GetStatus

func (b *ServiceBindingProjection) GetStatus() *duckv1.Status

func (*ServiceBindingProjection) GetSubject

func (b *ServiceBindingProjection) GetSubject() tracker.Reference

func (*ServiceBindingProjection) SetDefaults

func (b *ServiceBindingProjection) SetDefaults(context.Context)

func (*ServiceBindingProjection) Undo

func (*ServiceBindingProjection) Validate

func (b *ServiceBindingProjection) Validate(ctx context.Context) (errs *apis.FieldError)

type ServiceBindingProjectionList

type ServiceBindingProjectionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServiceBindingProjection `json:"items"`
}

func (*ServiceBindingProjectionList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBindingProjectionList.

func (*ServiceBindingProjectionList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceBindingProjectionList) DeepCopyObject

func (in *ServiceBindingProjectionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceBindingProjectionSpec

type ServiceBindingProjectionSpec struct {
	// Name of the service binding on disk, defaults to this resource's name
	Name string `json:"name"`
	// Type of the provisioned service. The value is exposed directly as the
	// `type` in the mounted binding
	// +optional
	Type string `json:"type,omitempty"`
	// Provider of the provisioned service. The value is exposed directly as the
	// `provider` in the mounted binding
	// +optional
	Provider string `json:"provider,omitempty"`

	// Binding reference to the service binding's projected secret
	Binding corev1.LocalObjectReference `json:"binding"`

	// Workload resource to inject the binding into
	Workload WorkloadReference `json:"workload"`

	// Env projects keys from the binding secret into the workload as
	// environment variables
	Env []EnvVar `json:"env,omitempty"`
}

func (*ServiceBindingProjectionSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBindingProjectionSpec.

func (*ServiceBindingProjectionSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceBindingProjectionStatus

type ServiceBindingProjectionStatus struct {
	duckv1.Status `json:",inline"`
}

func (*ServiceBindingProjectionStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBindingProjectionStatus.

func (*ServiceBindingProjectionStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceBindingProjectionStatus) InitializeConditions

func (bs *ServiceBindingProjectionStatus) InitializeConditions()

func (*ServiceBindingProjectionStatus) MarkBindingAvailable

func (bs *ServiceBindingProjectionStatus) MarkBindingAvailable()

func (*ServiceBindingProjectionStatus) MarkBindingUnavailable

func (bs *ServiceBindingProjectionStatus) MarkBindingUnavailable(reason string, message string)

func (*ServiceBindingProjectionStatus) SetObservedGeneration

func (bs *ServiceBindingProjectionStatus) SetObservedGeneration(gen int64)

type WorkloadReference

type WorkloadReference struct {
	tracker.Reference

	// Containers to target within the workload. If not set, all containers
	// will be injected.
	Containers []string `json:"containers,omitempty"`
}

func (*WorkloadReference) DeepCopy

func (in *WorkloadReference) DeepCopy() *WorkloadReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadReference.

func (*WorkloadReference) DeepCopyInto

func (in *WorkloadReference) DeepCopyInto(out *WorkloadReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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