Skip to content

Commit

Permalink
Merge pull request #1184 from christianhuth/dev-kubevirt
Browse files Browse the repository at this point in the history
added crd
  • Loading branch information
christianhuth authored Nov 18, 2024
2 parents 2ac5982 + 5232e86 commit 17b5346
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/kubevirt-manager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: kubevirt-manager
description: KubeVirt Web UI to manage the lifecycle of Virtual Machines and more
type: application
version: 0.0.2
version: 0.0.3
appVersion: "1.4.2"
home: https://github.com/christianhuth/helm-charts
icon: https://yt3.googleusercontent.com/oTCjudmpLXspEh3g5VraUfZ_1_PZxXXI6kgorNCI9kEqnDICrWEkNUmVGkEtA6WfRbT0GCzjeA=s160-c-k-c0x00ffffff-no-rj
Expand All @@ -13,8 +13,8 @@ sources:
- https://github.com/kubevirt-manager/kubevirt-manager
annotations:
artifacthub.io/changes: |
- kind: changed
description: default security context to satisfy pod security standard
- kind: added
description: crd for images.kubevirt-manager.io
artifacthub.io/screenshots: |
- title: Manage Virtual Machines lifecycle. Support for operations like start/stop/reboot, as well as pause/resume and scaling, directly from the Web Interface.
url: https://raw.githubusercontent.com/kubevirt-manager/kubevirt-manager/refs/heads/main/images/screenshot_01.png
Expand Down
78 changes: 78 additions & 0 deletions charts/kubevirt-manager/templates/kubevirt-manager/crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: images.kubevirt-manager.io
spec:
group: kubevirt-manager.io
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
x-kubernetes-validations:
- rule: "self.type.matches('^(http)|(gcs)|(s3)|(registry)|(pvc)$')"
message: "spec.type should be: http, registry, s3, gcs, pvc"
required:
- type
- readableName
oneOf:
- required: ["http"]
- required: ["registry"]
- required: ["s3"]
- required: ["gcs"]
- required: ["pvc"]
properties:
type:
type: string
credentials:
type: string
readableName:
type: string
readableDescription:
type: string
http:
type: object
properties:
url:
type: string
registry:
type: object
properties:
url:
type: string
s3:
type: object
properties:
url:
type: string
gcs:
type: object
properties:
url:
type: string
pvc:
type: object
properties:
name:
type: string
namespace:
type: string
additionalPrinterColumns:
- name: "Type"
type: "string"
jsonPath: ".spec.type"
- name: Age
type: date
jsonPath: .metadata.creationTimestamp
scope: Namespaced
names:
plural: images
singular: image
kind: Image
shortNames:
- img

0 comments on commit 17b5346

Please sign in to comment.