Skip to content

Commit

Permalink
operator sn-operator (0.3.0-rc1)
Browse files Browse the repository at this point in the history
Signed-off-by: streamnativebot <[email protected]>
  • Loading branch information
streamnativebot committed Oct 8, 2023
1 parent de06d0f commit d72eb08
Show file tree
Hide file tree
Showing 18 changed files with 2,570 additions and 0 deletions.
21 changes: 21 additions & 0 deletions operators/sn-operator/0.3.0-rc1/bundle.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM scratch

# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=sn-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha,beta,stable
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.31.0
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3

# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/

# Copy files to locations specified by labels.
COPY bundle/manifests /manifests/
COPY bundle/metadata /metadata/
COPY bundle/tests/scorecard /tests/scorecard/

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: sn-operator-system/sn-operator-serving-cert
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: connectorcatalogs.k8s.streamnative.io
spec:
conversion:
strategy: Webhook
webhook:
clientConfig:
service:
name: sn-operator-webhook-service
namespace: sn-operator-system
path: /convert
conversionReviewVersions:
- v1
group: k8s.streamnative.io
names:
kind: ConnectorCatalog
listKind: ConnectorCatalogList
plural: connectorcatalogs
singular: connectorcatalog
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ConnectorCatalog is the Schema for the connectorcatalogs 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: ConnectorCatalogSpec defines the desired state of ConnectorCatalog
properties:
connectorDefinitions:
items:
properties:
defaultSchemaType:
type: string
defaultSerdeClassName:
type: string
description:
type: string
id:
type: string
imageRegistry:
type: string
imageRepository:
type: string
imageTag:
type: string
jarFullName:
type: string
name:
type: string
sinkClass:
type: string
sinkConfigClass:
type: string
sinkConfigFieldDefinitions:
items:
properties:
attributes:
additionalProperties:
type: string
type: object
fieldName:
type: string
typeName:
type: string
required:
- fieldName
- typeName
type: object
type: array
sinkTypeClassName:
type: string
sourceClass:
type: string
sourceConfigClass:
type: string
sourceConfigFieldDefinitions:
items:
properties:
attributes:
additionalProperties:
type: string
type: object
fieldName:
type: string
typeName:
type: string
required:
- fieldName
- typeName
type: object
type: array
sourceTypeClassName:
type: string
typeClassName:
type: string
version:
type: string
required:
- id
type: object
type: array
x-kubernetes-list-map-keys:
- id
x-kubernetes-list-type: map
required:
- connectorDefinitions
type: object
status:
description: ConnectorCatalogStatus defines the observed state of ConnectorCatalog
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: oxiaclusters.k8s.streamnative.io
spec:
group: k8s.streamnative.io
names:
kind: OxiaCluster
listKind: OxiaClusterList
plural: oxiaclusters
singular: oxiacluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: OxiaCluster is the Schema for the oxiaclusters 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: OxiaClusterSpec defines the desired state of OxiaCluster
properties:
coordinator:
description: Coordinator contains configuration specific to the coordinator
component
properties:
resources:
description: Resources is the resource requirement of coordinator
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute
resources required. If Requests is omitted for a container,
it defaults to Limits if that is explicitly specified, otherwise
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
required:
- resources
type: object
image:
description: Image contains configuration specific to the image being
used
type: string
imagePullPolicy:
description: Image pull policy, one of Always, Never, IfNotPresent,
default to Always.
type: string
monitoringEnabled:
description: MonitoringEnabled determines whether a Prometheus ServiceMonitor
should be created
type: boolean
namespaces:
description: Namespaces contains namespace configuration list
items:
properties:
initialShardCount:
format: int32
type: integer
name:
type: string
replicationFactor:
format: int32
type: integer
required:
- name
type: object
type: array
pprofEnabled:
description: PprofEnabled determines whether the pprof HTTP service
will be enabled
type: boolean
server:
description: Server contains configuration specific to the server
component
properties:
replicas:
description: Replicas is the number of server pods that should
be running
format: int32
type: integer
resources:
description: Resources is the resource requirement of coordinator
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute
resources required. If Requests is omitted for a container,
it defaults to Limits if that is explicitly specified, otherwise
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
storageClassName:
description: StorageClassName is the name of StorageClass to which
the persistent volume belongs
type: string
required:
- resources
type: object
type: object
status:
description: OxiaClusterStatus defines the observed state of OxiaCluster
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
Loading

0 comments on commit d72eb08

Please sign in to comment.