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 atlasmap/atlasmap-operator #15

Merged
merged 1 commit into from
Nov 4, 2023
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 @@ -47,6 +47,10 @@ Files: crd-catalog/argoproj-labs/argocd-operator/*
Copyright: The argoproj-labs/argocd-operator Authors
License: Apache-2.0

Files: crd-catalog/atlasmap/atlasmap-operator/*
Copyright: The atlasmap/atlasmap-operator Authors
License: Apache-2.0

Files: crd-catalog/aws-controllers-k8s/apigatewayv2-controller/*
Copyright: The aws-controllers-k8s/apigatewayv2-controller 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 @@ -101,6 +101,13 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/argoproj-labs/argocd-operator/blob/master/config/crd/bases/argoproj.io_argocds.yaml",
],
},
UpstreamSource {
project_name: "atlasmap/atlasmap-operator",
license: APACHE_V2,
urls: &[
"https://github.com/atlasmap/atlasmap-operator/blob/main/config/crd/bases/atlasmap.io_atlasmaps.yaml",
],
},
UpstreamSource {
project_name: "aws-controllers-k8s/apigatewayv2-controller",
license: APACHE_V2,
Expand Down
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: []
1 change: 1 addition & 0 deletions kube-custom-resources-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ argoproj_io_v1alpha1 = []
argoproj_io_v1beta1 = []
asdb_aerospike_com_v1 = []
asdb_aerospike_com_v1beta1 = []
atlasmap_io_v1alpha1 = []
autoscaling_k8s_io_v1 = []
autoscaling_k8s_io_v1beta2 = []
autoscaling_karmada_io_v1alpha1 = []
Expand Down
51 changes: 51 additions & 0 deletions kube-custom-resources-rs/src/atlasmap_io_v1alpha1/atlasmaps.rs
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>,
}

1 change: 1 addition & 0 deletions kube-custom-resources-rs/src/atlasmap_io_v1alpha1/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod atlasmaps;
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 @@ -54,6 +54,8 @@ pub mod argoproj_io_v1beta1;
pub mod asdb_aerospike_com_v1;
#[cfg(feature = "asdb_aerospike_com_v1beta1")]
pub mod asdb_aerospike_com_v1beta1;
#[cfg(feature = "atlasmap_io_v1alpha1")]
pub mod atlasmap_io_v1alpha1;
#[cfg(feature = "autoscaling_k8s_io_v1")]
pub mod autoscaling_k8s_io_v1;
#[cfg(feature = "autoscaling_k8s_io_v1beta2")]
Expand Down