v1alpha3

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=servicebinding.io

Index

Constants

View Source
const (
	GroupName              = "servicebinding.io"
	ServiceBindingLabelKey = GroupName + "/servicebinding"
)
View Source
const (
	ServiceBindingConditionReady            = "Ready"
	ServiceBindingConditionServiceAvailable = "ServiceAvailable"
	ServiceBindingConditionProjectionReady  = "ProjectionReady"
	InitializeConditionReason               = "Unknown"
)
View Source
const (
	ServiceBindingAnnotationKey = GroupName + "/service-binding"
)

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: "v1alpha3"}
)

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 ServiceBinding

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

	Spec   ServiceBindingSpec   `json:"spec,omitempty"`
	Status ServiceBindingStatus `json:"status,omitempty"`
}

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

func (*ServiceBinding) DeepCopy

func (in *ServiceBinding) DeepCopy() *ServiceBinding

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

func (*ServiceBinding) DeepCopyInto

func (in *ServiceBinding) DeepCopyInto(out *ServiceBinding)

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

func (*ServiceBinding) DeepCopyObject

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

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

func (*ServiceBinding) GetConditionSet

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

required for knative, not used

func (*ServiceBinding) GetGroupVersionKind

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

func (*ServiceBinding) GetStatus

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

required for knative, not used

func (*ServiceBinding) SetDefaults

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

func (*ServiceBinding) Validate

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

type ServiceBindingList

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

func (*ServiceBindingList) DeepCopy

func (in *ServiceBindingList) DeepCopy() *ServiceBindingList

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

func (*ServiceBindingList) DeepCopyInto

func (in *ServiceBindingList) DeepCopyInto(out *ServiceBindingList)

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

func (*ServiceBindingList) DeepCopyObject

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

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

type ServiceBindingSpec

type ServiceBindingSpec struct {
	// Name of the service binding on disk, defaults to this resource's name
	Name string `json:"name,omitempty"`
	// 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"`

	// Workload resource to inject the binding into
	Workload *WorkloadReference `json:"workload,omitempty"`
	// Service referencing the binding secret
	Service *tracker.Reference `json:"service,omitempty"`

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

func (*ServiceBindingSpec) DeepCopy

func (in *ServiceBindingSpec) DeepCopy() *ServiceBindingSpec

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

func (*ServiceBindingSpec) DeepCopyInto

func (in *ServiceBindingSpec) DeepCopyInto(out *ServiceBindingSpec)

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

type ServiceBindingStatus

type ServiceBindingStatus struct {
	// ObservedGeneration is the 'Generation' of the ServiceBinding that
	// was last processed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Conditions the latest available observations of a ServiceBinding's current state.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// Binding is a reference to the Secret being bound.
	// +optional
	Binding *corev1.LocalObjectReference `json:"binding,omitempty"`
}

func (*ServiceBindingStatus) DeepCopy

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

func (*ServiceBindingStatus) DeepCopyInto

func (in *ServiceBindingStatus) DeepCopyInto(out *ServiceBindingStatus)

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

func (*ServiceBindingStatus) InitializeConditions

func (bs *ServiceBindingStatus) InitializeConditions(now metav1.Time)

func (*ServiceBindingStatus) MarkServiceAvailable

func (bs *ServiceBindingStatus) MarkServiceAvailable(now metav1.Time)

func (*ServiceBindingStatus) MarkServiceUnavailable

func (bs *ServiceBindingStatus) MarkServiceUnavailable(reason string, message string, now metav1.Time)

func (*ServiceBindingStatus) PropagateServiceBindingProjectionStatus

func (bs *ServiceBindingStatus) PropagateServiceBindingProjectionStatus(bp *labsinternalv1alpha1.ServiceBindingProjection, now metav1.Time)

Jump to

Keyboard shortcuts

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