operator

package
v5.0.0-...-5e9b562 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 23 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

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 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
	SAEndpoint                 *corev1.ServiceAccount
	Role                       *rbacv1.Role
	RoleEndpoint               *rbacv1.Role
	RoleBinding                *rbacv1.RoleBinding
	RoleBindingEndpoint        *rbacv1.RoleBinding
	ClusterRole                *rbacv1.ClusterRole
	ClusterRoleBinding         *rbacv1.ClusterRoleBinding
	SecurityContextConstraints *secv1.SecurityContextConstraints
	SCCEndpoint                *secv1.SecurityContextConstraints
	Deployment                 *appsv1.Deployment
	IsForODF                   bool
}

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