Documentation ¶
Index ¶
- func DryRun(config FluxOperatorConfig)
- func GetClusterRole(config FluxOperatorConfig) string
- func GetFluxOperatorImage(config FluxOperatorConfig) string
- func GetName(config FluxOperatorConfig) string
- func GetNamespace(config FluxOperatorConfig) string
- func GetServiceAccountName(config FluxOperatorConfig) string
- func NewClusterRole(config FluxOperatorConfig) *rbacv1.ClusterRole
- func NewClusterRoleBinding(config FluxOperatorConfig) *rbacv1.ClusterRoleBinding
- func NewFluxCRD(config FluxOperatorConfig) *extensions.CustomResourceDefinition
- func NewFluxHelmReleaseCRD(FluxOperatorConfig) *extensions.CustomResourceDefinition
- func NewFluxOperator(config FluxOperatorConfig) []runtime.Object
- func NewFluxOperatorDeployment(config FluxOperatorConfig) *v1beta1.Deployment
- func NewServiceAccount(config FluxOperatorConfig) *corev1.ServiceAccount
- type FluxOperatorConfig
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 ¶
func NewFluxCRD(config FluxOperatorConfig) *extensions.CustomResourceDefinition
Create Flux CRD
func NewFluxHelmReleaseCRD ¶
func NewFluxHelmReleaseCRD(FluxOperatorConfig) *extensions.CustomResourceDefinition
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.
Click to show internal directories.
Click to hide internal directories.