Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add k8up-io/k8up #120

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ Files: crd-catalog/k8gb-io/k8gb/*
Copyright: The k8gb-io/k8gb Authors
License: Apache-2.0

Files: crd-catalog/k8up-io/k8up/*
Copyright: The k8up-io/k8up Authors
License: Apache-2.0

Files: crd-catalog/karmada-io/karmada/*
Copyright: The karmada-io/karmada Authors
License: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ If no `<project_name>` argument was given, code for all CRDs in the catalog will
Certain CRDs cannot be correctly converted to Rust code yet. Make sure that each newly generated resource can be compiled by calling:

```console
$ cargo check --locked --package kube-custom-resources-rs --features <feature_name>
$ ./code-generator/test-custom-resources.sh <feature_name>
```

The `<feature_name>` argument corresponds to the newly generated folder in `kube-custom-resources-rs/src` for the new CRDs added by yourself.
Expand Down
14 changes: 14 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,20 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/k8gb-io/k8gb/blob/master/chart/k8gb/crd/k8gb.absa.oss_gslbs.yaml",
],
},
UpstreamSource {
project_name: "k8up-io/k8up",
license: APACHE_V2,
urls: &[
"https://github.com/k8up-io/k8up/blob/master/config/crd/apiextensions.k8s.io/v1/k8up.io_archives.yaml",
"https://github.com/k8up-io/k8up/blob/master/config/crd/apiextensions.k8s.io/v1/k8up.io_backups.yaml",
"https://github.com/k8up-io/k8up/blob/master/config/crd/apiextensions.k8s.io/v1/k8up.io_checks.yaml",
"https://github.com/k8up-io/k8up/blob/master/config/crd/apiextensions.k8s.io/v1/k8up.io_prebackuppods.yaml",
"https://github.com/k8up-io/k8up/blob/master/config/crd/apiextensions.k8s.io/v1/k8up.io_prunes.yaml",
"https://github.com/k8up-io/k8up/blob/master/config/crd/apiextensions.k8s.io/v1/k8up.io_restores.yaml",
"https://github.com/k8up-io/k8up/blob/master/config/crd/apiextensions.k8s.io/v1/k8up.io_schedules.yaml",
"https://github.com/k8up-io/k8up/blob/master/config/crd/apiextensions.k8s.io/v1/k8up.io_snapshots.yaml",
],
},
UpstreamSource {
project_name: "karmada-io/karmada",
license: APACHE_V2,
Expand Down
1 change: 1 addition & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/archives.args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
544 changes: 544 additions & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/archives.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/backups.args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
496 changes: 496 additions & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/backups.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/checks.args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
484 changes: 484 additions & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/checks.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/prebackuppods.ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cannot find type `PreBackupPodStatus` in this scope
4,162 changes: 4,162 additions & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/prebackuppods.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/prunes.args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
511 changes: 511 additions & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/prunes.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/restores.args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
544 changes: 544 additions & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/restores.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/schedules.args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
2,576 changes: 2,576 additions & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/schedules.yaml

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions crd-catalog/k8up-io/k8up/k8up.io/v1/snapshots.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
name: snapshots.k8up.io
spec:
group: k8up.io
names:
kind: Snapshot
listKind: SnapshotList
plural: snapshots
singular: snapshot
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: Date when snapshot was taken
jsonPath: .spec.date
name: Date taken
type: string
- description: Snapshot's paths
jsonPath: .spec.paths[*]
name: Paths
type: string
- description: Repository Url
jsonPath: .spec.repository
name: Repository
type: string
name: v1
schema:
openAPIV3Schema:
description: Snapshot is the Schema for the snapshots API
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: SnapshotSpec contains all information needed about a restic snapshot so it can be restored.
properties:
date:
format: date-time
type: string
id:
type: string
paths:
items:
type: string
type: array
repository:
type: string
type: object
status:
description: SnapshotStatus defines the observed state of Snapshot
type: object
type: object
served: true
storage: true
subresources:
status: {}
1 change: 1 addition & 0 deletions kube-custom-resources-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ k8gb_absa_oss = []
k8s_keycloak_org = []
k8s_nginx_org = []
k8s_otterize_com = []
k8up_io = []
kafka_strimzi_io = []
kamaji_clastix_io = []
keda_sh = []
Expand Down
1 change: 1 addition & 0 deletions kube-custom-resources-rs/src/k8up_io/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod v1;
Loading