Skip to content

Does not support lifecycle, stopSignal, in pod spec. #16463

Open

Description

@simwr872

What version of Knative?

1.21.1

Expected Behavior

I expect v1.RevisionSpec to embed members of PodSpec, including containers.lifecycle.StopSignal, as mentioned in the documentation https://knative.dev/docs/serving/reference/serving-api/#serving.knative.dev/v1.RevisionSpec. Relevant kubernetes docs (1.33+), https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#lifecycle-v1-core.

Actual Behavior

Trying to apply a knative service manifest specifying lifecycle within the podspec yields:

Error from server (BadRequest): error when creating "knative-test.yml": Service in version "v1" cannot be handled as a Service: strict decoding error: unknown field "spec.template.spec.containers[0].lifecycle"

Steps to Reproduce the Problem

Apply the below manifest.

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: lifecycle-test
spec:
  template:
    spec:
      containers:
        - image: gcr.io/knative-samples/helloworld-go
          ports:
            - containerPort: 8080
          env:
            - name: TARGET
              value: "World"
          lifecycle:
            stopSignal: SIGTERM

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug.
    on Mar 14, 2026
  2. dprotaso commented on Mar 14, 2026

    @dprotaso
    Member

    I think we should support this when the feature is not alpha - which means it's off by default in a lot of k8s providers.

    K8s docs shows

    FEATURE STATE: Kubernetes v1.33 [alpha](disabled by default)

  3. added this to the Icebox milestone on Mar 14, 2026
  4. Aniket1260 commented on Aug 31, 2026

    @Aniket1260

    @dprotaso Can I work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.triage/acceptedIssues which should be fixed (post-triage)

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions