Skip to content

oathkeeper PodDisruptionBudget helm template is missing namespace metadata #882

Description

@naohiroo

Preflight checklist

Ory Network Project

No response

Describe the bug

Reproducing the bug

  1. Run the following command:
    helm template my-release ory/oathkeeper \
      --version 0.62.1 \
      --namespace my-namespace \
      --set pdb.enabled=true \
      --show-only templates/pdb.yaml
  2. Check the output:
    # Source: oathkeeper/templates/pdb.yaml
    apiVersion: policy/v1
    kind: PodDisruptionBudget
    metadata:
      name: my-release-oathkeeper
    spec:
      selector:
        matchLabels:
          app.kubernetes.io/name: oathkeeper
          app.kubernetes.io/instance: my-release

Relevant log output

Relevant configuration

Version

v0.62.1

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

It should be the following:

# Source: oathkeeper/templates/pdb.yaml
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: my-release-oathkeeper
  namespace: my-namespace
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: oathkeeper
      app.kubernetes.io/instance: my-release

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions