Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeWorkflow ¶
type ChangeWorkflow struct {
yaml.ResourceMeta `json:",inline" yaml:",inline"`
Spec ChangeWorkflowSpec `json:"spec" yaml:"spec"`
}
ChangeWorkflow is a KRM object, so it takes its apiVersion, kind and metadata from kyaml's ResourceMeta rather than restating them. The embedded fields are promoted, which is what flattens them back to the top level of the document: encoding/json, which sigs.k8s.io/yaml decodes through, promotes anonymous struct fields that carry no name of their own. The ",inline" tag is how kyaml spells that intent, but it is gopkg.in/yaml.v3's option, not one encoding/json reads.
type ChangeWorkflowSource ¶
type ChangeWorkflowSource struct {
Space string `json:"space" yaml:"space"`
}
type ChangeWorkflowSpec ¶
type ChangeWorkflowSpec struct {
Source ChangeWorkflowSource `json:"source" yaml:"source"`
Stages []ChangeWorkflowStage `json:"stages" yaml:"stages"`
}
type ChangeWorkflowStage ¶
Click to show internal directories.
Click to hide internal directories.