Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix indentation of results file (#2174)
- Loading branch information
1 parent
59e01de
commit 54a39d1
Showing
7 changed files
with
128 additions
and
124 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
e2e/testdata/fn-eval/missing-fn-config/.expected/results.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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
apiVersion: kpt.dev/v1alpha2 | ||
kind: FunctionResultList | ||
metadata: | ||
name: fnresults | ||
name: fnresults | ||
exitCode: 1 | ||
items: | ||
- image: gcr.io/kpt-fn/set-namespace:v0.1.3 | ||
stderr: '[error] /// : failed to configure function: input namespace cannot be empty' | ||
exitCode: 1 | ||
results: | ||
- message: 'failed to configure function: input namespace cannot be empty' | ||
severity: error | ||
- image: gcr.io/kpt-fn/set-namespace:v0.1.3 | ||
stderr: '[error] /// : failed to configure function: input namespace cannot be empty' | ||
exitCode: 1 | ||
results: | ||
- message: 'failed to configure function: input namespace cannot be empty' | ||
severity: error |
18 changes: 9 additions & 9 deletions
18
e2e/testdata/fn-eval/structured-results-in-stdout/.expected/results.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
apiVersion: kpt.dev/v1alpha2 | ||
kind: FunctionResultList | ||
metadata: | ||
name: fnresults | ||
name: fnresults | ||
exitCode: 0 | ||
items: | ||
- image: gcr.io/kpt-fn/search-replace:v0.1 | ||
exitCode: 0 | ||
results: | ||
- message: Mutated field value to "4" | ||
field: | ||
path: spec.replicas | ||
file: | ||
path: resources.yaml | ||
- image: gcr.io/kpt-fn/search-replace:v0.1 | ||
exitCode: 0 | ||
results: | ||
- message: Mutated field value to "4" | ||
field: | ||
path: spec.replicas | ||
file: | ||
path: resources.yaml |
90 changes: 45 additions & 45 deletions
90
e2e/testdata/fn-render/fnresult-fn-failure/.expected/results.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 |
---|---|---|
@@ -1,50 +1,50 @@ | ||
apiVersion: kpt.dev/v1alpha2 | ||
kind: FunctionResultList | ||
metadata: | ||
name: fnresults | ||
name: fnresults | ||
exitCode: 1 | ||
items: | ||
- image: gcr.io/kpt-fn/kubeval:v0.1.1 | ||
exitCode: 1 | ||
results: | ||
- message: selector is required | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: selector | ||
file: | ||
path: resources.yaml | ||
- message: template is required | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: template | ||
file: | ||
path: resources.yaml | ||
- message: 'Invalid type. Expected: [integer,null], given: string' | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: spec.replicas | ||
file: | ||
path: resources.yaml | ||
- message: | | ||
Validating arbitrary CRDs is not supported yet. You can skip them by setting ignore_missing_schemas or skip_kinds in the function config: | ||
ERR - stdin: Failed initializing schema file:///tmp/master-standalone-strict/custom-custom-v1.json: open /tmp/master-standalone-strict/custom-custom-v1.json: no such file or directory | ||
severity: error | ||
resourceRef: | ||
apiVersion: custom.io/v1 | ||
kind: Custom | ||
name: custom | ||
file: | ||
path: resources.yaml | ||
index: 1 | ||
- image: gcr.io/kpt-fn/kubeval:v0.1.1 | ||
exitCode: 1 | ||
results: | ||
- message: selector is required | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: selector | ||
file: | ||
path: resources.yaml | ||
- message: template is required | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: template | ||
file: | ||
path: resources.yaml | ||
- message: 'Invalid type. Expected: [integer,null], given: string' | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: spec.replicas | ||
file: | ||
path: resources.yaml | ||
- message: | | ||
Validating arbitrary CRDs is not supported yet. You can skip them by setting ignore_missing_schemas or skip_kinds in the function config: | ||
ERR - stdin: Failed initializing schema file:///tmp/master-standalone-strict/custom-custom-v1.json: open /tmp/master-standalone-strict/custom-custom-v1.json: no such file or directory | ||
severity: error | ||
resourceRef: | ||
apiVersion: custom.io/v1 | ||
kind: Custom | ||
name: custom | ||
file: | ||
path: resources.yaml | ||
index: 1 |
18 changes: 9 additions & 9 deletions
18
e2e/testdata/fn-render/fnresult-fn-success/.expected/results.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
apiVersion: kpt.dev/v1alpha2 | ||
kind: FunctionResultList | ||
metadata: | ||
name: fnresults | ||
name: fnresults | ||
exitCode: 0 | ||
items: | ||
- image: gcr.io/kpt-fn/search-replace:v0.1 | ||
exitCode: 0 | ||
results: | ||
- message: Mutated field value to "4" | ||
field: | ||
path: spec.replicas | ||
file: | ||
path: resources.yaml | ||
- image: gcr.io/kpt-fn/search-replace:v0.1 | ||
exitCode: 0 | ||
results: | ||
- message: Mutated field value to "4" | ||
field: | ||
path: spec.replicas | ||
file: | ||
path: resources.yaml |
90 changes: 45 additions & 45 deletions
90
e2e/testdata/fn-render/kubeval-failure/.expected/results.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 |
---|---|---|
@@ -1,50 +1,50 @@ | ||
apiVersion: kpt.dev/v1alpha2 | ||
kind: FunctionResultList | ||
metadata: | ||
name: fnresults | ||
name: fnresults | ||
exitCode: 1 | ||
items: | ||
- image: gcr.io/kpt-fn/kubeval:v0.1.1 | ||
exitCode: 1 | ||
results: | ||
- message: selector is required | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: selector | ||
file: | ||
path: resources.yaml | ||
- message: template is required | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: template | ||
file: | ||
path: resources.yaml | ||
- message: 'Invalid type. Expected: [integer,null], given: string' | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: spec.replicas | ||
file: | ||
path: resources.yaml | ||
- message: | | ||
Validating arbitrary CRDs is not supported yet. You can skip them by setting ignore_missing_schemas or skip_kinds in the function config: | ||
ERR - stdin: Failed initializing schema file:///tmp/master-standalone-strict/custom-custom-v1.json: open /tmp/master-standalone-strict/custom-custom-v1.json: no such file or directory | ||
severity: error | ||
resourceRef: | ||
apiVersion: custom.io/v1 | ||
kind: Custom | ||
name: custom | ||
file: | ||
path: resources.yaml | ||
index: 1 | ||
- image: gcr.io/kpt-fn/kubeval:v0.1.1 | ||
exitCode: 1 | ||
results: | ||
- message: selector is required | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: selector | ||
file: | ||
path: resources.yaml | ||
- message: template is required | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: template | ||
file: | ||
path: resources.yaml | ||
- message: 'Invalid type. Expected: [integer,null], given: string' | ||
severity: error | ||
resourceRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: nginx-deployment | ||
field: | ||
path: spec.replicas | ||
file: | ||
path: resources.yaml | ||
- message: | | ||
Validating arbitrary CRDs is not supported yet. You can skip them by setting ignore_missing_schemas or skip_kinds in the function config: | ||
ERR - stdin: Failed initializing schema file:///tmp/master-standalone-strict/custom-custom-v1.json: open /tmp/master-standalone-strict/custom-custom-v1.json: no such file or directory | ||
severity: error | ||
resourceRef: | ||
apiVersion: custom.io/v1 | ||
kind: Custom | ||
name: custom | ||
file: | ||
path: resources.yaml | ||
index: 1 |
14 changes: 7 additions & 7 deletions
14
e2e/testdata/fn-render/validate-resource-failure/.expected/results.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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
apiVersion: kpt.dev/v1alpha2 | ||
kind: FunctionResultList | ||
metadata: | ||
name: fnresults | ||
name: fnresults | ||
exitCode: 1 | ||
items: | ||
- image: gcr.io/kpt-fn/starlark:v0.1.0 | ||
stderr: 'fail: could not find httpbin deployment' | ||
exitCode: 1 | ||
results: | ||
- message: 'fail: could not find httpbin deployment' | ||
severity: error | ||
- image: gcr.io/kpt-fn/starlark:v0.1.0 | ||
stderr: 'fail: could not find httpbin deployment' | ||
exitCode: 1 | ||
results: | ||
- message: 'fail: could not find httpbin deployment' | ||
severity: error |
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