feat(system-backup/restore): update chart

Ref: 1455

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
This commit is contained in:
Chin-Ya Huang 2022-11-22 14:06:19 +08:00 committed by David Ko
parent d57db31395
commit 0706d83133
2 changed files with 224 additions and 3 deletions

View File

@ -11,7 +11,7 @@ rules:
verbs:
- "*"
- apiGroups: [""]
resources: ["pods", "events", "persistentvolumes", "persistentvolumeclaims","persistentvolumeclaims/status", "nodes", "proxy/nodes", "pods/log", "secrets", "services", "endpoints", "configmaps"]
resources: ["pods", "events", "persistentvolumes", "persistentvolumeclaims","persistentvolumeclaims/status", "nodes", "proxy/nodes", "pods/log", "secrets", "services", "endpoints", "configmaps", "serviceaccounts"]
verbs: ["*"]
- apiGroups: [""]
resources: ["namespaces"]
@ -23,7 +23,7 @@ rules:
resources: ["jobs", "cronjobs"]
verbs: ["*"]
- apiGroups: ["policy"]
resources: ["poddisruptionbudgets"]
resources: ["poddisruptionbudgets", "podsecuritypolicies"]
verbs: ["*"]
- apiGroups: ["scheduling.k8s.io"]
resources: ["priorityclasses"]
@ -41,7 +41,7 @@ rules:
"backingimagemanagers", "backingimagemanagers/status", "backingimagedatasources", "backingimagedatasources/status",
"backuptargets", "backuptargets/status", "backupvolumes", "backupvolumes/status", "backups", "backups/status",
"recurringjobs", "recurringjobs/status", "orphans", "orphans/status", "snapshots", "snapshots/status",
"supportbundles", "supportbundles/status"]
"supportbundles", "supportbundles/status", "systembackups", "systembackups/status", "systemrestores", "systemrestores/status"]
verbs: ["*"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
@ -55,3 +55,6 @@ rules:
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
verbs: ["get", "list", "create", "patch", "delete"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["roles", "rolebindings", "clusterrolebindings", "clusterroles"]
verbs: ["*"]

View File

@ -2895,6 +2895,224 @@ status:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.7.0
creationTimestamp: null
labels: {{- include "longhorn.labels" . | nindent 4 }}
longhorn-manager: ""
name: systembackups.longhorn.io
spec:
group: longhorn.io
names:
kind: SystemBackup
listKind: SystemBackupList
plural: systembackups
shortNames:
- lhsb
singular: systembackup
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: The system backup Longhorn version
jsonPath: .status.version
name: Version
type: string
- description: The system backup state
jsonPath: .status.state
name: State
type: string
- description: The system backup creation time
jsonPath: .status.createdAt
name: Created
type: string
- description: The last time that the system backup was synced into the cluster
jsonPath: .status.lastSyncedAt
name: LastSyncedAt
type: string
name: v1beta2
schema:
openAPIV3Schema:
description: SystemBackup is where Longhorn stores system backup object
properties:
apiVersion:
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'
type: string
kind:
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'
type: string
metadata:
type: object
spec:
description: SystemBackupSpec defines the desired state of the Longhorn SystemBackup
type: object
status:
description: SystemBackupStatus defines the observed state of the Longhorn SystemBackup
properties:
conditions:
items:
properties:
lastProbeTime:
description: Last time we probed the condition.
type: string
lastTransitionTime:
description: Last time the condition transitioned from one status to another.
type: string
message:
description: Human-readable message indicating details about last transition.
type: string
reason:
description: Unique, one-word, CamelCase reason for the condition's last transition.
type: string
status:
description: Status is the status of the condition. Can be True, False, Unknown.
type: string
type:
description: Type is the type of the condition.
type: string
type: object
nullable: true
type: array
createdAt:
description: The system backup creation time.
format: date-time
type: string
gitCommit:
description: The saved Longhorn manager git commit.
nullable: true
type: string
lastSyncedAt:
description: The last time that the system backup was synced into the cluster.
format: date-time
nullable: true
type: string
managerImage:
description: The saved manager image.
type: string
ownerID:
description: The node ID of the responsible controller to reconcile this SystemBackup.
type: string
state:
description: The system backup state.
type: string
version:
description: The saved Longhorn version.
nullable: true
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.7.0
creationTimestamp: null
labels: {{- include "longhorn.labels" . | nindent 4 }}
longhorn-manager: ""
name: systemrestores.longhorn.io
spec:
group: longhorn.io
names:
kind: SystemRestore
listKind: SystemRestoreList
plural: systemrestores
shortNames:
- lhsr
singular: systemrestore
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: The system restore state
jsonPath: .status.state
name: State
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1beta2
schema:
openAPIV3Schema:
description: SystemRestore is where Longhorn stores system restore object
properties:
apiVersion:
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'
type: string
kind:
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'
type: string
metadata:
type: object
spec:
description: SystemRestoreSpec defines the desired state of the Longhorn SystemRestore
properties:
systemBackup:
description: The system backup name in the object store.
type: string
required:
- systemBackup
type: object
status:
description: SystemRestoreStatus defines the observed state of the Longhorn SystemRestore
properties:
conditions:
items:
properties:
lastProbeTime:
description: Last time we probed the condition.
type: string
lastTransitionTime:
description: Last time the condition transitioned from one status to another.
type: string
message:
description: Human-readable message indicating details about last transition.
type: string
reason:
description: Unique, one-word, CamelCase reason for the condition's last transition.
type: string
status:
description: Status is the status of the condition. Can be True, False, Unknown.
type: string
type:
description: Type is the type of the condition.
type: string
type: object
nullable: true
type: array
ownerID:
description: The node ID of the responsible controller to reconcile this SystemRestore.
type: string
sourceURL:
description: The source system backup URL.
type: string
state:
description: The system restore state.
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.7.0