-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🧪 adds manifest tests #761
🧪 adds manifest tests #761
Conversation
Signed-off-by: bpsoos <[email protected]>
Signed-off-by: bpsoos <[email protected]>
cb68d39
to
9dcffb2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #761 +/- ##
=======================================
Coverage 56.16% 56.16%
=======================================
Files 31 31
Lines 3105 3105
=======================================
Hits 1744 1744
Misses 1222 1222
Partials 139 139 ☔ View full report in Codecov by Sentry. |
How about running the script directly in github actions workflow, without building or running images? For local run, we can require users to install kubeconform before running. Can you also share some negative test results? |
@chengfang Negative test results:
Modifications made to make the test fail: diff --git a/manifests/base/deployment/argocd-image-updater-deployment.yaml b/manifests/base/deployment/argocd-image-updater-deployment.yaml
index 5a38be1..7a11376 100644
--- a/manifests/base/deployment/argocd-image-updater-deployment.yaml
+++ b/manifests/base/deployment/argocd-image-updater-deployment.yaml
@@ -7,7 +7,7 @@ metadata:
app.kubernetes.io/component: controller
name: argocd-image-updater
spec:
- selector:
+ selectorr:
matchLabels:
app.kubernetes.io/name: argocd-image-updater
strategy:
diff --git a/manifests/install.yaml b/manifests/install.yaml
index 39282cb..000e255 100644
--- a/manifests/install.yaml
+++ b/manifests/install.yaml
@@ -238,7 +238,7 @@ spec:
name: ssh-known-hosts
- configMap:
name: argocd-image-updater-ssh-config
- optional: true
+ optional: true
name: ssh-config
- name: ssh-signing-key
secret: |
Okay, I can make these modifications |
Signed-off-by: bpsoos <[email protected]>
Signed-off-by: bpsoos <[email protected]>
Signed-off-by: bpsoos <[email protected]>
This reverts commit d1cb0b8. Signed-off-by: bpsoos <[email protected]>
This reverts commit 0ea1ce8. Signed-off-by: bpsoos <[email protected]>
@chengfang what do you think about this version? also, in CI this what it looks like now if a manifest is incorrect: https://github.com/argoproj-labs/argocd-image-updater/actions/runs/9701702056/job/26775909356 |
Signed-off-by: bpsoos <[email protected]>
Signed-off-by: bpsoos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@bpsoos thanks! |
Signed-off-by: bpsoos <[email protected]>
resolves #752
This PR adds a make target
test-manifests
that runs a kubeconform based test to validate the kubernetes/kustomize manifests against their schemas.