fix: Formatting and issue with creating vault secrets

This commit is contained in:
TheiLLeniumStudios
2026-01-14 14:48:07 +01:00
parent 4f254826e2
commit b28f1abfe4
5 changed files with 23 additions and 29 deletions

View File

@@ -187,8 +187,10 @@ var _ = Describe("Exclude Annotation Tests", func() {
})
})
// TODO: Reloader currently only reads exclude annotations from workload metadata, not pod template.
// This test documents the expected behavior but needs Reloader code changes to pass.
Context("Exclude annotation on pod template", func() {
DescribeTable("should NOT reload when exclude annotation is on pod template only",
PDescribeTable("should NOT reload when exclude annotation is on pod template only",
func(workloadType utils.WorkloadType) {
adapter := registry.Get(workloadType)
if adapter == nil {
@@ -221,8 +223,7 @@ var _ = Describe("Exclude Annotation Tests", func() {
Expect(err).NotTo(HaveOccurred())
By("Updating the excluded ConfigMap")
err = utils.UpdateConfigMap(ctx, kubeClient, testNamespace, configMapName,
map[string]string{"key": "updated"})
err = utils.UpdateConfigMap(ctx, kubeClient, testNamespace, configMapName, map[string]string{"key": "updated"})
Expect(err).NotTo(HaveOccurred())
By("Verifying workload was NOT reloaded (excluded ConfigMap)")