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

operator sn-operator (0.3.0-rc.8) #3705

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
21 changes: 21 additions & 0 deletions operators/sn-operator/0.3.0-rc.8/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.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
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
iconLink:
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
sinkDocLink:
type: string
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
sourceDocLink:
type: string
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,113 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: consoles.k8s.streamnative.io
spec:
group: k8s.streamnative.io
names:
kind: Console
listKind: ConsoleList
plural: consoles
singular: console
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Console is the Schema for the consoles 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: ConsoleSpec defines the desired state of Console
properties:
customization:
description: Customization allows the desired manifests of operator
managed resources to be customized.
items:
properties:
manifest:
description: Manifest defines the patch to apply to customize
the desired resource
type: string
match:
description: Match defines what resource should be customized
by this customization layer
nullable: true
properties:
groupVersionKinds:
description: Matches the group, version, and kind of the
resource.
items:
properties:
group:
description: Group is the group of the resource. Matches
all groups if it's empty or `*`.
type: string
kind:
description: Kind is the kind of the resource. Matches
all kinds if it's `*`.
type: string
version:
description: Version is the version of the resource.
Matches all versions if it's empty or `*`.
type: string
required:
- kind
type: object
nullable: true
type: array
name:
description: Name matches the resource name defined in the
metadata. It could be defined as a Regex pattern, like
`^.*-bk$`.
type: string
type: object
required:
- manifest
type: object
nullable: true
type: array
image:
description: Image is the container image used to run sn console pods.
type: string
imagePullPolicy:
description: Image pull policy, one of Always, Never, IfNotPresent,
default to Always.
type: string
kopServiceUrl:
description: KopServiceUrl defines the kop service url of pulsar cluster,
type: string
webServiceUrl:
description: WebServiceUrl defines the web service url of pulsar cluster,
type: string
required:
- webServiceUrl
type: object
status:
description: ConsoleStatus defines the observed state of Console
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
Loading
Loading