Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Add openAPIV3Schema validation to Helm CRD (#1253)
Browse files Browse the repository at this point in the history
* Add openAPIV3Schema validation to Helm CRD
- make git path and values required fields
- set FluxHelmRelease short name to fhr
- prep for multi-version CRD
- cleanup old chart archives
  • Loading branch information
stefanprodan authored Jul 26, 2018
1 parent dfcfd33 commit ed45f41
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
Binary file removed chart/flux-0.1.0.tgz
Binary file not shown.
Binary file removed chart/flux-0.1.1.tgz
Binary file not shown.
21 changes: 21 additions & 0 deletions chart/flux/templates/helm-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,27 @@ spec:
kind: FluxHelmRelease
listKind: FluxHelmReleaseList
plural: fluxhelmreleases
shortNames:
- fhr
scope: Namespaced
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
validation:
openAPIV3Schema:
properties:
spec:
required:
- chartGitPath
- values
properties:
releaseName:
type: string
pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
chartGitPath:
type: string
values:
type: object
{{- end -}}
21 changes: 21 additions & 0 deletions deploy-helm/flux-helm-release-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,26 @@ spec:
kind: FluxHelmRelease
listKind: FluxHelmReleaseList
plural: fluxhelmreleases
shortNames:
- fhr
scope: Namespaced
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
validation:
openAPIV3Schema:
properties:
spec:
required:
- chartGitPath
- values
properties:
releaseName:
type: string
pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
chartGitPath:
type: string
values:
type: object

0 comments on commit ed45f41

Please sign in to comment.