-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide all reference correlation overlaps behind a single warning
The specific issues are revealed when `--verbose` output is enabled. Signed-off-by: Jim Ramsay <[email protected]>
- Loading branch information
Showing
10 changed files
with
75 additions
and
17 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
2 changes: 2 additions & 0 deletions
2
pkg/compare/testdata/TwoTemplatesWithSameKindNamespace/localVerboseerr.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,2 @@ | ||
|
||
error code:1 |
23 changes: 23 additions & 0 deletions
23
pkg/compare/testdata/TwoTemplatesWithSameKindNamespace/localVerboseout.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,23 @@ | ||
More than one template with same apiVersion, metadata_namespace, kind. By Default for each Cluster CR that is correlated to one of these templates the template with the least number of diffs will be used. To use a different template for a specific CR specify it in the diff-config (-c flag) Template names are: apps.v1.DaemonSet.kube-system.kindnet.yaml, apps.v1.DaemonSet.kube-system.kindnet2.yaml | ||
********************************** | ||
|
||
Cluster CR: apps/v1_DaemonSet_SomeNS_Name | ||
Reference File: apps.v1.DaemonSet.kube-system.kindnet.yaml | ||
Diff Output: diff -u -N TEMP/apps-v1_daemonset_somens_name TEMP/apps-v1_daemonset_somens_name | ||
--- TEMP/apps-v1_daemonset_somens_name DATE | ||
+++ TEMP/apps-v1_daemonset_somens_name DATE | ||
@@ -7,4 +7,5 @@ | ||
app: kindnet | ||
k8s-app: kindnet | ||
tier: node | ||
+ name: Name | ||
namespace: SomeNS | ||
|
||
********************************** | ||
|
||
Summary | ||
CRs with diffs: 1/1 | ||
No validation issues with the cluster | ||
No CRs are unmatched to reference CRs | ||
Metadata Hash: $METADATA_HASH$ | ||
No patched CRs |
2 changes: 1 addition & 1 deletion
2
pkg/compare/testdata/TwoTemplatesWithSameKindNamespace/localout.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
15 changes: 15 additions & 0 deletions
15
pkg/compare/testdata/TwoTemplatesWithSameapiVersionKindNameNamespace/localVerboseout.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,15 @@ | ||
More than one template with same apiVersion, metadata_name, metadata_namespace, kind. By Default for each Cluster CR that is correlated to one of these templates the template with the least number of diffs will be used. To use a different template for a specific CR specify it in the diff-config (-c flag) Template names are: apps.v1.DaemonSet.kube-system.kindnet.yaml, apps.v1.DaemonSet.kube-system.kindnet.yaml | ||
********************************** | ||
|
||
Cluster CR: apps/v1_DaemonSet_SomeNS_Name | ||
Reference File: apps.v1.DaemonSet.kube-system.kindnet.yaml | ||
Diff Output: None | ||
|
||
********************************** | ||
|
||
Summary | ||
CRs with diffs: 0/1 | ||
No validation issues with the cluster | ||
No CRs are unmatched to reference CRs | ||
Metadata Hash: $METADATA_HASH$ | ||
No patched CRs |
2 changes: 1 addition & 1 deletion
2
pkg/compare/testdata/TwoTemplatesWithSameapiVersionKindNameNamespace/localout.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
2 changes: 1 addition & 1 deletion
2
...ompare/testdata/WhenUsingDiffAllFlag-AllUnmatchedResourcesAppearInSummary/localout.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