Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RewriteManifests = featureflag.New("RewriteManifests", featureflag.Bool(true))
RewriteManifests controls whether we rewrite manifests Because manifest rewriting converts everything to and from YAML, we normalize everything by doing so
Functions ¶
This section is empty.
Types ¶
type AssetBuilder ¶
type AssetBuilder struct { ContainerAssets []*ContainerAsset FileAssets []*FileAsset AssetsLocation *kops.Assets }
AssetBuilder discovers and remaps assets
func NewAssetBuilder ¶
func NewAssetBuilder(assets *kops.Assets) *AssetBuilder
func (AssetBuilder) RemapFile ¶
func (a AssetBuilder) RemapFile(file string) (string, error)
RemapFile sets a new url location for the file, if a AssetsLocation is defined.
func (*AssetBuilder) RemapImage ¶
func (a *AssetBuilder) RemapImage(image string) (string, error)
func (*AssetBuilder) RemapManifest ¶
func (a *AssetBuilder) RemapManifest(data []byte) ([]byte, error)
RemapManifest transforms a kubernetes manifest. Whenever we are building a Task that includes a manifest, we should pass it through RemapManifest first. This will: * rewrite the images if they are being redirected to a mirror, and ensure the image is uploaded
type ContainerAsset ¶
Click to show internal directories.
Click to hide internal directories.