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