Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderArgs ¶
func RenderArgs(args []string, tp TemplateParams) ([]string, error)
func RenderArtifacts ¶
func RenderArtifacts(arts map[string]crv1alpha1.Artifact, tp TemplateParams) (map[string]crv1alpha1.Artifact, error)
Types ¶
type DeploymentParams ¶
type DeploymentParams struct { Name string Namespace string Pods []string Containers [][]string PersistentVolumeClaims [][]string }
DeploymentParams are params for deployments
type StatefulSetParams ¶
type StatefulSetParams struct { Name string Namespace string Pods []string Containers [][]string PersistentVolumeClaims [][]string }
StatefulSetParams are params for stateful sets.
type TemplateParams ¶
type TemplateParams struct { StatefulSet *StatefulSetParams Deployment *DeploymentParams ArtifactsIn map[string]crv1alpha1.Artifact ArtifactsOut map[string]crv1alpha1.Artifact ConfigMaps map[string]v1.ConfigMap Secrets map[string]v1.Secret Time string }
TemplateParams are the values that will change between separate runs of Phases.
func New ¶
func New(ctx context.Context, cli kubernetes.Interface, as crv1alpha1.ActionSpec) (*TemplateParams, error)
Click to show internal directories.
Click to hide internal directories.