Back to godoc.org

Package resources

v0.2.1
Latest Go to latest

The latest major version is .

Published: Jan 29, 2020 | License: Apache-2.0 | Module: github.com/chetan-rns/triggers

Index

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier