clients

package
v0.0.0-...-b40b7a5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 17 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

type Clients struct {
	KubeClient         *KubeClient
	Ctx                context.Context
	Dynamic            dynamic.Interface
	Operator           operatorv1alpha1.OperatorV1alpha1Interface
	KubeConfig         *rest.Config
	Scheme             *runtime.Scheme
	OLM                olmversioned.Interface
	Route              routev1.RouteV1Interface
	ProxyConfig        configV1.ConfigV1Interface
	ClusterVersion     configV1.ClusterVersionInterface
	ConsoleCLIDownload consolev1.ConsoleCLIDownloadInterface
	Tekton             pversioned.Interface
	PipelineClient     v1.PipelineInterface
	TaskClient         v1.TaskInterface
	TaskRunClient      v1.TaskRunInterface
	PipelineRunClient  v1.PipelineRunInterface
	TriggersClient     triggersclientset.Interface
	ClustertaskClient  v1beta1.ClusterTaskInterface
}

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) NewClientSet

func (c *Clients) NewClientSet(namespace string)

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