Skip to content

Commit

Permalink
Use NetBox as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Oct 25, 2024
1 parent cda344d commit 53cb652
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/netbox-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions charts/netbox-operator/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
netbox:
enabled: true
4 changes: 4 additions & 0 deletions charts/netbox-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions charts/netbox-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53cb652

Please sign in to comment.