forked from fabric8io/kubernetes-client
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fabric8io#2510: Yaml containing aliases rejected due to FasterXML…
… bug Modify the way we deserialize Yaml objects. Load them into raw HashMap using SnakeYAML and then use Jackson to convert them to JSON and finally the required object
- Loading branch information
1 parent
8e3f4be
commit db1923b
Showing
5 changed files
with
101 additions
and
6 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
33 changes: 33 additions & 0 deletions
33
kubernetes-client/src/test/resources/test-pod-manifest-with-aliases.yml
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,33 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: test-pod-with-alias | ||
spec: | ||
nodeSelector: | ||
workload: build | ||
tolerations: | ||
- key: nodeType | ||
operator: Equal | ||
value: build | ||
effect: NoSchedule | ||
securityContext: | ||
runAsUser: 1000 | ||
runAsGroup: 1000 | ||
containers: | ||
- name: ubuntu | ||
image: ubuntu:bionic | ||
imagePullPolicy: Always | ||
command: | ||
- cat | ||
tty: true | ||
resources: | ||
requests: &id001 | ||
cpu: 100m | ||
- name: python3 | ||
image: python:3.7 | ||
imagePullPolicy: Always | ||
command: | ||
- cat | ||
tty: true | ||
resources: | ||
requests: *id001 |
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