microcks / microcks-ansible-operator

Kubernetes Operator for easy setup and management of Microcks installs
Apache License 2.0
24 stars 5 forks source link

Allow adding environment variables to Microcks deployment #76

Closed lbroudoux closed 1 year ago

lbroudoux commented 2 years ago

As Microcks is a Spring Boot application, it may allow additional default environment variables to tune the Spring behavior. Namely stuffs like MAX_UPLOAD_FILE_SIZE are used by some users in the community (see microcks/microcks#607).

We also have the SERVICES_UPDATE_INTERVAL that can be used to specify importer polling frequency. We'll certainly not be able to list all the configuration variables available out there so we propose having a generic environment variable approach.

You'll be able to define this kind of config in the MicrocksInstall resource:

apiVersion: microcks.github.io/v1alpha1
kind: MicrocksInstall
metadata:
  name: microcks
spec:
  name: microcks
  version: "1.5.2"
  microcks:
    env:
      - name: MAX_UPLOAD_FILE_SIZE
        value: 5MB
    [...]
lbroudoux commented 1 year ago

This one is now available into the quay.io/microcks/microcks-ansible-operator:nightly image.