Skip to content

Commit 538e40f

Browse files
authored
Merge pull request #549 from snyk/fix/improve_operator_image
fix: improve operator image metadata
2 parents a4fd39c + 29f1372 commit 538e40f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

scripts/operator/create-operator.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ HELM_CHART_NAME="snyk-monitor"
2929
OPERATOR_NAME="snyk-operator"
3030
OPERATOR_LOCATION="${PWD}/${OPERATOR_NAME}"
3131
HELM_CHART_LOCATION="${PWD}/${HELM_CHART_NAME}"
32+
33+
# Copy the license to operator location to be included in the Operator image
34+
LICENSE_LOCATION="${PWD}/LICENSE"
35+
cp "${LICENSE_LOCATION}" "${OPERATOR_LOCATION}"
36+
3237
# The location of this Helm chart's copy must match what the Dockerfile of the Operator.
3338
# Also, the end location should be "helm-charts", as this is what the operator-sdk expects when building the Operator image!
3439
OPERATOR_HELM_CHARTS_LOCATION="${OPERATOR_LOCATION}/helm-charts"

snyk-operator/build/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
FROM quay.io/operator-framework/helm-operator:v0.15.1
22

3+
LABEL name="Snyk Operator" \
4+
maintainer="[email protected]" \
5+
vendor="Snyk Ltd" \
6+
summary="Snyk Operator for Snyk Controller" \
7+
description="Snyk Controller enables you to import and test your running workloads and identify vulnerabilities in their associated images and configurations that might make those workloads less secure."
8+
9+
COPY LICENSE /licenses/LICENSE
10+
311
COPY watches.yaml ${HOME}/watches.yaml
412
COPY helm-charts/ ${HOME}/helm-charts/

0 commit comments

Comments
 (0)