Documentation ¶
Index ¶
- Variables
- func Component(name, namespace string, opt ...ComponentOption) *v1alpha2.Component
- func ComponentWith(component *v1alpha2.Component, opt ...ComponentOption) *v1alpha2.Component
- type ComponentOption
- func WithComponentConfiguration(configMap *corev1.ConfigMap) ComponentOption
- func WithComponentPodSpec(podSpec *corev1.PodSpec) ComponentOption
- func WithComponentPortMaping(name string, protocol v1alpha2.Protocol, port int32, targetContainer string, ...) ComponentOption
- func WithComponentSecret(secret *corev1.Secret) ComponentOption
- func WithComponentType(cType v1alpha2.ComponentType) ComponentOption
- func WithComponentVolumeClaim(shared bool, pvc *corev1.PersistentVolumeClaim) ComponentOption
Constants ¶
This section is empty.
Variables ¶
View Source
var OwnerReferenceComponentFunc = func(name string) metav1.OwnerReference { return metav1.OwnerReference{ APIVersion: v1alpha2.SchemeGroupVersion.String(), Kind: "Component", Name: name, Controller: ptr.Bool(true), BlockOwnerDeletion: ptr.Bool(true), } }
Functions ¶
func ComponentWith ¶
func ComponentWith(component *v1alpha2.Component, opt ...ComponentOption) *v1alpha2.Component
Types ¶
type ComponentOption ¶
func WithComponentConfiguration ¶
func WithComponentConfiguration(configMap *corev1.ConfigMap) ComponentOption
func WithComponentPodSpec ¶
func WithComponentPodSpec(podSpec *corev1.PodSpec) ComponentOption
func WithComponentPortMaping ¶
func WithComponentSecret ¶
func WithComponentSecret(secret *corev1.Secret) ComponentOption
func WithComponentType ¶
func WithComponentType(cType v1alpha2.ComponentType) ComponentOption
func WithComponentVolumeClaim ¶
func WithComponentVolumeClaim(shared bool, pvc *corev1.PersistentVolumeClaim) ComponentOption
Click to show internal directories.
Click to hide internal directories.