Documentation ¶
Index ¶
- func AddBundlePart(baseDir string, filename string, content []byte) error
- func CopyUpstreamImages(options WriteUpstreamImageOptions) ([]kustomizeimage.Image, error)
- func FindObjectsWithImages(options FindObjectsWithImagesOptions) ([]*k8sdoc.Doc, error)
- func FindPrivateImages(options FindPrivateImagesOptions) ([]kustomizeimage.Image, []*k8sdoc.Doc, error)
- func GetGVKWithNameHash(content []byte) []byte
- func UnmarshalConfigValuesContent(content []byte) (map[string]template.ItemValue, error)
- func UnmarshalLicenseContent(content []byte, log *logger.Logger) *kotsv1beta1.License
- type Base
- type BaseFile
- type FindObjectsWithImagesOptions
- type FindPrivateImagesOptions
- type OverlySimpleGVK
- type OverlySimpleMetadata
- type RenderOptions
- type WriteOptions
- type WriteUpstreamImageOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyUpstreamImages ¶ added in v1.9.0
func CopyUpstreamImages(options WriteUpstreamImageOptions) ([]kustomizeimage.Image, error)
func FindObjectsWithImages ¶
func FindObjectsWithImages(options FindObjectsWithImagesOptions) ([]*k8sdoc.Doc, error)
func FindPrivateImages ¶
func FindPrivateImages(options FindPrivateImagesOptions) ([]kustomizeimage.Image, []*k8sdoc.Doc, error)
func GetGVKWithNameHash ¶ added in v1.8.0
func UnmarshalConfigValuesContent ¶ added in v0.9.14
func UnmarshalLicenseContent ¶ added in v1.4.0
func UnmarshalLicenseContent(content []byte, log *logger.Logger) *kotsv1beta1.License
Types ¶
type Base ¶
type Base struct {
Files []BaseFile
}
func RenderHelm ¶
func RenderHelm(u *upstreamtypes.Upstream, renderOptions *RenderOptions) (*Base, error)
func RenderUpstream ¶
func RenderUpstream(u *upstreamtypes.Upstream, renderOptions *RenderOptions) (*Base, error)
RenderUpstream is responsible for any conversions or transpilation steps are required to take an upstream and make it a valid kubernetes base
func (*Base) GetOverlaysDir ¶
func (b *Base) GetOverlaysDir(options WriteOptions) string
func (*Base) WriteBase ¶
func (b *Base) WriteBase(options WriteOptions) error
type BaseFile ¶
func (BaseFile) ShouldBeIncludedInBaseKustomization ¶
ShouldBeIncludedInBaseKustomization attempts to determine if this is a valid Kubernetes manifest. It accomplished this by trying to unmarshal the YAML and looking for a apiVersion and Kind
type FindObjectsWithImagesOptions ¶ added in v1.9.0
type FindObjectsWithImagesOptions struct {
BaseDir string
}
type FindPrivateImagesOptions ¶
type FindPrivateImagesOptions struct { BaseDir string AppSlug string ReplicatedRegistry registry.RegistryOptions }
type OverlySimpleGVK ¶
type OverlySimpleGVK struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata OverlySimpleMetadata `yaml:"metadata"` }
type OverlySimpleMetadata ¶
type RenderOptions ¶
type WriteOptions ¶
Click to show internal directories.
Click to hide internal directories.