controllers

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package controllers provides Iter8 controller for reconciling Iter8 routemap resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(stopCh <-chan struct{}, client k8sclient.Interface) error

Start starts all Iter8 controllers if this pod is the leader

Types

type Condition

type Condition struct {
	// Name of the condition
	Name string `json:"name"`
	// Status of the condition
	Status string `json:"status"`
}

Condition is the condition within resource status

type Config

type Config struct {
	// ResourceTypes map from shortnames of Kubernetes API resources to their GVRs with conditions
	ResourceTypes map[string]GroupVersionResourceConditions `json:"resourceTypes,omitempty"`
	// DefaultResync period for controller watch functions
	DefaultResync string `json:"defaultResync,omitempty"`
	// ClusterScoped is true if Iter8 controller is cluster-scoped
	ClusterScoped bool `json:"clusterScoped,omitempty"`
}

Config defines the configuration of the controllers

type GroupVersionResourceConditions

type GroupVersionResourceConditions struct {
	schema.GroupVersionResource
	Conditions []Condition `json:"conditions,omitempty"`
}

GroupVersionResourceConditions is a Kubernetes resource type along with a list of conditions

Directories

Path Synopsis
Package k8sclient provides the Kubernetes client for the controllers package
Package k8sclient provides the Kubernetes client for the controllers package

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳