v1alpha2

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 Component

func Component(name, namespace string, opt ...ComponentOption) *v1alpha2.Component

func ComponentWith

func ComponentWith(component *v1alpha2.Component, opt ...ComponentOption) *v1alpha2.Component

Types

type ComponentOption

type ComponentOption func(*v1alpha2.Component)

func WithComponentConfiguration

func WithComponentConfiguration(configMap *corev1.ConfigMap) ComponentOption

func WithComponentPodSpec

func WithComponentPodSpec(podSpec *corev1.PodSpec) ComponentOption

func WithComponentPortMaping

func WithComponentPortMaping(name string, protocol v1alpha2.Protocol, port int32, targetContainer string, targetPort int32) ComponentOption

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

Jump to

Keyboard shortcuts

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