diff --git a/charts/netbox-operator/Chart.yaml b/charts/netbox-operator/Chart.yaml index c6b520b5..30f4809c 100644 --- a/charts/netbox-operator/Chart.yaml +++ b/charts/netbox-operator/Chart.yaml @@ -20,6 +20,10 @@ dependencies: version: ^2.26.0 tags: - bitnami-common + - name: netbox + version: ^5.0.0-beta.133 + repository: oci://ghcr.io/netbox-community/netbox-chart/netbox + condition: netbox.enabled annotations: artifacthub.io/license: Apache-2.0 artifacthub.io/links: | diff --git a/charts/netbox-operator/ci/default-values.yaml b/charts/netbox-operator/ci/default-values.yaml new file mode 100644 index 00000000..8bc180f1 --- /dev/null +++ b/charts/netbox-operator/ci/default-values.yaml @@ -0,0 +1,2 @@ +netbox: + enabled: true diff --git a/charts/netbox-operator/templates/deployment.yaml b/charts/netbox-operator/templates/deployment.yaml index 71a0f85e..7b2a8f17 100644 --- a/charts/netbox-operator/templates/deployment.yaml +++ b/charts/netbox-operator/templates/deployment.yaml @@ -59,7 +59,11 @@ spec: fieldRef: fieldPath: metadata.namespace - name: NETBOX_HOST + {{- if .Values.netbox.enabled }} + value: {{ include "common.names.dependency.fullname" (dict "chartName" "netbox" "chartValues" .Values.netbox "context" $) }} + {{- else }} value: {{ .Values.host | quote }} + {{- end }} - name: NETBOX_RESTORATION_HASH_FIELD_NAME value: {{ .Values.restorationHashFieldName | quote }} - name: HTTPS_ENABLE diff --git a/charts/netbox-operator/values.yaml b/charts/netbox-operator/values.yaml index 6fba424b..af9b2ca1 100644 --- a/charts/netbox-operator/values.yaml +++ b/charts/netbox-operator/values.yaml @@ -89,6 +89,12 @@ https: false restorationHashFieldName: "netboxOperatorRestorationHash" debug: false +netbox: + enabled: false + host: "" + https: + token: + ## @section Deployment parameters ## @param command Override default container command (useful when using custom images)