Documentation ¶
Index ¶
- Constants
- func MakeBasicValues() *helm.Mapping
- func MakeRegistryCredentials(settings ExportSettings) (helm.Node, error)
- func MakeSecrets(secrets model.CVMap, settings ExportSettings) (helm.Node, error)
- func MakeValues(settings ExportSettings) (helm.Node, error)
- func NewDeployment(instanceGroup *model.InstanceGroup, settings ExportSettings, ...) (helm.Node, helm.Node, error)
- func NewJob(instanceGroup *model.InstanceGroup, settings ExportSettings, ...) (helm.Node, error)
- func NewPod(role *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, error)
- func NewPodTemplate(role *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, error)
- func NewRBACAccount(name string, account model.AuthAccount, settings ExportSettings) ([]helm.Node, error)
- func NewRBACClusterRolePSP(psp string, settings ExportSettings) (helm.Node, error)
- func NewRBACRole(name string, authRole model.AuthRole, settings ExportSettings) (helm.Node, error)
- func NewServiceList(role *model.InstanceGroup, clustering bool, settings ExportSettings) (helm.Node, error)
- func NewStatefulSet(role *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, helm.Node, error)
- type ExportSettings
Constants ¶
const ( // RoleNameLabel is the recommended kube label to specify the rolename RoleNameLabel = "app.kubernetes.io/component" // VolumeStorageClassAnnotation is the annotation label for storage/v1beta1/StorageClass VolumeStorageClassAnnotation = "volume.beta.kubernetes.io/storage-class" )
Variables ¶
This section is empty.
Functions ¶
func MakeBasicValues ¶
MakeBasicValues returns a Mapping with the default values that do not depend on any configuration. This is exported so the tests from other packages can access them.
func MakeRegistryCredentials ¶
func MakeRegistryCredentials(settings ExportSettings) (helm.Node, error)
MakeRegistryCredentials generates a template that contains Docker Registry credentials
func MakeSecrets ¶
MakeSecrets creates Secret KubeConfig filled with the key/value pairs from the specified map.
func MakeValues ¶
func MakeValues(settings ExportSettings) (helm.Node, error)
MakeValues returns a Mapping with all default values for the Helm chart
func NewDeployment ¶
func NewDeployment(instanceGroup *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, helm.Node, error)
NewDeployment creates a Deployment for the given instance group, and its attached services
func NewJob ¶
func NewJob(instanceGroup *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, error)
NewJob creates a new Job for the given instance group, as well as any objects it depends on
func NewPod ¶
func NewPod(role *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, error)
NewPod creates a new Pod for the given role, as well as any objects it depends on
func NewPodTemplate ¶
func NewPodTemplate(role *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, error)
NewPodTemplate creates a new pod template spec for a given role, as well as any objects it depends on
func NewRBACAccount ¶
func NewRBACAccount(name string, account model.AuthAccount, settings ExportSettings) ([]helm.Node, error)
NewRBACAccount creates a new (Kubernetes RBAC) service account and associated bindings.
func NewRBACClusterRolePSP ¶
func NewRBACClusterRolePSP(psp string, settings ExportSettings) (helm.Node, error)
NewRBACClusterRolePSP creates a new (Kubernetes RBAC) cluster role referencing a pod security policy (PSP)
func NewRBACRole ¶
NewRBACRole creates a new (Kubernetes RBAC) role
func NewServiceList ¶
func NewServiceList(role *model.InstanceGroup, clustering bool, settings ExportSettings) (helm.Node, error)
NewServiceList creates a list of services clustering should be true if a kubernetes headless service should be created (for self-clustering roles, to reach each pod individually)
func NewStatefulSet ¶
func NewStatefulSet(role *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, helm.Node, error)
NewStatefulSet returns a stateful set and a list of services for the given role
Types ¶
type ExportSettings ¶
type ExportSettings struct { OutputDir string Repository string Defaults map[string]string Registry string Username string Password string Organization string UseMemoryLimits bool UseCPULimits bool FissileVersion string TagExtra string RoleManifest *model.RoleManifest Opinions *model.Opinions CreateHelmChart bool AuthType string }
ExportSettings are configuration for creating Kubernetes configs