Documentation ¶
Index ¶
- Constants
- func ClusterOwnerReference(cluster *v1.NifiCluster) metav1.OwnerReference
- func ObjectMeta(name string, labels map[string]string, cluster *v1.NifiCluster) metav1.ObjectMeta
- func ObjectMetaClusterScope(name string, labels map[string]string, cluster *v1.NifiCluster) metav1.ObjectMeta
- func ObjectMetaLabels(cluster *v1.NifiCluster, l map[string]string) map[string]string
- func ObjectMetaWithAnnotations(name string, labels map[string]string, annotations map[string]string, ...) metav1.ObjectMeta
- func ObjectMetaWithGeneratedName(namePrefix string, labels map[string]string, cluster *v1.NifiCluster) metav1.ObjectMeta
- func ObjectMetaWithGeneratedNameAndAnnotations(namePrefix string, labels map[string]string, annotations map[string]string, ...) metav1.ObjectMeta
Constants ¶
const ( NodeConfigTemplate = "%s-config" NodeStorageTemplate = "%s-%d-%s-storage-" ExternalClusterSecretTemplate = "%s-basic-secret" )
Variables ¶
This section is empty.
Functions ¶
func ClusterOwnerReference ¶
func ClusterOwnerReference(cluster *v1.NifiCluster) metav1.OwnerReference
ClusterOwnerReference returns the appropriate metadata to attach to an object to make the provided NifiCluster an owner of some object.
func ObjectMeta ¶
func ObjectMeta(name string, labels map[string]string, cluster *v1.NifiCluster) metav1.ObjectMeta
ObjectMeta returns a metav1.ObjectMeta object with labels, ownerReference and name.
func ObjectMetaClusterScope ¶
func ObjectMetaClusterScope(name string, labels map[string]string, cluster *v1.NifiCluster) metav1.ObjectMeta
ObjectMetaClusterScope returns a metav1.ObjectMeta object with labels, ownerReference, name and annotations.
func ObjectMetaLabels ¶
func ObjectMetaWithAnnotations ¶
func ObjectMetaWithAnnotations(name string, labels map[string]string, annotations map[string]string, cluster *v1.NifiCluster) metav1.ObjectMeta
ObjectMetaWithAnnotations returns a metav1.ObjectMeta object with labels, ownerReference, name and annotations.
func ObjectMetaWithGeneratedName ¶
func ObjectMetaWithGeneratedName(namePrefix string, labels map[string]string, cluster *v1.NifiCluster) metav1.ObjectMeta
ObjectMetaWithGeneratedName returns a metav1.ObjectMeta object with labels, ownerReference and generatedname.
func ObjectMetaWithGeneratedNameAndAnnotations ¶
func ObjectMetaWithGeneratedNameAndAnnotations(namePrefix string, labels map[string]string, annotations map[string]string, cluster *v1.NifiCluster) metav1.ObjectMeta
ObjectMetaWithGeneratedNameAndAnnotations returns a metav1.ObjectMeta object with labels, ownerReference, generatedname and annotations.
Types ¶
This section is empty.