operator

package
v5.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 37 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdmissionWebhookSetup added in v5.10.1

func AdmissionWebhookSetup(c *Conf)

AdmissionWebhookSetup generate self-signed certificate and add volume mount to the operator deployment

func Cmd

func Cmd() *cobra.Command

Cmd returns a CLI command

func CmdInstall

func CmdInstall() *cobra.Command

CmdInstall returns a CLI command

func CmdRun

func CmdRun() *cobra.Command

CmdRun returns a CLI command

func CmdStatus

func CmdStatus() *cobra.Command

CmdStatus returns a CLI command

func CmdUninstall

func CmdUninstall() *cobra.Command

CmdUninstall returns a CLI command

func CmdYaml

func CmdYaml() *cobra.Command

CmdYaml returns a CLI command

func DetectClusterRole

func DetectClusterRole(c *Conf)

DetectClusterRole looks up a cluster role binding referencing our service account

func DetectRole

func DetectRole(c *Conf)

DetectRole looks up a role binding referencing our service account

func LoadAdmissionConf added in v5.10.1

func LoadAdmissionConf(c *Conf)

LoadAdmissionConf loads and initializes all the objects needed to install the admission resources

func RunInstall

func RunInstall(cmd *cobra.Command, args []string)

RunInstall runs a CLI command

func RunOperator

func RunOperator(cmd *cobra.Command, args []string)

RunOperator is the main function of the operator but it is called from a cobra.Command

func RunStatus

func RunStatus(cmd *cobra.Command, args []string)

RunStatus runs a CLI command

func RunUninstall

func RunUninstall(cmd *cobra.Command, args []string)

RunUninstall runs a CLI command

func RunUpgrade added in v5.15.0

func RunUpgrade(cmd *cobra.Command, args []string)

RunUpgrade runs a CLI command

func RunYaml

func RunYaml(cmd *cobra.Command, args []string)

RunYaml runs a CLI command

Types

type Conf

type Conf struct {
	NS                   *corev1.Namespace
	SA                   *corev1.ServiceAccount
	SAEndpoint           *corev1.ServiceAccount
	SAUI                 *corev1.ServiceAccount
	Role                 *rbacv1.Role
	RoleEndpoint         *rbacv1.Role
	RoleUI               *rbacv1.ClusterRole
	RoleBinding          *rbacv1.RoleBinding
	RoleBindingEndpoint  *rbacv1.RoleBinding
	ClusterRole          *rbacv1.ClusterRole
	ClusterRoleBinding   *rbacv1.ClusterRoleBinding
	Deployment           *appsv1.Deployment
	WebhookConfiguration *admissionv1.ValidatingWebhookConfiguration
	WebhookSecret        *corev1.Secret
	WebhookService       *corev1.Service
}

Conf struct holds all the objects needed to install the operator

func LoadOperatorConf

func LoadOperatorConf(cmd *cobra.Command) *Conf

LoadOperatorConf loads and initializes all the objects needed to install the operator

Jump to

Keyboard shortcuts

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