cmdhelpers

package
v0.17.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReferenceResources map[string][]referenceResource = map[string][]referenceResource{
	"service": {
		{Name: "service-namespace", Path: "metadata.namespace"},
		{Name: "service-name", Path: "metadata.name"},
		{Name: "service-port", Path: "spec.ports.port"},
	},
}

Functions

func GetAddonDestPath

func GetAddonDestPath(dest string) (string, error)

func GetReferenceValueMap

func GetReferenceValueMap(deployType, dest string) (map[string]string, error)

func PromptAddonValues

func PromptAddonValues(dest string, addonConfig *config.DraftConfig) error

func UpdateProductionDeployments added in v0.17.0

func UpdateProductionDeployments(deployType, dest string, draftConfig *config.DraftConfig, templateWriter templatewriter.TemplateWriter) error

Types

type GitHubWorkflow added in v0.17.0

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.17.0

type HelmProductionYaml struct {
	Image   image   `yaml:"image"`
	Service service `yaml:"service"`
}

func (*HelmProductionYaml) GetServiceName added in v0.17.0

func (hpy *HelmProductionYaml) GetServiceName() string

func (*HelmProductionYaml) LoadFromFile added in v0.17.0

func (hpy *HelmProductionYaml) LoadFromFile(filePath string) error

func (*HelmProductionYaml) SetAnnotations added in v0.17.0

func (hpy *HelmProductionYaml) SetAnnotations(annotations map[string]string)

func (*HelmProductionYaml) SetServiceType added in v0.17.0

func (hpy *HelmProductionYaml) SetServiceType(serviceType string)

func (*HelmProductionYaml) WriteToFile added in v0.17.0

func (hpy *HelmProductionYaml) WriteToFile(filePath string) error

type ServiceManifest added in v0.17.0

type ServiceManifest interface {
	LoadFromFile(string) error
	WriteToFile(string) error
	SetAnnotations(map[string]string)
	SetServiceType(string)
	GetServiceName() string
}

type ServiceYaml added in v0.17.0

type ServiceYaml struct {
	*corev1.Service
}

func (*ServiceYaml) GetServiceName added in v0.17.0

func (sy *ServiceYaml) GetServiceName() string

func (*ServiceYaml) LoadFromFile added in v0.17.0

func (sy *ServiceYaml) LoadFromFile(filePath string) error

func (*ServiceYaml) SetAnnotations added in v0.17.0

func (sy *ServiceYaml) SetAnnotations(annotations map[string]string)

func (*ServiceYaml) SetServiceType added in v0.17.0

func (sy *ServiceYaml) SetServiceType(serviceType string)

func (*ServiceYaml) WriteToFile added in v0.17.0

func (hpy *ServiceYaml) WriteToFile(filePath string) error

type Workflows added in v0.17.0

type Workflows struct {
	Dest string
	// contains filtered or unexported fields
}

func (*Workflows) CreateWorkflowFiles added in v0.17.0

func (w *Workflows) CreateWorkflowFiles(deployType string, draftConfig *config.DraftConfig, templateWriter templatewriter.TemplateWriter) error

func (*Workflows) GetConfig added in v0.17.0

func (w *Workflows) GetConfig(deployType string) (*config.DraftConfig, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL