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

Add openAPIV3Schema validation to Helm CRD #1253

Merged
merged 4 commits into from
Jul 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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