Documentation
¶
Index ¶
- Variables
- func GetHelmDest(d *helmDriver, r *releasetypes.ReleaseConfig, ...) (string, error)
- func GetPackagesImageTags(eksArtifacts map[string][]releasetypes.Artifact) (map[string]string, error)
- func HasChart(helmdir string) (string, error)
- func HasRequires(helmdir string) (string, error)
- func ModifyAndPushChartYaml(i releasetypes.ImageArtifact, r *releasetypes.ReleaseConfig, d *helmDriver, ...) error
- func NewHelm() (*helmDriver, error)
- func OverWriteChartValuesImageSha(filename string, shaMap map[string]anywherev1alpha1.Image) error
- func OverWriteChartValuesImageTag(filename string, tagMap map[string]string) error
- func OverwriteChartYaml(filename string, helmChart *chart.Metadata) error
- func PackageHelmChart(dir string) (string, error)
- func PushHelmChart(packaged, URI string) error
- func UnTarHelmChart(chartRef, chartPath, dest string) error
- func ValidateHelmChart(fileName string) (*chart.Metadata, error)
- type Configuration
- type DockerAuth
- type DockerAuthFile
- type DockerAuthRegistry
- type Image
- type Requires
- type RequiresSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var HelmLog = ctrl.Log.WithName("HelmLog")
Functions ¶
func GetHelmDest ¶
func GetHelmDest(d *helmDriver, r *releasetypes.ReleaseConfig, ReleaseImageURI, assetName string) (string, error)
func GetPackagesImageTags ¶
func HasRequires ¶
HasRequires checks for the existance of the requires.yaml within the helm directory.
func ModifyAndPushChartYaml ¶
func ModifyAndPushChartYaml(i releasetypes.ImageArtifact, r *releasetypes.ReleaseConfig, d *helmDriver, helmDest string, eksArtifacts map[string][]releasetypes.Artifact, shaMap map[string]anywherev1alpha1.Image) error
func OverWriteChartValuesImageSha ¶
func OverWriteChartValuesImageSha(filename string, shaMap map[string]anywherev1alpha1.Image) error
func PackageHelmChart ¶
PackageHelmChart will package a dir into a helm chart.
func PushHelmChart ¶
PushHelmChart will take in packaged helm chart and push to a remote URI.
func UnTarHelmChart ¶
UnTarHelmChart will attempt to move the helm chart out of the helm cache, by untaring it to the pwd and creating the filesystem to unpack it into.
Types ¶
type Configuration ¶
type DockerAuth ¶
type DockerAuth struct {
Auths map[string]DockerAuthRegistry `json:"auths,omitempty"`
}
type DockerAuthFile ¶
type DockerAuthFile struct {
Authfile string `json:"authfile"`
}
type DockerAuthRegistry ¶
type DockerAuthRegistry struct {
Auth string `json:"auth"`
}
type Requires ¶
type Requires struct { Kind string `json:"kind,omitempty"` Metadata metav1.ObjectMeta `json:"metadata,omitempty"` Spec RequiresSpec `json:"spec,omitempty"` }
func GetChartImageTags ¶
func ValidateHelmRequires ¶
ValidateHelmRequires runs the parse file into struct function, and validations.
type RequiresSpec ¶
type RequiresSpec struct { Images []Image `json:"images,omitempty"` Configurations []Configuration `json:"configurations,omitempty"` Schema string `json:"schema,omitempty"` }
Click to show internal directories.
Click to hide internal directories.