clients

package
v0.0.0-...-bf8a5f7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 19 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClientConfig

func BuildClientConfig(kubeConfigPath string, clusterName string) (*rest.Config, error)

BuildClientConfig builds the client config specified by the config path and the cluster name

Types

type Clients

Clients holds instances of interfaces for making requests to Tekton Pipelines.

func NewClients

func NewClients(configPath string, clusterName, namespace string) (*Clients, error)

NewClients instantiates and returns several clientsets required for making request to the TektonPipeline cluster specified by the combination of clusterName and configPath.

func (*Clients) ManualApprovalGate

func (c *Clients) ManualApprovalGate() operatorv1alpha1.ManualApprovalGateInterface

func (*Clients) NewClientSet

func (c *Clients) NewClientSet(namespace string)

func (*Clients) PipelinesAsCode

func (*Clients) TektonAddon

func (*Clients) TektonChains

func (c *Clients) TektonChains() operatorv1alpha1.TektonChainInterface

func (*Clients) TektonConfig

func (*Clients) TektonDashboard

func (c *Clients) TektonDashboard() operatorv1alpha1.TektonDashboardInterface

func (*Clients) TektonHub

func (*Clients) TektonPipeline

func (c *Clients) TektonPipeline() operatorv1alpha1.TektonPipelineInterface

func (*Clients) TektonTrigger

func (c *Clients) TektonTrigger() operatorv1alpha1.TektonTriggerInterface

type KubeClient

type KubeClient struct {
	Kube *kubernetes.Clientset
}

KubeClient holds instances of interfaces for making requests to kubernetes client.

func NewKubeClient

func NewKubeClient(configPath string, clusterName string) (*KubeClient, *rest.Config, error)

NewKubeClient instantiates and returns several clientsets required for making request to the kube client specified by the combination of clusterName and configPath. Clients can make requests within namespace.

Jump to

Keyboard shortcuts

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