-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export: Add test to check that invalid Kubernetes manifests produce a…
… proper error Currently fails, to be fixed in the next commit
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 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
17 changes: 17 additions & 0 deletions
17
pkg/tanka/testdata/test-export-envs-broken/static-env/main.jsonnet
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 @@ | ||
{ | ||
deployment: { | ||
apiVersion: 'apps/v1', | ||
kind: 'Deployment', | ||
metadata: { | ||
name: 'foo', | ||
}, | ||
}, | ||
service: { | ||
apiVersion: 'v1', | ||
kind: 'Service', | ||
metadata: { | ||
// Error, this should be a string | ||
name: true, | ||
}, | ||
}, | ||
} |
14 changes: 14 additions & 0 deletions
14
pkg/tanka/testdata/test-export-envs-broken/static-env/spec.json
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,14 @@ | ||
{ | ||
"apiVersion": "tanka.dev/v1alpha1", | ||
"kind": "Environment", | ||
"metadata": { | ||
"name": "static", | ||
"labels": { | ||
"type": "static" | ||
} | ||
}, | ||
"spec": { | ||
"apiServer": "https://localhost", | ||
"namespace": "static" | ||
} | ||
} |