Skip to content

Commit

Permalink
add LinuxSuRen/api-testing
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Nov 4, 2023
1 parent a9b0ddb commit 5750c55
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ Files: crd-catalog/linki/cloudformation-operator/*
Copyright: The linki/cloudformation-operator Authors
License: MIT

Files: crd-catalog/LinuxSuRen/api-testing/*
Copyright: The LinuxSuRen/api-testing Authors
License: MIT

Files: crd-catalog/litmuschaos/chaos-operator/*
Copyright: The litmuschaos/chaos-operator Authors
License: Apache-2.0
Expand Down
7 changes: 7 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,13 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/linki/cloudformation-operator/blob/master/config/crd/bases/cloudformation.linki.space_stacks.yaml",
],
},
UpstreamSource {
project_name: "LinuxSuRen/api-testing",
license: MIT,
urls: &[
"https://github.com/LinuxSuRen/api-testing/blob/master/operator/config/crd/bases/core.linuxsuren.github.com_atests.yaml",
],
},
UpstreamSource {
project_name: "litmuschaos/chaos-operator",
license: APACHE_V2,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.1
name: atests.core.linuxsuren.github.com
spec:
group: core.linuxsuren.github.com
names:
kind: ATest
listKind: ATestList
plural: atests
singular: atest
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ATest is the Schema for the atests 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: ATestSpec defines the desired state of ATest
properties:
image:
type: string
persistent:
description: Persistent defines the persistent volume claim
properties:
enabled:
type: boolean
storageClass:
type: string
type: object
replicas:
format: int32
type: integer
serviceType:
description: Service Type string describes ingress methods for a service
type: string
version:
type: string
type: object
status:
description: ATestStatus defines the observed state of ATest
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 @@ -86,6 +86,7 @@ config_gatekeeper_sh_v1alpha1 = []
config_grafana_com_v1 = []
config_karmada_io_v1alpha1 = []
config_koordinator_sh_v1alpha1 = []
core_linuxsuren_github_com_v1alpha1 = []
core_openfeature_dev_v1alpha1 = []
core_openfeature_dev_v1alpha2 = []
couchbase_com_v2 = []
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// WARNING: generated by kopium - manual changes will be overwritten
// kopium command: kopium --docs --filename ./crd-catalog/LinuxSuRen/api-testing/core.linuxsuren.github.com/v1alpha1/atests.yaml
// kopium version: 0.16.1

use kube::CustomResource;
use serde::{Serialize, Deserialize};

/// ATestSpec defines the desired state of ATest
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug)]
#[kube(group = "core.linuxsuren.github.com", version = "v1alpha1", kind = "ATest", plural = "atests")]
#[kube(namespaced)]
#[kube(status = "ATestStatus")]
#[kube(schema = "disabled")]
pub struct ATestSpec {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub image: Option<String>,
/// Persistent defines the persistent volume claim
#[serde(default, skip_serializing_if = "Option::is_none")]
pub persistent: Option<ATestPersistent>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub replicas: Option<i32>,
/// Service Type string describes ingress methods for a service
#[serde(default, skip_serializing_if = "Option::is_none", rename = "serviceType")]
pub service_type: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
}

/// Persistent defines the persistent volume claim
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct ATestPersistent {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
#[serde(default, skip_serializing_if = "Option::is_none", rename = "storageClass")]
pub storage_class: Option<String>,
}

/// ATestStatus defines the observed state of ATest
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct ATestStatus {
}

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod atests;
2 changes: 2 additions & 0 deletions kube-custom-resources-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ pub mod config_grafana_com_v1;
pub mod config_karmada_io_v1alpha1;
#[cfg(feature = "config_koordinator_sh_v1alpha1")]
pub mod config_koordinator_sh_v1alpha1;
#[cfg(feature = "core_linuxsuren_github_com_v1alpha1")]
pub mod core_linuxsuren_github_com_v1alpha1;
#[cfg(feature = "core_openfeature_dev_v1alpha1")]
pub mod core_openfeature_dev_v1alpha1;
#[cfg(feature = "core_openfeature_dev_v1alpha2")]
Expand Down

0 comments on commit 5750c55

Please sign in to comment.