-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sebastian Hoß <[email protected]>
- Loading branch information
Showing
7 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
crd-catalog/LinuxSuRen/api-testing/core.linuxsuren.github.com/v1alpha1/atests.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
kube-custom-resources-rs/src/core_linuxsuren_github_com_v1alpha1/atests.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} | ||
|
1 change: 1 addition & 0 deletions
1
kube-custom-resources-rs/src/core_linuxsuren_github_com_v1alpha1/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod atests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters