name: "Bug Report: Webhook"
description: Report a bug with the Kyverno webhook.
title: "[Bug] "
labels: ["bug", "triage"]
body:
  - type: markdown
    attributes:
      value: |
        Please tell us about the bug, but before doing so ensure you have read the [documentation](https://kyverno.io/docs/).
  - type: dropdown
    id: kyverno-version
    attributes:
      label: Kyverno Version
      description: What version of Kyverno are you running?
      options:
        - 1.4.x
        - 1.5.x
        - 1.6.0
        - 1.6.1
        - 1.6.2
        - 1.6.3
        - 1.7.0
        - 1.7.1
        - 1.7.2
        - 1.7.3
        - 1.7.4
        - 1.7.5
        - 1.8.0
        - 1.8.1
        - 1.8.2
        - 1.8.3
    validations:
      required: true
  - type: dropdown
    id: k8s-version
    attributes:
      label: Kubernetes Version
      description: What version of Kubernetes are you running?
      options:
        - 1.20.x
        - 1.21.x
        - 1.22.x
        - 1.23.x
        - 1.24.x
        - 1.25.x
    validations:
      required: true
  - type: dropdown
    id: k8s-platform
    attributes:
      label: Kubernetes Platform
      description: What Kubernetes platform are you using?
      options:
        - EKS
        - GKE
        - AKS
        - KinD
        - Minikube
        - K3d
        - OpenShift
        - VMware Tanzu (specify in description)
        - Bare metal
        - Other (specify in description)
    validations:
      required: true
  - type: dropdown
    id: kyverno-rule
    attributes:
      label: Kyverno Rule Type
      description: What Kyverno rule type?
      options:
        - Validate
        - Mutate
        - Generate
        - verifyImages
        - Other
    validations:
      required: true
  - type: textarea
    id: bug-description
    attributes:
      label: Description
      description: Describe what happened.
      # placeholder: Tell us what you see!
      # value: "asdf"
    validations:
      required: true
  - type: textarea
    id: bug-reproduce-steps
    attributes:
      label: Steps to reproduce
      description: >-
        What are the exact steps needed to reproduce the bug you experienced?
        Please provide any and all manifests needed to reproduce your issue, including Kyverno policies and test Kubernetes resources.
        GitHub supports [syntax highlighting](https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting) with code blocks.
      # placeholder: Tell us what you see!
      value: |-
        1. 
    validations:
      required: true
  - type: textarea
    id: bug-expectations
    attributes:
      label: Expected behavior
      description: What did you expect to happen?
      # placeholder: Tell us what you see!
      # value: "asdf"
    validations:
      required: true
  - type: textarea
    id: bug-screenshots
    attributes:
      label: Screenshots
      description: >-
        If you have any screenshots that would help, please paste them below.
        GitHub allows you to copy-and-paste directly from the clipboard into the text area.
        **Please avoid taking screenshots of either log or terminal output**; paste any textual output in the logs section below.
      # placeholder: Tell us what you see!
      # value: "asdf"
    validations:
      required: false
  - type: textarea
    id: logs
    attributes:
      label: Kyverno logs
      description: >-
        Please copy and paste any relevant log output.
        This will be automatically formatted into code, so no need for backticks.
        For help on how to view Pod logs in Kubernetes, see [here](https://kubernetes.io/docs/tasks/debug-application-cluster/debug-running-pod/#examine-pod-logs).
        For guidance on how to enable more verbose log output in Kyverno, see [the documentation](https://kyverno.io/docs/troubleshooting/#policies-are-partially-applied).
      render: shell
  - type: input
    id: slack
    attributes:
      label: Slack discussion
      description: >-
        If this issue is the result of a discussion thread on Slack, please provide the link to the discussion for reference.
      # placeholder: ex. email@example.com
    validations:
      required: false
  - type: checkboxes
    id: troubleshooting
    attributes:
      label: Troubleshooting
      description: >-
        By submitting this issue, you agree that you have performed some basic attempts at researching and solving your problem.
      options:
        - label: I have read and followed the documentation AND the [troubleshooting guide](https://kyverno.io/docs/troubleshooting/).
          required: true
        - label: I have searched other issues in this repository and mine is not recorded.
          required: true