Skip to main content
Version: Next

Installation

Assuming you've successfully set up your environment, following the guidelines provided on the requirements page, you can proceed to generate manifests and deploy the controller:

Deployment via Kustomize

  1. Edit the $REPOSITORY_ROOT/config/manager/manager.yaml file and set the image field to the current version (see below example of defining the image as an environment variable):
# ...
spec:
# ...
template:
# ...
spec:
# ...
containers:
# ...
image: ghcr.io/Riskified/dynamic-environment:TAG

You can further customize the deployment by adjusting the following settings:

These settings can be changed in the config/manager/manager.yaml file:

# ...
spec:
# ...
template:
# ...
spec:
# ...
containers:
# ...
args:
- --leader-elect
- --version-label
- version <-- this should be replaced to change the label
- --default-version
- shared <-- this should be replaced to change the default version
# uncomment the next two lines to set log level to debug (also error is valid value, default is info)
# - --zap-log-level
# - debug
# Uncomment the lines below (and modify as needed) to specify labels to be removed (comma-separated list)
#- --remove-labels
#- argocd.argoproj.io/instance

Once you have configured everything, deploy the controller using the following command:

make deploy
# or with image as environment varible
make deploy IMG="ghcr.io/Riskified/dynamic-environment:TAG"

Deploy via Helm

Helm uses a values.yaml file (helm/dynamic-environment/values.yaml) with predefined values you can override. At the very least, ensure you correctly set up the image details:

[ ... ]
image:
repository: ghcr.io/Riskified/dynamic-environment
tag: TAG
pullPolicy: IfNotPresent
[ ... ]

For more extensive customization, refer to the comments in the values file and compare them to the custom settings for in-depth details.

Once you've finished making your edits, execute the following command (from within the helm directory):

# you can edit this command to set values or specify alternative settings file
helm install dynamic-environment-operator .