Documentation
¶
Index ¶
- func CreateWorkflows(dest string, config *WorkflowConfig) error
- type GitHubWorkflow
- type HelmProductionYaml
- func (hpy *HelmProductionYaml) GetServiceName() string
- func (hpy *HelmProductionYaml) LoadFromFile(filePath string) error
- func (hpy *HelmProductionYaml) SetAnnotations(annotations map[string]string)
- func (hpy *HelmProductionYaml) SetServiceType(serviceType string)
- func (hpy *HelmProductionYaml) WriteToFile(filePath string) error
- type ServiceManifest
- type ServiceYaml
- type WorkflowConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWorkflows ¶
func CreateWorkflows(dest string, config *WorkflowConfig) error
Types ¶
type GitHubWorkflow ¶
type GitHubWorkflow struct {
Name string
On on `yaml:"on"`
Env map[string]string
Jobs map[string]job
}
GitHubWorkflow is a rough struct to allow for yaml editing including deletion of Job steps
type HelmProductionYaml ¶ added in v0.0.9
type HelmProductionYaml struct {
Image image `yaml:"image"`
Service service `yaml:"service"`
}
func (*HelmProductionYaml) GetServiceName ¶ added in v0.0.26
func (hpy *HelmProductionYaml) GetServiceName() string
func (*HelmProductionYaml) LoadFromFile ¶ added in v0.0.26
func (hpy *HelmProductionYaml) LoadFromFile(filePath string) error
func (*HelmProductionYaml) SetAnnotations ¶ added in v0.0.9
func (hpy *HelmProductionYaml) SetAnnotations(annotations map[string]string)
func (*HelmProductionYaml) SetServiceType ¶ added in v0.0.9
func (hpy *HelmProductionYaml) SetServiceType(serviceType string)
func (*HelmProductionYaml) WriteToFile ¶ added in v0.0.26
func (hpy *HelmProductionYaml) WriteToFile(filePath string) error
type ServiceManifest ¶ added in v0.0.9
type ServiceManifest interface {
LoadFromFile(string) error
WriteToFile(string) error
SetAnnotations(map[string]string)
SetServiceType(string)
GetServiceName() string
}
type ServiceYaml ¶ added in v0.0.9
type ServiceYaml struct {
*corev1.Service
}
func (*ServiceYaml) GetServiceName ¶ added in v0.0.26
func (sy *ServiceYaml) GetServiceName() string
func (*ServiceYaml) LoadFromFile ¶ added in v0.0.26
func (sy *ServiceYaml) LoadFromFile(filePath string) error
func (*ServiceYaml) SetAnnotations ¶ added in v0.0.9
func (sy *ServiceYaml) SetAnnotations(annotations map[string]string)
func (*ServiceYaml) SetServiceType ¶ added in v0.0.9
func (sy *ServiceYaml) SetServiceType(serviceType string)
func (*ServiceYaml) WriteToFile ¶ added in v0.0.26
func (hpy *ServiceYaml) WriteToFile(filePath string) error
type WorkflowConfig ¶
type WorkflowConfig struct {
AcrName string
ContainerName string
ResourceGroupName string
AksClusterName string
BranchName string
ManifestsPath string
ChartsPath string
ChartsOverridePath string
KustomizePath string
}
func (*WorkflowConfig) ValidateAndFillConfig ¶
func (config *WorkflowConfig) ValidateAndFillConfig()
Click to show internal directories.
Click to hide internal directories.