-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from jmelis/add-resources
Add resources query
- Loading branch information
Showing
9 changed files
with
285 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
"$schema": /metaschema-1.json | ||
version: '1.0' | ||
type: object | ||
|
||
additionalProperties: false | ||
properties: | ||
"$schema": | ||
type: string | ||
enum: | ||
- /openshift/namespace-1.yml | ||
|
||
labels: | ||
"$ref": "/common-1.json#/definitions/labels" | ||
|
||
name: | ||
type: string | ||
|
||
description: | ||
type: string | ||
|
||
cluster: | ||
"$ref": "/common-1.json#/definitions/crossref" | ||
"$schemaRef": "/openshift/cluster-1.yml" | ||
|
||
managedRoles: | ||
type: array | ||
items: | ||
type: string | ||
enum: | ||
- view | ||
- edit | ||
- admin | ||
|
||
managedResourceTypes: | ||
type: array | ||
items: | ||
type: string | ||
# For the moment we want to limit this list. | ||
# A complete list can be obtained from here: | ||
# oc api-resources --verbs=list --no-headers | awk '{print $NF}' | sort -u | ||
enum: | ||
- ConfigMap | ||
|
||
openshiftResources: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
provider: | ||
type: string | ||
oneOf: | ||
- additionalProperties: false | ||
properties: | ||
provider: | ||
type: string | ||
enum: | ||
- resource | ||
path: | ||
type: string | ||
required: | ||
- path | ||
required: | ||
- provider | ||
|
||
required: | ||
- "$schema" | ||
- labels | ||
- name | ||
- description | ||
- cluster |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
{ | ||
"/cluster.yml": { | ||
"name": "example cluster", | ||
"labels": {}, | ||
"serverUrl": "https://example.com", | ||
"$schema": "/openshift/cluster-1.yml", | ||
"description": "example cluster" | ||
"resources": {}, | ||
"data": { | ||
"/cluster.yml": { | ||
"name": "example cluster", | ||
"labels": {}, | ||
"serverUrl": "https://example.com", | ||
"$schema": "/openshift/cluster-1.yml", | ||
"description": "example cluster" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.
I don't think this works? Perhaps you meant resources.values()?