Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the replacement for bases? #2243

Closed
tamalsaha opened this issue Mar 1, 2020 · 6 comments
Closed

What is the replacement for bases? #2243

tamalsaha opened this issue Mar 1, 2020 · 6 comments

Comments

@tamalsaha
Copy link
Contributor

// Deprecated.
// Anything that would have been specified here should
// be specified in the Resources field instead.
Bases []string `json:"bases,omitempty" yaml:"bases,omitempty"`

I see bases is deprecated. What is the replacement?

@chancez
Copy link
Contributor

chancez commented Mar 4, 2020

If I understand correctly, resources can be used to point to a directory containing a kustomization.yaml for these purposes.

@pwittrock
Copy link
Contributor

@chancez correct -- you can specify bases as resources

@MikaelSmith
Copy link
Contributor

MikaelSmith commented May 19, 2020

#776 (comment) demonstrates they have some notable differences. Bases seems to be the better option for what I'm trying to do and several other uses I've seen.

Update: I guess this is only an issue in the version of kustomize shipped with kubectl 1.18.

@tolgaingenc
Copy link

tolgaingenc commented Jun 30, 2020

But if you define bases with resources it requires the base to be "in or below" which is a bad idea if you wont dublicate base per env. How am I supposed to put base within dev or prod?

MyRepo
├───base
│ ├───db
│ ├───frontend
│ ├───service1
│ ├───service2
└───env
│ ├───dev
│ ├───prod

@coderatchet
Copy link

Can someone please confirm if this is/will be fixed by 1.19?

@timhughes
Copy link

@coderatchet Added an explanation on this ticket (as far as i can work it out) kubernetes/kubectl#891 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants