operator

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 added in v2.0.8

func DetectClusterRole(c *Conf)

DetectClusterRole looks up a cluster role binding referencing our service account

func DetectRole added in v2.0.8

func DetectRole(c *Conf)

DetectRole looks up a role binding referencing our service account

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 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
	Role               *rbacv1.Role
	RoleBinding        *rbacv1.RoleBinding
	ClusterRole        *rbacv1.ClusterRole
	ClusterRoleBinding *rbacv1.ClusterRoleBinding
	Deployment         *appsv1.Deployment
}

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