Documentation
¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the spec v1alpha2 API group +kubebuilder:object:generate=true +groupName=service.binding
Index ¶
- Variables
- type EnvMapping
- type ServiceBinding
- func (sb *ServiceBinding) AsOwnerReference() metav1.OwnerReference
- func (in *ServiceBinding) DeepCopy() *ServiceBinding
- func (in *ServiceBinding) DeepCopyInto(out *ServiceBinding)
- func (in *ServiceBinding) DeepCopyObject() runtime.Object
- func (sb *ServiceBinding) GetSpec() interface{}
- func (sb *ServiceBinding) HasDeletionTimestamp() bool
- func (r *ServiceBinding) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *ServiceBinding) StatusConditions() []metav1.Condition
- func (r *ServiceBinding) ValidateCreate() error
- func (r *ServiceBinding) ValidateDelete() error
- func (sb *ServiceBinding) ValidateUpdate(old runtime.Object) error
- type ServiceBindingApplicationReference
- func (in *ServiceBindingApplicationReference) DeepCopy() *ServiceBindingApplicationReference
- func (in *ServiceBindingApplicationReference) DeepCopyInto(out *ServiceBindingApplicationReference)
- func (ref *ServiceBindingApplicationReference) GroupVersionKind() (*schema.GroupVersionKind, error)
- func (ref *ServiceBindingApplicationReference) GroupVersionResource() (*schema.GroupVersionResource, error)
- type ServiceBindingList
- type ServiceBindingSecretReference
- type ServiceBindingServiceReference
- func (in *ServiceBindingServiceReference) DeepCopy() *ServiceBindingServiceReference
- func (in *ServiceBindingServiceReference) DeepCopyInto(out *ServiceBindingServiceReference)
- func (ref *ServiceBindingServiceReference) GroupVersionKind() (*schema.GroupVersionKind, error)
- func (ref *ServiceBindingServiceReference) GroupVersionResource() (*schema.GroupVersionResource, error)
- type ServiceBindingSpec
- type ServiceBindingStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "service.binding", Version: "v1alpha2"} GroupVersionResource = GroupVersion.WithResource("servicebindings") GroupVersionKind = GroupVersion.WithKind("ServiceBinding") // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type EnvMapping ¶
type EnvMapping struct {
// Name is the name of the environment variable
Name string `json:"name"`
// Key is the key in the Secret that will be exposed
Key string `json:"key"`
}
EnvMapping defines a mapping from the value of a Secret entry to an environment variable
func (*EnvMapping) DeepCopy ¶
func (in *EnvMapping) DeepCopy() *EnvMapping
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvMapping.
func (*EnvMapping) DeepCopyInto ¶
func (in *EnvMapping) DeepCopyInto(out *EnvMapping)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceBinding ¶
type ServiceBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceBindingSpec `json:"spec,omitempty"`
Status ServiceBindingStatus `json:"status,omitempty"`
}
+operator-sdk:gen-csv:customresourcedefinitions.displayName="Service Binding (spec API)" +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status` +kubebuilder:printcolumn:name="Reason",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].reason` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` ServiceBinding is the Schema for the servicebindings API
func (*ServiceBinding) AsOwnerReference ¶
func (sb *ServiceBinding) AsOwnerReference() metav1.OwnerReference
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) GetSpec ¶ added in v0.9.1
func (sb *ServiceBinding) GetSpec() interface{}
func (*ServiceBinding) HasDeletionTimestamp ¶
func (sb *ServiceBinding) HasDeletionTimestamp() bool
func (*ServiceBinding) SetupWebhookWithManager ¶
func (r *ServiceBinding) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ServiceBinding) StatusConditions ¶
func (r *ServiceBinding) StatusConditions() []metav1.Condition
func (*ServiceBinding) ValidateCreate ¶
func (r *ServiceBinding) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ServiceBinding) ValidateDelete ¶
func (r *ServiceBinding) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ServiceBinding) ValidateUpdate ¶
func (sb *ServiceBinding) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type ServiceBindingApplicationReference ¶
type ServiceBindingApplicationReference struct {
// API version of the referent.
APIVersion string `json:"apiVersion"`
// Kind of the referent.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind string `json:"kind"`
// Name of the referent.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Name string `json:"name,omitempty"`
// Selector is a query that selects the application or applications to bind the service to
Selector metav1.LabelSelector `json:"selector,omitempty"`
// Containers describes which containers in a Pod should be bound to
Containers []string `json:"containers,omitempty"`
}
ServiceBindingApplicationReference defines a subset of corev1.ObjectReference with extensions
func (*ServiceBindingApplicationReference) DeepCopy ¶
func (in *ServiceBindingApplicationReference) DeepCopy() *ServiceBindingApplicationReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBindingApplicationReference.
func (*ServiceBindingApplicationReference) DeepCopyInto ¶
func (in *ServiceBindingApplicationReference) DeepCopyInto(out *ServiceBindingApplicationReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceBindingApplicationReference) GroupVersionKind ¶
func (ref *ServiceBindingApplicationReference) GroupVersionKind() (*schema.GroupVersionKind, error)
func (*ServiceBindingApplicationReference) GroupVersionResource ¶
func (ref *ServiceBindingApplicationReference) GroupVersionResource() (*schema.GroupVersionResource, error)
type ServiceBindingList ¶
type ServiceBindingList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServiceBinding `json:"items"`
}
ServiceBindingList contains a list of ServiceBinding
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 ServiceBindingSecretReference ¶
type ServiceBindingSecretReference struct {
// Name of the referent secret.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Name string `json:"name"`
}
ServiceBindingSecretReference defines a mirror of corev1.LocalObjectReference
func (*ServiceBindingSecretReference) DeepCopy ¶
func (in *ServiceBindingSecretReference) DeepCopy() *ServiceBindingSecretReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBindingSecretReference.
func (*ServiceBindingSecretReference) DeepCopyInto ¶
func (in *ServiceBindingSecretReference) DeepCopyInto(out *ServiceBindingSecretReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceBindingServiceReference ¶
type ServiceBindingServiceReference struct {
// API version of the referent.
APIVersion string `json:"apiVersion"`
// Kind of the referent.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind string `json:"kind"`
// Name of the referent.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Name string `json:"name"`
}
ServiceBindingServiceReference defines a subset of corev1.ObjectReference
func (*ServiceBindingServiceReference) DeepCopy ¶
func (in *ServiceBindingServiceReference) DeepCopy() *ServiceBindingServiceReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBindingServiceReference.
func (*ServiceBindingServiceReference) DeepCopyInto ¶
func (in *ServiceBindingServiceReference) DeepCopyInto(out *ServiceBindingServiceReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceBindingServiceReference) GroupVersionKind ¶
func (ref *ServiceBindingServiceReference) GroupVersionKind() (*schema.GroupVersionKind, error)
func (*ServiceBindingServiceReference) GroupVersionResource ¶
func (ref *ServiceBindingServiceReference) GroupVersionResource() (*schema.GroupVersionResource, error)
type ServiceBindingSpec ¶
type ServiceBindingSpec struct {
// Name is the name of the service as projected into the application container. Defaults to .metadata.name.
// +kubebuilder:validation:Pattern=`^[a-z0-9\-\.]*$`
// +kubebuilder:validation:MaxLength=253
Name string `json:"name,omitempty"`
// Type is the type of the service as projected into the application container
Type string `json:"type,omitempty"`
// Provider is the provider of the service as projected into the application container
Provider string `json:"provider,omitempty"`
// Application is a reference to an object
Application ServiceBindingApplicationReference `json:"application"`
// Service is a reference to an object that fulfills the ProvisionedService duck type
Service ServiceBindingServiceReference `json:"service"`
// Env is the collection of mappings from Secret entries to environment variables
Env []EnvMapping `json:"env,omitempty"`
}
ServiceBindingSpec defines the desired state of ServiceBinding
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.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Conditions are the conditions of this ServiceBinding
Conditions []metav1.Condition `json:"conditions,omitempty"`
// Binding exposes the projected secret for this ServiceBinding
Binding *ServiceBindingSecretReference `json:"binding,omitempty"`
}
ServiceBindingStatus defines the observed state of ServiceBinding
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.