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

Remove kustomize requirement if kubectl version > 1.14 #1781

Closed
balopat opened this issue Mar 12, 2019 · 8 comments · Fixed by #4183
Closed

Remove kustomize requirement if kubectl version > 1.14 #1781

balopat opened this issue Mar 12, 2019 · 8 comments · Fixed by #4183
Assignees
Labels
area/deploy bugbash/q4-2022 Issues related to Skaffold Bugbash Q4 2022 deploy/kustomize fixit kind/todo implementation task/epic for the skaffold team priority/p2 May take a couple of releases

Comments

@balopat
Copy link
Contributor

balopat commented Mar 12, 2019

kustomize got merged into kubectl we should remove the dependency if we detect kubectl version that is greater or equal to 1.14.

@balopat balopat added priority/p3 agreed that this would be good to have, but no one is available at the moment. 2019Q2 labels Mar 12, 2019
@balopat balopat removed the 2019Q2 label Apr 5, 2019
@balopat balopat added the kind/todo implementation task/epic for the skaffold team label Aug 14, 2019
@nkubala nkubala added priority/p2 May take a couple of releases and removed priority/p3 agreed that this would be good to have, but no one is available at the moment. labels Aug 29, 2019
@dkirrane
Copy link

Fyi: at the moment this config throws no matches for kind \"Kustomization\"

apiVersion: skaffold/v1beta14
kind: Config

deploy:
  kubectl:
    manifests:
      - ./kustomize/kustomization.yaml
    flags:
      apply:
        - -k
  1. git clone https://github.com/dkirrane/strimzi-skaffold-kustomise (See README)
  2. skaffold depoy
  3. no matches for kind \"Kustomization\" in version \"kustomize.config.k8s.io/v1beta1\"\n, err: exit status 1: exit status

@raul1991
Copy link

raul1991 commented Oct 4, 2019

For me,

This configuration leads to an error

deploy:
  kubectl:
    flags:
      global:
        - -k
    manifests:
     - kustomizer/dev/kustomization.yaml

Error

kubectl --context <my-context> create -k --dry-run -oyaml -f <some-path>/kustomizer/dev/kustomization.yaml

Since I added the -k it seems only logical that it appears after the kubectl create but why does it appends -f when -k is already given ?

@tstromberg
Copy link
Contributor

Evidently this is still a thing.

@base698
Copy link

base698 commented Apr 20, 2020

https://tilt.dev doesn't have this requirement currently.

@AndiDog
Copy link
Contributor

AndiDog commented Jun 2, 2020

#4237 should have reopened this.

Could you please describe the problem which caused revert, and the behavior you want to achieve eventually (support both built-in and tool on PATH, which one wins, do you support something like deploy:kustomize:kustomizePath/SKAFFOLD_KUSTOMIZE_PATH, etc.)?

@nkubala nkubala reopened this Jun 16, 2020
@nkubala
Copy link
Contributor

nkubala commented Jun 16, 2020

@AndiDog the reason my "fix" didn't work is because the bundled version of kustomize in kubectl is apparently outdated, so some functionality that users are depending on wasn't there and their deploys were broken.

I think the right behavior in an ideal world would be to always use a binary on the PATH over kubectl's kustomize if it exists - that way users can have an escape hatch if they want to use newer functionality but we also remove the hard requirement on having kustomize installed. I don't think we'll need to support a kustomizePath field in the skaffold.yaml if we just check to see if the binary is installed on the user's PATH.

@nkubala
Copy link
Contributor

nkubala commented Jun 16, 2020

cc @briandealwis ref #4183 (comment)

@MarlonGamez MarlonGamez self-assigned this Jul 15, 2020
@nkubala nkubala added this to the Icebox [P2+] milestone Sep 1, 2020
@nkubala nkubala removed this from the Icebox [P2+] milestone May 11, 2021
@ericzzzzzzz
Copy link
Contributor

I think the original ask in this issue has been complete.

  • kustomize binary is not a hard requirement for using kustomize, if the binary not found, skaffold falls back to use kubectl kustomize
  • user can still use kustomize bianry for new feature if it exits.

Closing the issue.

@aaron-prindle aaron-prindle added the bugbash/q4-2022 Issues related to Skaffold Bugbash Q4 2022 label Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deploy bugbash/q4-2022 Issues related to Skaffold Bugbash Q4 2022 deploy/kustomize fixit kind/todo implementation task/epic for the skaffold team priority/p2 May take a couple of releases
Projects
None yet
Development

Successfully merging a pull request may close this issue.