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

Cannot define PipelineRun with only Tasks timeout #5459

Closed
lbernick opened this issue Sep 8, 2022 · 0 comments · Fixed by #5460
Closed

Cannot define PipelineRun with only Tasks timeout #5459

lbernick opened this issue Sep 8, 2022 · 0 comments · Fixed by #5460
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@lbernick
Copy link
Member

lbernick commented Sep 8, 2022

Expected Behavior

I can define a PipelineRun with only a Tasks timeout, and no Pipeline timeout, by using timeouts.tasks = some amount of time and timeouts.pipeline = 0 (which corresponds to no timeout).

Actual Behavior

apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
  name: my-pipeline-run
spec:
  pipelineRef:
    name: my-pipeline
  timeouts:
    tasks: "1m"
    pipeline: "0"

Error from server (BadRequest): error when creating "timeouts/sleep-pipeline.yaml": admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: invalid value: 1m0s should be <= pipeline duration: spec.timeouts.tasks

Additional Info

  • Kubernetes version:

    Output of kubectl version:

WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:21:56Z", GoVersion:"go1.18.4", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.13-gke.900", GitCommit:"8f8dd9d389916c66dd26704a96f1ab4c5776f9df", GitTreeState:"clean", BuildDate:"2022-06-06T09:24:36Z", GoVersion:"go1.16.15b7", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.24) and server (1.21) exceeds the supported minor version skew of +/-1
  • Tekton Pipeline version:
Client version: 0.25.0
Pipeline version: devel
Triggers version: v0.20.2
@lbernick lbernick added the kind/bug Categorizes issue or PR as related to a bug. label Sep 8, 2022
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