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 kubernetes-manifests/kustomization.yaml empty components issue #1436

Merged
merged 6 commits into from
Jan 18, 2023

Conversation

phamquiluan
Copy link
Contributor

@phamquiluan phamquiluan commented Dec 30, 2022

This fixes #1435.

@google-cla
Copy link

google-cla bot commented Dec 30, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@phamquiluan phamquiluan requested a review from a team as a code owner January 10, 2023 14:35
@NimJay NimJay changed the title Fix #1435 Comment out "components:" in kubernetes-manifests/kustomization.yaml Jan 18, 2023
@NimJay NimJay changed the title Comment out "components:" in kubernetes-manifests/kustomization.yaml Fix "components:" issue in kubernetes-manifests/kustomization.yaml Jan 18, 2023
@NimJay NimJay changed the title Fix "components:" issue in kubernetes-manifests/kustomization.yaml Fix kubernetes-manifests/kustomization.yaml empty components issue Jan 18, 2023
if [[ $file_to_copy == "./kubernetes-manifests/kustomization.yaml" ]]; then
continue
fi

Copy link
Collaborator

@NimJay NimJay Jan 18, 2023

Choose a reason for hiding this comment

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

I just added this change into hack/make-release-artifacts.sh.
Context:

  • Today, when a new release of Online Boutique is created kubernetes-manifests/kustomization.yaml is copied over to kustomize/base/kustomization.yaml.
  • This should not be the case since the two files are meant to look different.
  • For instance, kustomize/base/kustomization.yaml should not include:
# components:

or

# - loadgenerator.yaml # During development, the loadgenerator module inside skaffold.yaml will be used.

Copy link
Collaborator

@NimJay NimJay left a comment

Choose a reason for hiding this comment

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

@phamquiluan sorry for the delayed review.
And thank you for:

  1. creating a clear GitHub issue
  2. creating a pull-request to fix the issue

I have not reproduced the issue on my end, but I trust that your fix worked for you.
Plus, the fix won't negatively impact anyone else's user experience.

Approved!

@NimJay NimJay merged commit 58b6cd2 into GoogleCloudPlatform:main Jan 18, 2023
D-Mwanth pushed a commit to D-Mwanth/microservices-demo that referenced this pull request Mar 6, 2024
…oogleCloudPlatform#1436)

* Fix GoogleCloudPlatform#1435

* Avoid copying kustomization.yaml into base

Co-authored-by: Nim Jayawardena <[email protected]>
Co-authored-by: Nim Jayawardena <[email protected]>
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.

"Error: json: unknown field \"components\"\n"
2 participants