Skip to content
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

fix: do not snapshot metadata #29

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions charts/pgweb/tests/__snapshot__/pgweb_test.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ should render default:
component: pgweb
type: ClusterIP
3: |
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: pgweb
helm.sh/chart: pgweb-1.9.4
name: RELEASE-NAME-pgweb
RELEASE-NAME-pgweb
4: |
ServiceAccount
should render with HPA:
1: |
selector:
Expand Down Expand Up @@ -99,12 +96,9 @@ should render with HPA:
kind: Deployment
name: pgweb
4: |
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: pgweb
helm.sh/chart: pgweb-1.9.4
name: RELEASE-NAME-pgweb
RELEASE-NAME-pgweb
5: |
ServiceAccount
should render with ingress:
1: |
rules:
Expand Down
10 changes: 8 additions & 2 deletions charts/pgweb/tests/pgweb_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ tests:
count: 0
- template: "serviceaccount.yaml"
matchSnapshot:
path: metadata
path: metadata.name
- template: "serviceaccount.yaml"
matchSnapshot:
path: kind
- it: should render with HPA
values:
- values-hpa.yaml
Expand All @@ -39,7 +42,10 @@ tests:
path: spec
- template: "serviceaccount.yaml"
matchSnapshot:
path: metadata
path: metadata.name
- template: "serviceaccount.yaml"
matchSnapshot:
path: kind
- it: should render with ingress
values:
- values-ingress.yaml
Expand Down