Skip to content

kube-state-metrics should support running if config file doesn't exist at startup #2700

@rashmichandrashekar

Description

@rashmichandrashekar

What would you like to be added:
Currently, k-s-m expects the file provided in the config parameter to exist at startup. We are planning to take dependency on the config file by mounting it as an optional configmap which users can use to optionally override k-s-m configuration.

Why is this needed:
We are planning to take dependency on the config file but mounting it as an optional configmap. In this case, the users can create a configmap with options at any time and the k-s-m pod should be able to do a hot reload(already supported in k-s-m).

Describe the solution you'd like
k-s-m should continue to run when file doesnt exist and watch for file creation(file create watch functionality already exists today)

Additional context

Metadata

Metadata

Labels

kind/featureCategorizes issue or PR as related to a new feature.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