change packages to bases in Manifest
This commit is contained in:
parent
c8107f2ffc
commit
f24ba4e2ee
|
|
@ -22,7 +22,7 @@ objectLabels:
|
|||
objectAnnotations:
|
||||
note: Hello, I am production!
|
||||
|
||||
packages:
|
||||
bases:
|
||||
- ..
|
||||
|
||||
patches:
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ objectLabels:
|
|||
objectAnnotations:
|
||||
note: Hello, I am staging!
|
||||
|
||||
packages:
|
||||
bases:
|
||||
- ..
|
||||
|
||||
patches:
|
||||
|
|
|
|||
|
|
@ -82,10 +82,10 @@ type Manifest struct {
|
|||
// Annotations to add to all objects.
|
||||
ObjectAnnotations map[string]string `json:"objectAnnotations,omitempty" yaml:"objectAnnotations,omitempty"`
|
||||
|
||||
// Packages contain the paths to other packages that this manifest depends on.
|
||||
// Bases contain the paths to other packages that this manifest depends on.
|
||||
// Each path should be either a path to a Kube-manifest.yaml or a path of
|
||||
// a directory that contains a Kube-manifest.yaml file.
|
||||
Packages []string `json:"packages,omitempty" yaml:"packages,omitempty"`
|
||||
Bases []string `json:"bases,omitempty" yaml:"bases,omitempty"`
|
||||
|
||||
// Resources specifies the relative paths within the package.
|
||||
// It could be any format that kubectl -f allows, i.e. files, directories,
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ func (a *applicationImpl) RawResources() (resource.ResourceCollection, error) {
|
|||
func (a *applicationImpl) subAppResources() (resource.ResourceCollection, *interror.ManifestErrors) {
|
||||
sliceOfSubAppResources := []resource.ResourceCollection{}
|
||||
errs := &interror.ManifestErrors{}
|
||||
for _, pkgPath := range a.manifest.Packages {
|
||||
for _, pkgPath := range a.manifest.Bases {
|
||||
subloader, err := a.loader.New(pkgPath)
|
||||
if err != nil {
|
||||
errs.Append(err)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ objectLabels:
|
|||
env: staging
|
||||
patches:
|
||||
- deployment.yaml
|
||||
packages:
|
||||
bases:
|
||||
- ../package/
|
||||
configmaps:
|
||||
- name: configmap-in-overlay
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ objectLabels:
|
|||
repo: test-infra
|
||||
objectAnnotations:
|
||||
note: This is a test annotation
|
||||
packages:
|
||||
bases:
|
||||
- ../../package/
|
||||
#These are strategic merge patch overlays in the form of API resources
|
||||
patches:
|
||||
|
|
|
|||
Loading…
Reference in New Issue