Documentation
¶
Index ¶
- Constants
- func DeployAppendSelectorLabels(labels map[string]string) deployOptions
- func DeploySetCmd(cmd []string) deployOptions
- func DeploySetImage(image string) deployOptions
- func DeploySetName(name string) deployOptions
- func DeployTrimClusterInfoLabels() deployOptions
- func DeployUseGeneralEnvs() deployOptions
- func ServiceAppendSelectorLabels(labels map[string]string) serviceOptions
- func ServiceName(name string) serviceOptions
- func ServiceTrimClusterInfoLabels() serviceOptions
- type Deployment
- type Service
Constants ¶
View Source
const DefaultDeploymentReplicas int32 = 1
Variables ¶
This section is empty.
Functions ¶
func DeployAppendSelectorLabels ¶
DeployAppendSelectorLabels - add additional labels to the deployment's selector
func DeploySetCmd ¶
func DeploySetCmd(cmd []string) deployOptions
DeploySetCmd - set the container command for the deployment
func DeploySetImage ¶
func DeploySetImage(image string) deployOptions
DeploySetImage - set the container image for the deployment
func DeploySetName ¶
func DeploySetName(name string) deployOptions
DeploySetName - set the deployment name and clear the generated name
func DeployTrimClusterInfoLabels ¶
func DeployTrimClusterInfoLabels() deployOptions
DeployTrimClusterInfoLabels - get rid of internal labels like managed-by, function-name or uuid
func DeployUseGeneralEnvs ¶
func DeployUseGeneralEnvs() deployOptions
DeployUseGeneralEnvs - use general envs function for the deployment
func ServiceAppendSelectorLabels ¶
ServiceAppendSelectorLabels - add additional labels to the service's selector
func ServiceTrimClusterInfoLabels ¶
func ServiceTrimClusterInfoLabels() serviceOptions
ServiceTrimClusterInfoLabels - get rid of internal labels like managed-by, function-name or uuid
Types ¶
type Deployment ¶
type Deployment struct {
*appsv1.Deployment
// contains filtered or unexported fields
}
func NewDeployment ¶
func NewDeployment(f *serverlessv1alpha2.Function, c *config.FunctionConfig, clusterDeployment *appsv1.Deployment, commit string, gitAuth *git.GitAuth, appName string, opts ...deployOptions) *Deployment
func (*Deployment) ResourceProfile ¶
func (d *Deployment) ResourceProfile() string
func (*Deployment) RuntimeImage ¶
func (d *Deployment) RuntimeImage() string
type Service ¶
func NewService ¶
func NewService(f *serverlessv1alpha2.Function, opts ...serviceOptions) *Service
Click to show internal directories.
Click to hide internal directories.