-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from nocturnalastro/defaultRefList
CNF-14746: Add includes to fields to omit
- Loading branch information
Showing
27 changed files
with
751 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...are/testdata/ReferenceV2DiffinCustomOmittedFieldsIsntShown/local_basic_include_out.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Summary | ||
CRs with diffs: 0/3 | ||
No validation issues with the cluster | ||
No CRs are unmatched to reference CRs | ||
Metadata Hash: d1b43073d9263292a98639abf0845c1f68a53f21a210429b1a71d3b8b47b4d14 | ||
No patched CRs |
6 changes: 6 additions & 0 deletions
6
pkg/compare/testdata/ReferenceV2DiffinCustomOmittedFieldsIsntShown/local_basic_out.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Summary | ||
CRs with diffs: 0/3 | ||
No validation issues with the cluster | ||
No CRs are unmatched to reference CRs | ||
Metadata Hash: aec723b5a3f391084f76a8815354719badc5306910b6025df025ed535b6ecead | ||
No patched CRs |
4 changes: 4 additions & 0 deletions
4
.../testdata/ReferenceV2DiffinCustomOmittedFieldsIsntShown/local_circular_include_err.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
error: circular import found deployment -> deployment | ||
circular import found includeMe -> includeWithDepth -> includeMe | ||
circular import found includeWithDepth -> includeMe -> includeWithDepth | ||
error code:2 |
Empty file.
6 changes: 6 additions & 0 deletions
6
...mpare/testdata/ReferenceV2DiffinCustomOmittedFieldsIsntShown/local_leading_dot_out.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Summary | ||
CRs with diffs: 0/3 | ||
No validation issues with the cluster | ||
No CRs are unmatched to reference CRs | ||
Metadata Hash: 8f628171c03544439e58089ab3c89e3adbe1534287e505fde2add79db82cca96 | ||
No patched CRs |
6 changes: 6 additions & 0 deletions
6
...mpare/testdata/ReferenceV2DiffinCustomOmittedFieldsIsntShown/local_non_default_out.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Summary | ||
CRs with diffs: 0/3 | ||
No validation issues with the cluster | ||
No CRs are unmatched to reference CRs | ||
Metadata Hash: aefa16fbc84fb41ae77b36a53637b0a4e5147ddcbb892d8bfa877080714b4c0e | ||
No patched CRs |
6 changes: 6 additions & 0 deletions
6
pkg/compare/testdata/ReferenceV2DiffinCustomOmittedFieldsIsntShown/local_quoted_out.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Summary | ||
CRs with diffs: 0/3 | ||
No validation issues with the cluster | ||
No CRs are unmatched to reference CRs | ||
Metadata Hash: b276bc9ca9b157818bea3e7a6747c0c6acaa2dfbeb9bfe8dab6ec9b00d8a843d | ||
No patched CRs |
19 changes: 19 additions & 0 deletions
19
...e/testdata/ReferenceV2DiffinCustomOmittedFieldsIsntShown/reference/deploymentMetrics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
labels: | ||
k8s-app: dashboard-metrics-scraper | ||
name: {{ .metadata.name }} | ||
namespace: kubernetes-dashboard | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
k8s-app: dashboard-metrics-scraper | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: dashboard-metrics-scraper | ||
spec: | ||
{{ if .spec.template.spec }}{{ .spec.template.spec | toYaml | indent 6 }}{{ end }} |
15 changes: 15 additions & 0 deletions
15
...pare/testdata/ReferenceV2DiffinCustomOmittedFieldsIsntShown/reference/metadata_basic.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v2 | ||
parts: | ||
- name: ExamplePart | ||
components: | ||
- name: Dashboard | ||
allOf: | ||
- path: deploymentMetrics.yaml | ||
|
||
fieldsToOmit: | ||
defaultOmitRef: deployment | ||
items: | ||
deployment: | ||
- pathToKey: spec.selector.matchLabels.k8s-app | ||
- pathToKey: metadata.labels.k8s-app | ||
- pathToKey: spec.template.metadata.labels.k8s-app |
17 changes: 17 additions & 0 deletions
17
...tdata/ReferenceV2DiffinCustomOmittedFieldsIsntShown/reference/metadata_basic_include.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v2 | ||
parts: | ||
- name: ExamplePart | ||
components: | ||
- name: Dashboard | ||
allOf: | ||
- path: deploymentMetrics.yaml | ||
|
||
fieldsToOmit: | ||
defaultOmitRef: deployment | ||
items: | ||
deployment: | ||
- include: includeMe | ||
includeMe: | ||
- pathToKey: spec.selector.matchLabels.k8s-app | ||
- pathToKey: metadata.labels.k8s-app | ||
- pathToKey: spec.template.metadata.labels.k8s-app |
Oops, something went wrong.