Skip to content

Set EPP NAMESPACE env var in helm charts #1569

@liu-cong

Description

@liu-cong

What would you like to be added:
Right now the default pool-namespace is set to default, however this is typically the namespace that EPP pod runs in.

DefaultPoolNamespace = "default" // default for --pool-namespace

Instead, we can:

  • Use the specified namespace if provided.
  • If the flag is not provided, use the value from a NAMESPACE env var which can be derived from the metadata like so:
env:
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
  • If the env var is not provided, fall back to default

Why is this needed:

This provides a convenient default without the need to explicitly set when running in a namespace other than default.

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions