-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kubernetes): teach KubernetesManifest to support kubernetes resou…
…rces where the spec is not a map (#5814) * fix(kubernetes): teach KubernetesManifest to support kubernetes resources where the spec is not a map For example, the openAPIV3Schema in a custom resource definition defines its spec property as an array, e.g. $ cat mycrd.json | jq -r .spec.versions[0].schema.openAPIV3Schema.properties.spec.type array * test(kubernetes): verify that KubernetesDeployManifestOperation can deploy a custom resource whose spec is a list
- Loading branch information
Showing
5 changed files
with
71 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
16 changes: 16 additions & 0 deletions
16
...flix/spinnaker/clouddriver/kubernetes/description/manifest/crd-manifest-spec-is-list.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,16 @@ | ||
{ | ||
"apiVersion": "test.example/v1alpha1", | ||
"kind": "Custom1", | ||
"metadata": { | ||
"labels": { | ||
"app": "app1" | ||
}, | ||
"name": "default-custom1" | ||
}, | ||
"spec": [ | ||
{ | ||
"id": "my-id", | ||
"description": "my-description" | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
...rces/com/netflix/spinnaker/clouddriver/kubernetes/op/deploy/crd-manifest-spec-is-list.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,9 @@ | ||
apiVersion: test.example/v1alpha1 | ||
kind: Custom1 | ||
metadata: | ||
name: default-custom1 | ||
labels: | ||
app: app1 | ||
spec: | ||
- id: my-id | ||
description: my-description |