-
Notifications
You must be signed in to change notification settings - Fork 120
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
Integrate Kustomize #1370
Integrate Kustomize #1370
Conversation
- Kustomize integrated for rendering of kubebuilder operators - Added first version f the deploy command that installs lifecycle and module managers via kustmize - Added dry run mode: prints all manifests to stdout but doe snot apply them. Signed-off-by: Borja Clemente <borja.clemente.castanera@sap.com>
Signed-off-by: Borja Clemente <borja.clemente.castanera@sap.com>
Signed-off-by: Borja Clemente <borja.clemente.castanera@sap.com>
While running against a Gardener GCP cluster, I got the following error:
|
It also happens in a k3d cluster, and also when I am using a compiled binary. It looks like something's wrong with kustomize configuration |
Hey @Tomasz-Smelcerz-SAP, I will debug it with @ruanxin, but in the meantime if you want to test a working state, you can use the flag |
It's probably related to this commit that introduced a label with an integer value. |
@@ -119,6 +110,25 @@ func ResolveLocalWorkspacePath(ws string, local bool) (string, error) { | |||
return ws, nil | |||
} | |||
|
|||
// resolveLocalRepo tries to find the repository with the given name in the GOPATH | |||
// the repository must have its full name starting from $GOPATH/src | |||
func resolveLocalRepo(repo string) (string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a problem here. GOPATH should point to the workspace dir. In this directory there are "src" and "bin" subdirectories, and project sources should be located under "src" (docs)
On my system the "src" dir is not taken into account and I go this:
% echo $GOPATH
/Users/tsm/Documents/development/golang
% ./bin/kyma-darwin alpha deploy --source=local
- Kustomize ready
Error: error resolving lifecycle-manager: Local Kyma source directory '/Users/tsm/Documents/development/golang/github.com/kyma-project/lifecycle-manager' not found
% file $GOPATH/src/github.com/kyma-project/lifecycle-manager
/Users/tsm/Documents/development/golang/src/github.com/kyma-project/lifecycle-manager: directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that! Yes indeed there is a bug there; the src
path element is missing.
Fixed it.
Signed-off-by: Borja Clemente <borja.clemente.castanera@sap.com>
Signed-off-by: Borja Clemente <borja.clemente.castanera@sap.com>
Description
Changes proposed in this pull request:
Related issue(s)
#1318