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 submariner-io/submariner-operator #42

Merged
merged 2 commits into from
Nov 11, 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 @@ -695,6 +695,10 @@ Files: crd-catalog/strimzi/strimzi-kafka-operator/*
Copyright: The strimzi/strimzi-kafka-operator Authors
License: Apache-2.0

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

Files: crd-catalog/superedge/superedge/*
Copyright: The superedge/superedge Authors
License: Apache-2.0
Expand Down
2 changes: 2 additions & 0 deletions code-generator/generate-custom-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ for file in ./crd-catalog/**/*.yaml; do
rust_group=$(echo "${group}" | sed -e 's/\./_/g' -e 's/-/_/g')
module="${rust_group}_${version}"

mkdir --parents "./kube-custom-resources-rs/src/${module}"

if [ -f "${args}" ]; then
if ! xargs --arg-file="${args}" --delimiter='\n' kopium --docs --filename="${file}" > "./kube-custom-resources-rs/src/${module}/${rust_crd}.rs"; then
echo "error in ${file}"
Expand Down
9 changes: 9 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1800,6 +1800,15 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/strimzi/strimzi-kafka-operator/blob/main/helm-charts/helm3/strimzi-kafka-operator/crds/049-Crd-kafkarebalance.yaml",
],
},
UpstreamSource {
project_name: "submariner-io/submariner-operator",
license: APACHE_V2,
urls: &[
"https://github.com/submariner-io/submariner-operator/blob/devel/config/crd/bases/submariner.io_brokers.yaml",
"https://github.com/submariner-io/submariner-operator/blob/devel/config/crd/bases/submariner.io_servicediscoveries.yaml",
"https://github.com/submariner-io/submariner-operator/blob/devel/config/crd/bases/submariner.io_submariners.yaml",
],
},
UpstreamSource {
project_name: "superedge/superedge",
license: APACHE_V2,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
name: brokers.submariner.io
spec:
group: submariner.io
names:
kind: Broker
listKind: BrokerList
plural: brokers
singular: broker
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Broker is the Schema for the brokers 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: BrokerSpec defines the desired state of Broker.
properties:
components:
description: List of the components to be installed - any of [service-discovery, connectivity].
items:
type: string
type: array
defaultCustomDomains:
description: List of domains to use for multi-cluster service discovery.
items:
type: string
type: array
defaultGlobalnetClusterSize:
description: Default cluster size for GlobalCIDR allocated to each cluster (amount of global IPs).
type: integer
globalnetCIDRRange:
description: GlobalCIDR supernet range for allocating GlobalCIDRs to each cluster.
type: string
globalnetEnabled:
description: Enable support for Overlapping CIDRs in connecting clusters.
type: boolean
type: object
status:
description: BrokerStatus defines the observed state of Broker.
type: object
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.1
name: servicediscoveries.submariner.io
spec:
group: submariner.io
names:
kind: ServiceDiscovery
listKind: ServiceDiscoveryList
plural: servicediscoveries
singular: servicediscovery
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ServiceDiscovery is the Schema for the servicediscoveries 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: ServiceDiscoverySpec defines the desired state of ServiceDiscovery.
properties:
brokerK8sApiServer:
type: string
brokerK8sApiServerToken:
type: string
brokerK8sCA:
type: string
brokerK8sInsecure:
type: boolean
brokerK8sRemoteNamespace:
type: string
brokerK8sSecret:
type: string
clusterID:
type: string
coreDNSCustomConfig:
properties:
configMapName:
description: Name of the custom CoreDNS configmap.
type: string
namespace:
description: Namespace of the custom CoreDNS configmap.
type: string
type: object
customDomains:
items:
type: string
type: array
x-kubernetes-list-type: set
debug:
type: boolean
globalnetEnabled:
type: boolean
haltOnCertificateError:
type: boolean
imageOverrides:
additionalProperties:
type: string
type: object
namespace:
type: string
nodeSelector:
additionalProperties:
type: string
type: object
repository:
type: string
tolerations:
items:
description: The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
properties:
effect:
description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
type: string
key:
description: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
type: string
operator:
description: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
type: string
tolerationSeconds:
description: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
format: int64
type: integer
value:
description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
type: string
type: object
type: array
version:
type: string
required:
- brokerK8sApiServer
- brokerK8sRemoteNamespace
- clusterID
- debug
- namespace
type: object
status:
description: ServiceDiscoveryStatus defines the observed state of ServiceDiscovery.
properties:
deploymentInfo:
properties:
cloudProvider:
type: string
kubernetesType:
type: string
kubernetesTypeVersion:
type: string
kubernetesVersion:
type: string
type: object
type: object
type: object
served: true
storage: true
subresources:
status: {}
Loading