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

featureFlags.EnableTektonOCIBundles becomes unknown fields #8359

Open
jkandasa opened this issue Nov 1, 2024 · 1 comment · May be fixed by #8360
Open

featureFlags.EnableTektonOCIBundles becomes unknown fields #8359

jkandasa opened this issue Nov 1, 2024 · 1 comment · May be fixed by #8360
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@jkandasa
Copy link
Member

jkandasa commented Nov 1, 2024

Pipeline Version: v0.62.4

unable to delete a pipelinerun with EnableTektonOCIBundles flag, getting below error even while removing finalizer

error: pipelineruns.tekton.dev "installer-l0v75d" could not be patched: admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "EnableTektonOCIBundles"

For some reason, EnableTektonOCIBundles added into pipelinerun status.provenance.featureFlags,
EnableTektonOCIBundles - completely removed on 0.62.x [1] so it becomes unknown field.
The Pipelinerun resources were already marked for deletion, and we can not change the resource, other than removing the finalizers.
But here the pipeline webhook 0.62.x doesn't like unknown field EnableTektonOCIBundles and rejecting.
It is a kind of dead lock now.

[1] - https://github.com/tektoncd/pipeline/pull/7789/files#diff-43c816abe932bdd16552907bcaac8c510320e205a874f5ff04dea69553e1bc7cR187

apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
  creationTimestamp: "2024-10-09T14:33:12Z"
  deletionGracePeriodSeconds: 0
  deletionTimestamp: "2024-10-09T14:57:52Z"
  finalizers:
  - chains.tekton.dev/pipelinerun
  name: installer-l0v75d
  namespace: jk
status:
  provenance:
    featureFlags:
      AwaitSidecarReadiness: true
      Coschedule: workspaces
      DisableAffinityAssistant: true
      DisableCredsInit: false
      DisableInlineSpec: ""
      EnableAPIFields: beta
      EnableArtifacts: false
      EnableCELInWhenExpression: false
      EnableKeepPodOnCancel: false
      EnableParamEnum: false
      EnableProvenanceInStatus: true
      EnableStepActions: false
      EnableTektonOCIBundles: false        <----
      EnforceNonfalsifiability: none
      MaxResultSize: 4096
      RequireGitSSHSecretKnownHosts: false
      ResultExtractionMethod: termination-message
      RunningInEnvWithInjectedSidecars: true
      ScopeWhenExpressionsToTask: false
      SendCloudEventsForRuns: false
      SetSecurityContext: false
      VerificationNoMatchPolicy: ignore

Expected Behavior

Should not throw unknown field error for EnableTektonOCIBundles

Actual Behavior

Blocked on EnableTektonOCIBundles as unknown field

@jkandasa jkandasa added the kind/bug Categorizes issue or PR as related to a bug. label Nov 1, 2024
@jkandasa
Copy link
Member Author

jkandasa commented Nov 1, 2024

/assign @jkandasa

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

Successfully merging a pull request may close this issue.

1 participant