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

Deploy Management cluster: kpt-set.sh - cluster/kustomization.yaml: resource must have metadata.name #3279

Closed
ma08 opened this issue Jun 15, 2022 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@ma08
Copy link

ma08 commented Jun 15, 2022

When I am configuring the kpt setter values using the steps outlined, I get the following error

$ bash kpt-set.sh
[RUNNING] "gcr.io/kpt-fn/apply-setters:v0.1"
[PASS] "gcr.io/kpt-fn/apply-setters:v0.1"
  Results:
    [INFO] set field value to "rubicon-mng-cluster" in file "kpt-setter-config.yaml" in field "data.name"
    [INFO] set field value to "deep-learning-344607" in file "kpt-setter-config.yaml" in field "data.gcloud.core.project"
    [INFO] set field value to "us-east1" in file "kpt-setter-config.yaml" in field "data.location"
[RUNNING] "gcr.io/kpt-fn/apply-setters:v0.1"
[FAIL] "gcr.io/kpt-fn/apply-setters:v0.1"
error: input resource list must contain only KRM resources: cluster/kustomization.yaml: resource must have `metadata.name`

The way I resolved it as is go to all the manifests/*/kustomization.yaml files and added the following lines

metadata:
  name: rubicon-mng-cluster

To be honest I am not sure what exactly the metdata.name should be, but this got it working for me.

@miramar-labs
Copy link

reproduced

Copy link

@varodrig:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@google-oss-prow google-oss-prow bot added the help wanted Extra attention is needed label Jan 17, 2025
@varodrig
Copy link
Contributor

@ma08 @miramar-labs the content is related to this website https://googlecloudplatform.github.io/kubeflow-gke-docs/docs/deploy/management-setup/#configure-kpt-setter-values so please submit the issue in the github project https://github.com/googlecloudplatform/kubeflow-distribution since it's not part of the kubeflow.org website. thank you. Closing this issue.

@varodrig
Copy link
Contributor

/close

Copy link

@varodrig: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants