-
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
165 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
99 changes: 99 additions & 0 deletions
99
crd-catalog/atlasmap/atlasmap-operator/atlasmap.io/v1alpha1/atlasmaps.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,99 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.4.1 | ||
name: atlasmaps.atlasmap.io | ||
spec: | ||
group: atlasmap.io | ||
names: | ||
kind: AtlasMap | ||
listKind: AtlasMapList | ||
plural: atlasmaps | ||
singular: atlasmap | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- description: AtlasMap URL | ||
jsonPath: .status.URL | ||
name: URL | ||
type: string | ||
- description: AtlasMap image | ||
jsonPath: .status.image | ||
name: Image | ||
type: string | ||
- description: AtlasMap phase | ||
jsonPath: .status.phase | ||
name: Phase | ||
type: string | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: AtlasMap is the Schema for the atlasmaps 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: AtlasMapSpec defines the desired state of AtlasMap | ||
properties: | ||
limitCPU: | ||
description: The amount of CPU to limit | ||
pattern: '[0-9]+m?$' | ||
type: string | ||
limitMemory: | ||
description: The amount of memory to request | ||
pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' | ||
type: string | ||
replicas: | ||
description: Replicas determines the desired number of running AtlasMap pods | ||
format: int32 | ||
type: integer | ||
requestCPU: | ||
description: The amount of CPU to request | ||
pattern: '[0-9]+m?$' | ||
type: string | ||
requestMemory: | ||
description: The amount of memory to request | ||
pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' | ||
type: string | ||
routeHostName: | ||
description: RouteHostName sets the host name to use on the Ingress or OpenShift Route | ||
type: string | ||
version: | ||
description: Version sets the version of the container image used for AtlasMap | ||
type: string | ||
type: object | ||
status: | ||
description: AtlasMapStatus defines the observed state of AtlasMap | ||
properties: | ||
URL: | ||
description: The URL where AtlasMap can be accessed | ||
type: string | ||
image: | ||
description: The container image that AtlasMap is using | ||
type: string | ||
phase: | ||
description: The current phase that the AtlasMap resource is in | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
scale: | ||
labelSelectorPath: .status.labelSelector | ||
specReplicasPath: .spec.replicas | ||
statusReplicasPath: .status.replicas | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: '' | ||
plural: '' | ||
conditions: [] | ||
storedVersions: [] |
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
51 changes: 51 additions & 0 deletions
51
kube-custom-resources-rs/src/atlasmap_io_v1alpha1/atlasmaps.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,51 @@ | ||
// WARNING: generated by kopium - manual changes will be overwritten | ||
// kopium command: kopium --docs --filename ./crd-catalog/atlasmap/atlasmap-operator/atlasmap.io/v1alpha1/atlasmaps.yaml | ||
// kopium version: 0.16.1 | ||
|
||
use kube::CustomResource; | ||
use serde::{Serialize, Deserialize}; | ||
|
||
/// AtlasMapSpec defines the desired state of AtlasMap | ||
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug)] | ||
#[kube(group = "atlasmap.io", version = "v1alpha1", kind = "AtlasMap", plural = "atlasmaps")] | ||
#[kube(namespaced)] | ||
#[kube(status = "AtlasMapStatus")] | ||
#[kube(schema = "disabled")] | ||
pub struct AtlasMapSpec { | ||
/// The amount of CPU to limit | ||
#[serde(default, skip_serializing_if = "Option::is_none", rename = "limitCPU")] | ||
pub limit_cpu: Option<String>, | ||
/// The amount of memory to request | ||
#[serde(default, skip_serializing_if = "Option::is_none", rename = "limitMemory")] | ||
pub limit_memory: Option<String>, | ||
/// Replicas determines the desired number of running AtlasMap pods | ||
#[serde(default, skip_serializing_if = "Option::is_none")] | ||
pub replicas: Option<i32>, | ||
/// The amount of CPU to request | ||
#[serde(default, skip_serializing_if = "Option::is_none", rename = "requestCPU")] | ||
pub request_cpu: Option<String>, | ||
/// The amount of memory to request | ||
#[serde(default, skip_serializing_if = "Option::is_none", rename = "requestMemory")] | ||
pub request_memory: Option<String>, | ||
/// RouteHostName sets the host name to use on the Ingress or OpenShift Route | ||
#[serde(default, skip_serializing_if = "Option::is_none", rename = "routeHostName")] | ||
pub route_host_name: Option<String>, | ||
/// Version sets the version of the container image used for AtlasMap | ||
#[serde(default, skip_serializing_if = "Option::is_none")] | ||
pub version: Option<String>, | ||
} | ||
|
||
/// AtlasMapStatus defines the observed state of AtlasMap | ||
#[derive(Serialize, Deserialize, Clone, Debug)] | ||
pub struct AtlasMapStatus { | ||
/// The URL where AtlasMap can be accessed | ||
#[serde(default, skip_serializing_if = "Option::is_none", rename = "URL")] | ||
pub url: Option<String>, | ||
/// The container image that AtlasMap is using | ||
#[serde(default, skip_serializing_if = "Option::is_none")] | ||
pub image: Option<String>, | ||
/// The current phase that the AtlasMap resource is in | ||
#[serde(default, skip_serializing_if = "Option::is_none")] | ||
pub phase: Option<String>, | ||
} | ||
|
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 atlasmaps; |
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