Skip to content

Commit 56163bc

Browse files
authored
Merge pull request #1057 from novaesis/generate_crds_in_helm_chart
Generate CRDs in helm chart
2 parents af61b00 + 397e779 commit 56163bc

10 files changed

+25490
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ generate: ## Generate manifests e.g. CRD, RBAC etc.
8484
$(GO_EXEC) run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile=".github/boilerplate.go.txt" paths="./..."
8585
# Generate CRDs
8686
$(GO_EXEC) run sigs.k8s.io/controller-tools/cmd/controller-gen rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=$(CRD_ROOT_DIR)/v1 crd:crdVersions=v1
87+
$(GO_EXEC) run sigs.k8s.io/controller-tools/cmd/controller-gen rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=charts/k8up/crds crd:crdVersions=v1
8788

8889
.PHONY: crd
8990
crd: generate ## Generate CRD to file

charts/k8up/crds/k8up.io_archives.yaml

Lines changed: 1077 additions & 0 deletions
Large diffs are not rendered by default.

charts/k8up/crds/k8up.io_backups.yaml

Lines changed: 1025 additions & 0 deletions
Large diffs are not rendered by default.

charts/k8up/crds/k8up.io_checks.yaml

Lines changed: 956 additions & 0 deletions
Large diffs are not rendered by default.

charts/k8up/crds/k8up.io_podconfigs.yaml

Lines changed: 7532 additions & 0 deletions
Large diffs are not rendered by default.

charts/k8up/crds/k8up.io_prebackuppods.yaml

Lines changed: 7534 additions & 0 deletions
Large diffs are not rendered by default.

charts/k8up/crds/k8up.io_prunes.yaml

Lines changed: 982 additions & 0 deletions
Large diffs are not rendered by default.

charts/k8up/crds/k8up.io_restores.yaml

Lines changed: 1079 additions & 0 deletions
Large diffs are not rendered by default.

charts/k8up/crds/k8up.io_schedules.yaml

Lines changed: 5228 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.14.0
7+
name: snapshots.k8up.io
8+
spec:
9+
group: k8up.io
10+
names:
11+
kind: Snapshot
12+
listKind: SnapshotList
13+
plural: snapshots
14+
singular: snapshot
15+
scope: Namespaced
16+
versions:
17+
- additionalPrinterColumns:
18+
- description: Date when snapshot was taken
19+
jsonPath: .spec.date
20+
name: Date taken
21+
type: string
22+
- description: Snapshot's paths
23+
jsonPath: .spec.paths[*]
24+
name: Paths
25+
type: string
26+
- description: Repository Url
27+
jsonPath: .spec.repository
28+
name: Repository
29+
type: string
30+
name: v1
31+
schema:
32+
openAPIV3Schema:
33+
description: Snapshot is the Schema for the snapshots API
34+
properties:
35+
apiVersion:
36+
description: |-
37+
APIVersion defines the versioned schema of this representation of an object.
38+
Servers should convert recognized schemas to the latest internal value, and
39+
may reject unrecognized values.
40+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
41+
type: string
42+
kind:
43+
description: |-
44+
Kind is a string value representing the REST resource this object represents.
45+
Servers may infer this from the endpoint the client submits requests to.
46+
Cannot be updated.
47+
In CamelCase.
48+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
49+
type: string
50+
metadata:
51+
type: object
52+
spec:
53+
description: |-
54+
SnapshotSpec contains all information needed about a restic snapshot so it
55+
can be restored.
56+
properties:
57+
date:
58+
format: date-time
59+
type: string
60+
id:
61+
type: string
62+
paths:
63+
items:
64+
type: string
65+
type: array
66+
repository:
67+
type: string
68+
type: object
69+
status:
70+
description: SnapshotStatus defines the observed state of Snapshot
71+
type: object
72+
type: object
73+
served: true
74+
storage: true
75+
subresources:
76+
status: {}

0 commit comments

Comments
 (0)