application

package
v0.0.0-...-68136ef Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a KubernetesApplication that will manage resources based on the supplied templates.

Types

type Option

type Option func(*options)

Option configures a Producer.

func WithAnnotations

func WithAnnotations(annotations map[string]string) Option

WithAnnotations configures the annotations of the produced application.

func WithCluster

func WithCluster(c *corev1.ObjectReference) Option

WithCluster configures the cluster of the produced application, skipping scheduling.

func WithClusterSelector

func WithClusterSelector(s *metav1.LabelSelector) Option

WithClusterSelector configures the cluster selector of the produced application. Applications will select all clusters by default.

func WithControllerReference

func WithControllerReference(c *metav1.OwnerReference) Option

WithControllerReference configures the controller reference of the produced application. The supplied owner reference must not be nil.

func WithLabels

func WithLabels(labels map[string]string) Option

WithLabels configures the labels of the produced application.

func WithNamespace

func WithNamespace(namespace string) Option

WithNamespace configures the namespace of the produced application.

func WithSecretMap

func WithSecretMap(m SecretMap) Option

WithSecretMap configures the secret dependencies of the produced applciation.

type SecretMap

type SecretMap map[corev1.ObjectReference][]string

A SecretMap associates resources with the secrets they depend upon.

func (SecretMap) Add

func (s SecretMap) Add(u *unstructured.Unstructured, secretNames ...string)

Add secret dependencies.

func (SecretMap) Get

Get secret dependencies.

type Templates

type Templates []*unstructured.Unstructured

Templates used to create and manage resources on a remote KubernetesCluster.

Jump to

Keyboard shortcuts

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