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

CustomRuns do not include labels when creating resources #7639

Open
ggallen opened this issue Feb 6, 2024 · 0 comments
Open

CustomRuns do not include labels when creating resources #7639

ggallen opened this issue Feb 6, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@ggallen
Copy link

ggallen commented Feb 6, 2024

Expected Behavior

Labels included in a CustomRun should remain in the created resource.

Actual Behavior

Labels are stripped.

Steps to Reproduce the Problem

  1. Use the following resource or something similar:
apiVersion: tekton.dev/v1beta1
kind: CustomRun
metadata:
  generateName: agogos-submission-component-cli-custom-run-
  namespace: gallen
  labels:
    app.kubernetes.io/component: customrun
    app.kubernetes.io/part-of: agogos
spec:
  customSpec:
    apiVersion: agogos.redhat.com/v1alpha1
    kind: Submission
    metadata: {}
    spec:
      instance: 344d24db-b72d-4bd9-a2d1-a14d5e419fb6
      name: sample-1
      resource: Component
  serviceAccountName: default
  1. Use 'kubectl create -f` to create the resource.
  2. Verify there are no labels in the created resource.
apiVersion: tekton.dev/v1beta1
kind: CustomRun
metadata:
  creationTimestamp: "2024-02-06T00:01:24Z"
  generateName: agogos-submission-component-cli-custom-run-
  generation: 1
  name: agogos-submission-component-cli-custom-run-vgcmk
  namespace: gallen
  resourceVersion: "151578"
  uid: e563d640-d797-43a9-a822-5387999edb0a
spec:
  customSpec:
    apiVersion: agogos.redhat.com/v1alpha1
    kind: Submission
    metadata: {}
    spec:
      instance: 344d24db-b72d-4bd9-a2d1-a14d5e419fb6
      name: sample-1
      resource: Component
  serviceAccountName: default

Additional Info

  • Kubernetes version:

    Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.10", GitCommit:"0fa26aea1d5c21516b0d96fea95a77d8d429912e", GitTreeState:"clean", BuildDate:"2024-01-17T13:46:28Z", GoVersion:"go1.20.13", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.10", GitCommit:"0fa26aea1d5c21516b0d96fea95a77d8d429912e", GitTreeState:"clean", BuildDate:"2024-01-17T13:38:41Z", GoVersion:"go1.20.13", Compiler:"gc", Platform:"linux/amd64"}
  • Tekton Pipeline version:

    v0.53.3

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.
Projects
None yet
Development

No branches or pull requests

1 participant