Skip to content

Commit

Permalink
Add CRD Validation (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Apr 1, 2018
1 parent f3dac60 commit c7ad227
Show file tree
Hide file tree
Showing 13 changed files with 467 additions and 594 deletions.
2 changes: 0 additions & 2 deletions apis/voyager/v1beta1/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func (r Ingress) CustomResourceDefinition() *apiextensions.CustomResourceDefinit
Plural: ResourcePluralIngress,
Singular: ResourceSingularIngress,
Kind: ResourceKindIngress,
ListKind: ResourceKindIngress + "List",
ShortNames: []string{"ing"},
ResourceScope: string(apiextensions.NamespaceScoped),
Labels: crdutils.Labels{
Expand All @@ -31,7 +30,6 @@ func (c Certificate) CustomResourceDefinition() *apiextensions.CustomResourceDef
Plural: ResourcePluralCertificate,
Singular: ResourceSingularCertificate,
Kind: ResourceKindCertificate,
ListKind: ResourceKindCertificate + "List",
ShortNames: []string{"cert"},
ResourceScope: string(apiextensions.NamespaceScoped),
Labels: crdutils.Labels{
Expand Down
6 changes: 4 additions & 2 deletions apis/voyager/v1beta1/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ spec:
group: voyager.appscode.com
names:
kind: Ingress
listKind: IngressList
plural: ingresses
shortNames:
- ing
Expand Down Expand Up @@ -109,6 +108,8 @@ spec:
errorPage:
type: string
headers:
additionalProperties:
type: string
type: object
secretName:
type: string
Expand Down Expand Up @@ -139,6 +140,8 @@ spec:
type: string
type: array
nodeSelector:
additionalProperties:
type: string
description: 'NodeSelector is a selector which must be true for the
pod to fit on a node. Selector which must match a node''s labels for
the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/'
Expand Down Expand Up @@ -376,7 +379,6 @@ spec:
group: voyager.appscode.com
names:
kind: Certificate
listKind: CertificateList
plural: certificates
shortNames:
- cert
Expand Down
8 changes: 4 additions & 4 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 41 additions & 10 deletions vendor/github.com/pkg/errors/stack.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/gopkg.in/ini.v1/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c7ad227

Please # to comment.