installer

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DryRun

func DryRun(config FluxOperatorConfig)

Just print the YAML, don't create it in the API.

func GetClusterRole

func GetClusterRole(config FluxOperatorConfig) string

Return the cluster role name to use, an empty string if none should be used.

func GetFluxOperatorImage

func GetFluxOperatorImage(config FluxOperatorConfig) string

Return the flux operator image name.

func GetName

func GetName(config FluxOperatorConfig) string

Return the name that should be used for flux-operator resources.

func GetNamespace

func GetNamespace(config FluxOperatorConfig) string

Return the flux-operator namespace.

func GetServiceAccountName

func GetServiceAccountName(config FluxOperatorConfig) string

Return the service account name to use, empty string if none should be used.

func NewClusterRole

func NewClusterRole(config FluxOperatorConfig) *rbacv1.ClusterRole

Create a cluster role

func NewClusterRoleBinding

func NewClusterRoleBinding(config FluxOperatorConfig) *rbacv1.ClusterRoleBinding

Create the cluster role binding

func NewFluxCRD

Create Flux CRD

func NewFluxHelmReleaseCRD

Create a FluxHelmRelease CRD

func NewFluxOperator

func NewFluxOperator(config FluxOperatorConfig) []runtime.Object

Create a flux-operator and all dependent resources.

func NewFluxOperatorDeployment

func NewFluxOperatorDeployment(config FluxOperatorConfig) *v1beta1.Deployment

Create a flux-operator deployment

func NewServiceAccount

func NewServiceAccount(config FluxOperatorConfig) *corev1.ServiceAccount

Create the service account

Types

type FluxOperatorConfig

type FluxOperatorConfig struct {
	// The name to use for flux-operator resources
	Name string
	// The namespace to deploy flux-operator to.
	Namespace string
	// Whether or not flux-operator should be namespace or cluster scoped.
	Cluster bool
	// The service account to assign to flux-operator, otherwise one is created.
	ServiceAccount string
	// A cluster role to assign to flux-operator (default: a role is created with
	// full privileges)
	ClusterRole string
	// Do not change any RBAC settings when creating flux-operator.
	DisableRBAC bool
	// Do not allow flux-operator to create any cluster roles.
	DisableClusterRoles bool
	// Do not allow flux-operator to create any roles.
	DisableRoles bool
	// The default git secret to use for fluxes.
	GitSecret string
	// The flux operator image name
	FluxOperatorImage string
	// The flux operator image version
	FluxOperatorVersion string
	// The flux image name
	FluxImage string
	// The flux image version
	FluxVersion string
	// The helm-operator image name
	HelmOperatorImage string
	// The helm-operator image version
	HelmOperatorVersion string
	// The memcached image name
	MemcachedImage string
	// The memcached image version
	MemcachedVersion string
	// The tiller image name
	TillerImage string
	// The flux image version
	TillerVersion string
	// If set, restricts flux-operator to look for new Fluxes only in the specified
	// namespace.
	FluxNamespace string
}

Represents the configuration for a flux-operator instance.

Jump to

Keyboard shortcuts

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