siddhi-io/siddhi-operator

Need to have common build script for operator build and create artifacts

Opened this issue · 0 comments

Description:
We need to have a single build script file to do the following tasks.

  1. Build the operator

    operator-sdk build <DOCKER_REGISTRY_URL>/<USER_NAME>/siddhi-operator:<TAG>
    
  2. Concat the following files in the given order and create a prerequisite file.

    1. ./deploy/siddhi_v1alpha2_siddhiprocess_crd.yaml
    2. ./deploy/service_account.yaml
    3. ./deploy/role.yaml
    4. ./deploy/role_binding.yaml
  3. Update the Docker image of the operator.yaml file

    sed -i 's|docker.io/siddhiio/siddhi-operator:*|<DOCKER_REGISTRY_URL>/<USER_NAME>/siddhi-operator:<TAG>|g' deploy/operator.yaml
    
  4. Now we need to use the prerequisite file and operator yaml file as release artifacts.

Affected Product Version:
0.2.1