Skip to content

Siddhi Operator Release 0.2.0-m1

Pre-release
Pre-release
Compare
Choose a tag to compare
@pcnfernando pcnfernando released this 08 Jul 10:04
· 147 commits to master since this release
49e9edd

Installing

Docker Image:

siddhiio/siddhi-operator:0.2.0-m1
kubectl apply -f https://github.com/siddhi-io/siddhi-operator/releases/download/v0.2.0-m1/00-prereqs.yaml
kubectl apply -f https://github.com/siddhi-io/siddhi-operator/releases/download/v0.2.0-m1/01-siddhi-operator.yaml

Highlights

Changed

  1. Aggregate previous apps and query specs to a single spec called apps.

    apps:
    -
        configMap: app
    -
        script: |-
            @App:name("MonitorApp")
            @App:description("Description of the plan")  
            @sink(type='log', prefix='LOGGER')
            @source(
                type='http',
                receiver.url='http://0.0.0.0:8080/example',
                basic.auth.enabled='false',
                @map(type='json')
            )
            define stream DevicePowerStream (type string, deviceID string, power int);
            @sink(type='log', prefix='LOGGER')
            define stream MonitorDevicesPowerStream(sumPower long);
            @info(name='monitored-filter')
            from DevicePowerStream#window.time(100 min)
            select sum(power) as sumPower
            insert all events into MonitorDevicesPowerStream;
  2. Replace previous pod spec with the container spec.

    container:
        env:
            -
            name: RECEIVER_URL
            value: "http://0.0.0.0:8080/example"
            -
            name: BASIC_AUTH_ENABLED
            value: "false"
            -
            name: NATS_URL
            value: "nats://siddhi-nats:4222"
            -
            name: NATS_DEST
            value: siddhi
            -
            name: NATS_CLUSTER_ID
            value: siddhi-stan
        image: "buddhiwathsala/siddhi-runner:0.1.1"
  3. The imagePullSecret under pod spec which was in previous releases moved to the top level in the YAML. (i.e Directly under the spec of CRD )

Removed

  1. Remove previous tls spec. Now you can configure ingress TLS secret using the siddhi-operator-config config map.

Features & Improvements

  1. Added the messagingSystem spec to the CRD.

    messagingSystem:
        type: nats
        config:
        bootstrap.servers:
            - "nats://siddhi-nats:4222"
        cluster.id: siddhi-stan
  2. Added persistentVolume spec to the CRD.

    persistentVolume:
        access.modes:
        - ReadWriteOnce
        resources:
        requests:
            storage: 1Gi
        storageClassName: standard
        volume.mode: Filesystem

Bug Fixes

Find all the fixes and functionality changes from this issue #33