Skip to content
This repository was archived by the owner on Jan 27, 2022. It is now read-only.

Commit 89c9443

Browse files
committed
Update CRD to aligned with TopoLVM 0.6.0
1 parent 1a8c2d9 commit 89c9443

3 files changed

Lines changed: 59 additions & 68 deletions

File tree

charts/topolvm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: 0.6.0
33
description: Topolvm
44
name: topolvm
5-
version: 1.0.0
5+
version: 1.0.1
66
home: https://github.com/topolvm/topolvm
77
sources:
88
- https://github.com/topolvm/helm/tree/master/charts/topolvm

charts/topolvm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The chart can be customized using the following configurable parameters:
2424
| Parameter | Description | Default |
2525
| ------------------------------- | ----------------------------------------------------------------------------------------------------| -----------------------------|
2626
| `image.repository` | TopoLVM Container image name | `quay.io/topolvm/topolvm` |
27-
| `image.tag` | TopoLVM Container image tag | `0.5.3` |
27+
| `image.tag` | TopoLVM Container image tag | `0.6.0` |
2828
| `image.pullPolicy` | TopoLVM Container pull policy | `IfNotPresent` |
2929
| `controller.replicaCount` | Number of TopoLVM controllers pods to deploy | `2` |
3030
| `podSecurityPolicy.create` | Specify if a pod security policy must be created | `true` |

charts/topolvm/templates/crd/crd.yaml

Lines changed: 57 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{ if .Values.crd.create }}
2-
apiVersion: apiextensions.k8s.io/v1beta1
2+
apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.2.7
6+
controller-gen.kubebuilder.io/version: v0.4.0
77
creationTimestamp: null
88
name: logicalvolumes.topolvm.cybozu.com
99
labels:
@@ -16,74 +16,65 @@ spec:
1616
plural: logicalvolumes
1717
singular: logicalvolume
1818
scope: Cluster
19-
subresources:
20-
status: {}
21-
validation:
22-
openAPIV3Schema:
23-
description: LogicalVolume is the Schema for the logicalvolumes API
24-
properties:
25-
apiVersion:
26-
description: 'APIVersion defines the versioned schema of this representation
27-
of an object. Servers should convert recognized schemas to the latest
28-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
29-
type: string
30-
kind:
31-
description: 'Kind is a string value representing the REST resource this
32-
object represents. Servers may infer this from the endpoint the client
33-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
34-
type: string
35-
metadata:
36-
type: object
37-
spec:
38-
description: LogicalVolumeSpec defines the desired state of LogicalVolume
39-
properties:
40-
deviceClass:
41-
type: string
42-
name:
43-
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
44-
Important: Run "make" to regenerate code after modifying this file'
45-
type: string
46-
nodeName:
47-
type: string
48-
size:
49-
anyOf:
50-
- type: integer
51-
- type: string
52-
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
53-
x-kubernetes-int-or-string: true
54-
required:
55-
- name
56-
- nodeName
57-
- size
58-
type: object
59-
status:
60-
description: LogicalVolumeStatus defines the observed state of LogicalVolume
61-
properties:
62-
code:
63-
description: A Code is an unsigned 32-bit error code as defined in the
64-
gRPC spec.
65-
format: int32
66-
type: integer
67-
currentSize:
68-
anyOf:
69-
- type: integer
70-
- type: string
71-
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
72-
x-kubernetes-int-or-string: true
73-
message:
74-
type: string
75-
volumeID:
76-
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
77-
of cluster Important: Run "make" to regenerate code after modifying
78-
this file'
79-
type: string
80-
type: object
81-
type: object
82-
version: v1
8319
versions:
8420
- name: v1
21+
schema:
22+
openAPIV3Schema:
23+
description: LogicalVolume is the Schema for the logicalvolumes API
24+
properties:
25+
apiVersion:
26+
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
27+
type: string
28+
kind:
29+
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
30+
type: string
31+
metadata:
32+
type: object
33+
spec:
34+
description: LogicalVolumeSpec defines the desired state of LogicalVolume
35+
properties:
36+
deviceClass:
37+
type: string
38+
name:
39+
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run "make" to regenerate code after modifying this file'
40+
type: string
41+
nodeName:
42+
type: string
43+
size:
44+
anyOf:
45+
- type: integer
46+
- type: string
47+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
48+
x-kubernetes-int-or-string: true
49+
required:
50+
- name
51+
- nodeName
52+
- size
53+
type: object
54+
status:
55+
description: LogicalVolumeStatus defines the observed state of LogicalVolume
56+
properties:
57+
code:
58+
description: A Code is an unsigned 32-bit error code as defined in the gRPC spec.
59+
format: int32
60+
type: integer
61+
currentSize:
62+
anyOf:
63+
- type: integer
64+
- type: string
65+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
66+
x-kubernetes-int-or-string: true
67+
message:
68+
type: string
69+
volumeID:
70+
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state of cluster Important: Run "make" to regenerate code after modifying this file'
71+
type: string
72+
type: object
73+
type: object
8574
served: true
8675
storage: true
76+
subresources:
77+
status: {}
8778
status:
8879
acceptedNames:
8980
kind: ""

0 commit comments

Comments
 (0)