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

fix gardener local deployment #34

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ostempel
Copy link
Contributor

@ostempel ostempel commented Nov 4, 2024

Description

Migrate to vgopath.

@ostempel ostempel marked this pull request as draft November 4, 2024 08:20
@ostempel ostempel marked this pull request as ready for review November 4, 2024 08:26
@Gerrit91 Gerrit91 changed the title fix garderner local deployment fix gardener local deployment Nov 4, 2024
Copy link
Contributor

@Gerrit91 Gerrit91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Can we also put the .ci folder that will be generated to the .gitignore file?

generate: $(HELM)
@$(REPO_ROOT)/vendor/github.com/gardener/gardener/hack/generate-sequential.sh ./charts/... ./cmd/... ./pkg/...
generate: $(VGOPATH) $(HELM) $(YQ)
@REPO_ROOT=$(REPO_ROOT) VGOPATH=$(VGOPATH) GARDENER_HACK_DIR=$(GARDENER_HACK_DIR) bash $(GARDENER_HACK_DIR)/generate-sequential.sh ./charts/... ./cmd/... ./pkg/...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking that maybe we should update the VERSION file here instead of generate-in-docker. If we do it this way it works for both generate and generate-in-docker.

Suggested change
@REPO_ROOT=$(REPO_ROOT) VGOPATH=$(VGOPATH) GARDENER_HACK_DIR=$(GARDENER_HACK_DIR) bash $(GARDENER_HACK_DIR)/generate-sequential.sh ./charts/... ./cmd/... ./pkg/...
echo $(shell git describe --abbrev=0 --tags) > VERSION
@REPO_ROOT=$(REPO_ROOT) VGOPATH=$(VGOPATH) GARDENER_HACK_DIR=$(GARDENER_HACK_DIR) bash $(GARDENER_HACK_DIR)/generate-sequential.sh ./charts/... ./cmd/... ./pkg/...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, removed it at generate-in-docker and added it to generate

-> but generate-in-docker generally fails, it can't generate controller-registration.yaml. I will take a look on this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I actually tried this out and it worked. What's the reason why it is failing? 🤔

@ostempel ostempel marked this pull request as draft November 6, 2024 14:47
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

Successfully merging this pull request may close these issues.

2 participants