mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 09:49:13 +00:00
Add ImageTags in kustomization type
This commit is contained in:
@@ -68,6 +68,12 @@ type Kustomization struct {
|
|||||||
|
|
||||||
// Variables which will be substituted at runtime
|
// Variables which will be substituted at runtime
|
||||||
Vars []Var `json:"vars,omitempty" yaml:"vars,omitempty"`
|
Vars []Var `json:"vars,omitempty" yaml:"vars,omitempty"`
|
||||||
|
|
||||||
|
// If set to true, all images need to have tags
|
||||||
|
RequireTag bool `json:"requireTag,omitempty" yaml:"requireTag,omitempty"`
|
||||||
|
|
||||||
|
// ImageTags is a list of ImageTag for changing image tags
|
||||||
|
ImageTags []ImageTag `json:"imageTags,omitempty" yaml:"imageTags,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConfigMapArgs contains the metadata of how to generate a configmap.
|
// ConfigMapArgs contains the metadata of how to generate a configmap.
|
||||||
@@ -136,3 +142,12 @@ type DataSources struct {
|
|||||||
// i.e. a Docker .env file or a .ini file.
|
// i.e. a Docker .env file or a .ini file.
|
||||||
EnvSource string `json:"env,omitempty" yaml:"env,omitempty"`
|
EnvSource string `json:"env,omitempty" yaml:"env,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ImageTag contains an image and a new tag, which will replace the original tag.
|
||||||
|
type ImageTag struct {
|
||||||
|
// Name is a tag-less image name.
|
||||||
|
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||||
|
|
||||||
|
// NewTag is the value to use in replacing the original tag.
|
||||||
|
NewTag string `json:"newTag,omitempty" yaml:"newTag,omitempty"`
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user