Skip to content

Commit

Permalink
Merge pull request bitnami-labs#57 from anguslees/crd-schema
Browse files Browse the repository at this point in the history
Add an openapi schema declaration to the CRD
  • Loading branch information
anguslees authored Sep 22, 2017
2 parents dd7c385 + a2490c3 commit 2748dfb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions sealedsecret-crd.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,25 @@ local crd = {
kind: "SealedSecret",
singular: "sealedsecret",
plural: self.singular + "s",
listKind: self.kind + "List",
},
validation: {
openAPIV3Schema: {
"$schema": "http://json-schema.org/draft-04/schema#",
type: "object",
description: "A sealed (encrypted) Secret",
properties: {
spec: {
type: "object",
properties: {
data: {
type: "string",
pattern: "^[^A-Za-z0-9+/=]*$", // base64
},
},
},
},
},
},
},
};
Expand Down

0 comments on commit 2748dfb

Please sign in to comment.