Skip to content

Commit

Permalink
feat: implement crd validation
Browse files Browse the repository at this point in the history
  • Loading branch information
moolen committed Nov 8, 2019
1 parent a2a9dff commit 9182429
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions custom-resource-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,60 @@
"plural": "externalsecrets",
"singular": "externalsecret"
},
"validation": {
"openAPIV3Schema": {
"type": "object",
"required": [
"spec"
],
"properties": {
"spec": {
"type": "object",
"required": [
"backendType",
"data"
],
"properties": {
"backendType": {
"type": "string",
"enum": [
"secretsManager",
"systemManager"
]
},
"roleArn": {
"type": "string"
},
"type": {
"type": "string"
},
"data": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"key",
"name"
],
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"property": {
"type": "string"
}
}
}
}
}
}
}
}
},
"subresources": {
"status": {}
}
Expand Down

0 comments on commit 9182429

Please sign in to comment.