Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=servicebinding.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type EnvVar
- type ServiceBinding
- func (in *ServiceBinding) DeepCopy() *ServiceBinding
- func (in *ServiceBinding) DeepCopyInto(out *ServiceBinding)
- func (in *ServiceBinding) DeepCopyObject() runtime.Object
- func (b *ServiceBinding) GetConditionSet() apis.ConditionSet
- func (b *ServiceBinding) GetGroupVersionKind() schema.GroupVersionKind
- func (b *ServiceBinding) GetStatus() *duckv1.Status
- func (b *ServiceBinding) SetDefaults(context.Context)
- func (b *ServiceBinding) Validate(ctx context.Context) (errs *apis.FieldError)
- type ServiceBindingList
- type ServiceBindingSpec
- type ServiceBindingStatus
- func (in *ServiceBindingStatus) DeepCopy() *ServiceBindingStatus
- func (in *ServiceBindingStatus) DeepCopyInto(out *ServiceBindingStatus)
- func (bs *ServiceBindingStatus) InitializeConditions(now metav1.Time)
- func (bs *ServiceBindingStatus) MarkServiceAvailable(now metav1.Time)
- func (bs *ServiceBindingStatus) MarkServiceUnavailable(reason string, message string, now metav1.Time)
- func (bs *ServiceBindingStatus) PropagateServiceBindingProjectionStatus(bp *labsinternalv1alpha1.ServiceBindingProjection, now metav1.Time)
- type WorkloadReference
Constants ¶
const ( GroupName = "servicebinding.io" ServiceBindingLabelKey = GroupName + "/servicebinding" )
const ( ServiceBindingConditionReady = "Ready" ServiceBindingConditionServiceAvailable = "ServiceAvailable" ServiceBindingConditionProjectionReady = "ProjectionReady" InitializeConditionReason = "Unknown" )
const (
ServiceBindingAnnotationKey = GroupName + "/service-binding"
)
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha3"} )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type EnvVar ¶
type EnvVar = labsinternalv1alpha1.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 ¶
func (in *ServiceBindingStatus) DeepCopy() *ServiceBindingStatus
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)
type WorkloadReference ¶
type WorkloadReference = labsinternalv1alpha1.WorkloadReference