resources

package
v0.2.1-preview Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabels

func AddLabels(us *unstructured.Unstructured, labelsToAdd map[string]string) *unstructured.Unstructured

AddLabels adds autogenerated Tekton labels to created resources.

func Create

func Create(logger *zap.SugaredLogger, rt json.RawMessage, triggerName, eventID, elName, elNamespace string, c discoveryclient.ServerResourcesInterface, dc dynamic.Interface) error

Create uses the kubeClient to create the resource defined in the TriggerResourceTemplate and returns any errors with this process

func FindAPIResource

func FindAPIResource(apiVersion, kind string, c discoveryclient.ServerResourcesInterface) (*metav1.APIResource, error)

FindAPIResource returns the APIResource definition using the discovery client c.

Types

This section is empty.

Jump to

Keyboard shortcuts

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