helpers

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTenantLabel

func AddTenantLabel(meta *metav1.ObjectMeta, tenant string)

AddTenantLabel adds the tenant label to an object.

func CreateOrUpdateGitRepo

func CreateOrUpdateGitRepo(obj metav1.Object, gvk schema.GroupVersionKind, template *synv1alpha1.GitRepoTemplate, client client.Client, tenantRef corev1.LocalObjectReference) error

CreateOrUpdateGitRepo will create the gitRepo object if it doesn't already exist. If the owner object itself is a tenant tenantRef can be set nil.

func GetGitRepoURLAndHostKeys

func GetGitRepoURLAndHostKeys(obj metav1.Object, client client.Client) (string, string, error)

Types

type SecretSortList

type SecretSortList corev1.SecretList

func (SecretSortList) Len

func (s SecretSortList) Len() int

func (SecretSortList) Less

func (s SecretSortList) Less(i, j int) bool

func (SecretSortList) Swap

func (s SecretSortList) Swap(i, j int)

Jump to

Keyboard shortcuts

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