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

Missing objects in kustomize build output #5665

Open
faust64 opened this issue Apr 19, 2024 · 2 comments
Open

Missing objects in kustomize build output #5665

faust64 opened this issue Apr 19, 2024 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@faust64
Copy link

faust64 commented Apr 19, 2024

What happened?

Colleague of mine is introducing some new CRDs & controllers .... and found about some edge case.

His new objects are named like SomethingAccessList.
They are missing from kustomize build outputs.

Hint: probably this: https://github.com/kubernetes-sigs/kustomize/blob/master/api/resource/factory.go#L193

Arguably ... yes, those "List" "usually" relates to the "listKind" we would find on custom resources definitions, ... eg:

  group: tekton.dev
  names:
    categories:
    - tekton
    - tekton-pipelines
    kind: PipelineRun
    listKind: PipelineRunList
    plural: pipelineruns
    shortNames:
    - pr
    - prs
    singular: pipelinerun

Still I'm not aware of any rule preventing usage of such a suffix, actually naming objects ....
.. and as far as I see: refactoring that snippet as an helm Chart: helm is able to produce the expected output.

Then that's a bug?

What did you expect to happen?

objects showing in stdout, when I "kustomize build ."

How can we reproduce it (as minimally and precisely as possible)?

# kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- resources.yaml
# resources.yaml
apiVersion: something.example.com/v1
kind: SomethingAccessList
metadata:
  name: test-object

Expected output

apiVersion: something.example.com/v1
kind: SomethingAccessList
metadata:
  name: test-object

Actual output

no output given. kustomize build exits with 0.

Kustomize version

5.4.0

Operating system

None

@faust64 faust64 added the kind/bug Categorizes issue or PR as related to a bug. label Apr 19, 2024
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Apr 19, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@alianos-
Copy link

alianos- commented May 9, 2024

seems like a duplicate of #5042

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. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants