From 4945cd1c2e7f1ce98f81846f95721d7da203cab4 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 26 Nov 2024 19:44:34 +0100 Subject: [PATCH] test(deployment): imagePullSecrets --- unittests/deployment/deployment.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/unittests/deployment/deployment.yaml b/unittests/deployment/deployment.yaml index 02177e5..228a305 100644 --- a/unittests/deployment/deployment.yaml +++ b/unittests/deployment/deployment.yaml @@ -73,6 +73,8 @@ tests: - equal: path: spec.template.spec.hostNetwork value: false + - notExists: + path: spec.template.spec.imagePullSecrets - notExists: path: spec.template.spec.nodeSelector - notExists: @@ -251,6 +253,18 @@ tests: path: spec.template.spec.subdomain value: exporters.internal +- it: Test imagePullSecrets + set: + deployment.imagePullSecrets: + - name: my-pull-secret + - name: my-special-secret + asserts: + - equal: + path: spec.template.spec.imagePullSecrets + value: + - name: my-pull-secret + - name: my-special-secret + - it: Test nodeSelector set: deployment.nodeSelector: