You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KLM needs to read the maintenance window policies. It was agreed that for now it is sufficient to read it on startup (no continuous watch on the policy). Until it is rolled out to production, the policy config map and volume mount are only added to the local test kustomization target. Therefore, KLM should not error out when not finding the policy file. Instead, it should work with an empty policy (no maintenance windows). With this, KLM should remain functional even without maintenance window policy config map mounted.
AC
kustomization for local setup
creates config map for a default maintenance window policy
mounts the config map
on startup, KLM reads the mounted file and resolves the maintenance window policy via the resolver module
read maintenance window policies cached
if the file is not found, it defaults to empty maintenance window policy (no maintenane windows)
existing e2e tests remain functional
new e2e test verifies that that the maintenance window policy can be read and resolved, and the default in case there is no file
create a follow-up ticket to test the resolver more detailed and include test cases for this (it may also require input from SRE to come up with reasonable testdata as this is rather domain specific)
unit tests verify the proper delegation of the maintenance window policy resolving via the resolver module
The text was updated successfully, but these errors were encountered:
Description
Split out of #2101
KLM needs to read the maintenance window policies. It was agreed that for now it is sufficient to read it on startup (no continuous watch on the policy). Until it is rolled out to production, the policy config map and volume mount are only added to the local test kustomization target. Therefore, KLM should not error out when not finding the policy file. Instead, it should work with an empty policy (no maintenance windows). With this, KLM should remain functional even without maintenance window policy config map mounted.
AC
The text was updated successfully, but these errors were encountered: