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

[Bug] make sync fails locally #1368

Closed
2 tasks done
shubhscoder opened this issue Aug 29, 2023 · 3 comments · Fixed by #1370
Closed
2 tasks done

[Bug] make sync fails locally #1368

shubhscoder opened this issue Aug 29, 2023 · 3 comments · Fixed by #1370
Labels
bug Something isn't working

Comments

@shubhscoder
Copy link
Contributor

Search before asking

  • I searched the issues and found no similar issues.

KubeRay Component

ray-operator

What happened + What you expected to happen

The bug: When I ran make sync locally I got an error

test -s /vagrant/kuberay/ray-operator/bin/kustomize ||  GOBIN=/vagrant/kuberay/ray-operator/bin/kustomize/.. go install sigs.k8s.io/kustomize/kustomize/v3@v3.10.0
go: sigs.k8s.io/kustomize/kustomize/v3@v3.10.0 (in sigs.k8s.io/kustomize/kustomize/v3@v3.10.0):
        The go.mod file for the module providing named packages contains one or
        more exclude directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.
Makefile:117: recipe for target 'kustomize' failed
make: *** [kustomize] Error 1

Expected beahvior
make sync should work fine and synchronize the required yamls.

Useful Information

Go version : go version go1.19.12 linux/amd64
Kustomize install version : v3@v3.10.0

My guess is that it is related to this issue: kubernetes-sigs/kustomize#3618 (comment)

I could get around this issue by simply updating the kustomize version to 4.5.2 locally in the Makefile. Supporting comment for this: kubernetes-sigs/kustomize#3618 (comment)

I think the fix is just updating the version of Kustomize. However, I am not confident of what other things are dependent on this (Github CI/CD, other builds, etc). So, opening this issue for investigation.

Reproduction script

Navigate to kuberay/ray-operator

Run command : make sync

or

make helm

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@shubhscoder shubhscoder added the bug Something isn't working label Aug 29, 2023
@kevin85421
Copy link
Member

I took a look at this issue:

  1. kustomize is not required for helm, so you can remove it. Then, you can run make sync successfully.
  2. Although we can execute make sync successfully after (1), the command make kustomize will still fail with the same error message that you reported. You can upgrade the version of Kustomize. For example, the latest stable release is v5.1.1 (link).
KUSTOMIZE = $(shell pwd)/bin/kustomize
kustomize: ## Download kustomize locally if necessary.
	test -s $(KUSTOMIZE) ||  GOBIN=$(KUSTOMIZE)/.. go install sigs.k8s.io/kustomize/kustomize/v5@v5.1.1

@kevin85421
Copy link
Member

@shubhscoder would you mind opening a PR based on #1368 (comment)? Thanks!

Btw, I am interested in why does Kustomize is still under maintenance after it was integrated into kubectl. Maybe only some parts of the functionalities are integrated?

@kevin85421
Copy link
Member

This is solved by #1371.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants