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

kustomize create --resources does not support remote file references #4842

Open
scodeman opened this issue Oct 25, 2022 · 4 comments
Open

kustomize create --resources does not support remote file references #4842

scodeman opened this issue Oct 25, 2022 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@scodeman
Copy link

Description

kustomisation.yaml file accepts url within resources but the kustomize cli does not allow to create the corresponding file

kustomize create --stack-trace --resources=https://github.com/operator-framework/operator-lifecyclemanager/releases/download/v0.22.0/olm.yaml

Expected output

kustomization.yaml

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  - https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.22.0/olm.yaml

Actual output

2022/10/25 15:31:43 https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.22.0/olm.yaml has no match

Kustomize version

kustomize/v4.1.3

Platform

macOS amd64

Additional context

Could be that the kustomize cli assumes local files or does not follow redirection on fetching url

@scodeman scodeman added the kind/bug Categorizes issue or PR as related to a bug. label Oct 25, 2022
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Oct 25, 2022
@KnVerey
Copy link
Contributor

KnVerey commented Dec 7, 2022

It seems to me that kustomize create does accept remote URLs, but only for bases, not for individual files. We first try to use the string as an expression referring to local files, and if that fails, we try to treat it as a remote base. If that fails, for some reason we're outputting a message about the first pattern-matching attempt but proceeding without an error (it would also be good to improve this). kustomize build on the other hand does not accept patterns, and first tries to load the string as a raw resources file, then as a base. Agreed that create's resources flag ideally would support all the formats that build's resources field supports (NB not the other way around though, as build is more restrictive by design).

/retitle kustomize create --resources does not support remote file references
/triage accepted

@k8s-ci-robot k8s-ci-robot changed the title kustomize create does not manage url resources kustomize create --resources does not support remote file references Dec 7, 2022
@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 7, 2022
@k8s-triage-robot
Copy link

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Close this issue with /close

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. and removed triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Jan 19, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 18, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

4 participants