Skip to content

Commit

Permalink
Merge pull request #30 from garethjevans/convert-to-v1-crd
Browse files Browse the repository at this point in the history
chore: convert to apiextensions.k8s.io/v1 style crds
  • Loading branch information
garethjevans authored Mar 2, 2021
2 parents 2dbe659 + 588fdd5 commit 219f3de
Showing 1 changed file with 46 additions and 3 deletions.
49 changes: 46 additions & 3 deletions charts/captain-hook/templates/crds.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: hooks.captainhook.io
Expand All @@ -11,12 +11,55 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
group: captainhook.io
versions:
- name: v1alpha1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
# Schema
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
forwardURL:
type: string
body:
type: string
headers:
type: object
additionalProperties:
type: array
items:
type: string
status:
type: object
properties:
status:
type: string
attempts:
type: integer
message:
type: string
additionalPrinterColumns:
- name: name
type: string
jsonPath: .metadata.name
- name: forwardURL
type: string
jsonPath: .spec.forwardURL
- name: status
type: string
jsonPath: .status.status

scope: Namespaced
names:
kind: Hook
listKind: HookList
plural: hooks
shortNames:
- hook
singular: hook
scope: Namespaced
version: v1alpha1

0 comments on commit 219f3de

Please sign in to comment.