Skip to content

Commit

Permalink
Merge pull request #76 from startechnica/netbox-240202
Browse files Browse the repository at this point in the history
[netbox] Bump version to 5.0.10
  • Loading branch information
firmansyahn authored Jun 13, 2024
2 parents 1acb2f0 + c71e11b commit 126dbd0
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 27 deletions.
18 changes: 4 additions & 14 deletions charts/netbox/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
annotations:
artifacthub.io/changes: |
- kind: fixed
description: Add missing import if allowedHostsIncludesPodIp is true
description: Add missing parameter on external-db secret
links:
- name: GitHub Pull Request
url: https://github.com/startechnica/apps/pull/68
- kind: changed
description: Update Netbox Docker to v2.8.0
links:
- name: GitHub Releases
url: https://github.com/netbox-community/netbox-docker/releases/tag/2.8.0
- kind: changed
description: Update Netbox v3.7.8
links:
- name: GitHub Releases
url: https://github.com/netbox-community/netbox/releases/tag/v3.7.8
- name: GitHub Issue
url: https://github.com/startechnica/apps/issues/71
licenses: Apache-2.0
images: |
- name: netbox
Expand Down Expand Up @@ -53,4 +43,4 @@ keywords:
- ipam
- netbox
type: application
version: 5.0.9
version: 5.0.10
4 changes: 2 additions & 2 deletions charts/netbox/templates/Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: {{ include "netbox.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
{{- $versionLabel := dict "app.kubernetes.io/version" ( include "netbox.images.version" (dict "imageRoot" .Values.image "global" .Values.global "chart" .Chart) ) }}
{{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.commonLabels $versionLabel ) "context" . ) }}
{{- $labels := include "common.tplvalues.merge" ( dict "values" (list .Values.commonLabels $versionLabel) "context" . ) }}
labels: {{- include "common.labels.standard" (dict "customLabels" $labels "context" $) | nindent 4 }}
app.kubernetes.io/component: server
app.kubernetes.io/part-of: netbox
Expand Down Expand Up @@ -44,7 +44,7 @@ spec:
{{- end }}
spec:
{{- if .Values.affinity }}
affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.affinity "context" $) | nindent 8 }}
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }}
{{- else }}
affinity:
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAffinityPreset "customLabels" $podLabels "context" $) | nindent 10 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/netbox/templates/HorizontalPodAutoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
app.kubernetes.io/component: server
app.kubernetes.io/part-of: netbox
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
scaleTargetRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/netbox/templates/Secret/external-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ metadata:
{{- end }}
type: Opaque
data:
{{ include "netbox.databaseSecretPasswordKey" . }}: {{ include "netbox.databasePassword" }}
{{ include "netbox.databaseSecretPasswordKey" . }}: {{ include "netbox.databasePassword" . }}
{{- end }}
6 changes: 3 additions & 3 deletions charts/netbox/templates/ServiceAccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountT
metadata:
name: {{ include "netbox.serviceAccountName" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
labels: {{- include "common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $) | nindent 4 }}
{{- if or .Values.commonAnnotations .Values.serviceAccount.annotations }}
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.serviceAccount.annotations .Values.commonAnnotations ) "context" . ) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
{{- $annotations := include "common.tplvalues.merge" (dict "values" ( list .Values.serviceAccount.annotations .Values.commonAnnotations) "context" . ) }}
annotations: {{- include "common.tplvalues.render" (dict "value" $annotations "context" $) | nindent 4 }}
{{- end }}
{{- with .Values.serviceAccount.imagePullSecrets }}
imagePullSecrets:
Expand Down
4 changes: 2 additions & 2 deletions charts/netbox/templates/istio/Gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- if or .Values.ingress.annotations .Values.commonAnnotations }}
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.ingress.annotations .Values.commonAnnotations ) "context" . ) }}
{{- $annotations := include "common.tplvalues.merge" ( dict "values" (list .Values.ingress.annotations .Values.commonAnnotations) "context" . ) }}
annotations: {{- include "common.tplvalues.render" (dict "value" $annotations "context" $) | nindent 4 }}
{{- end }}
spec:
Expand Down Expand Up @@ -38,7 +38,7 @@ spec:
- {{ .name | quote }}
{{- end }}
tls:
credentialName: {{ printf "%s-tls" (include "netbox.fullname" .) }}
credentialName: {{ printf "%s-%s" (include "netbox.fullname" .) "tls" }}
mode: SIMPLE
{{- end }}
{{- end -}}
Expand Down
4 changes: 2 additions & 2 deletions charts/netbox/templates/istio/VirtualService.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
{{- end }}
route:
- destination:
host: {{ printf "%s.%s.svc.%s" (include "netbox.fullname" $) (include "common.names.namespace" .) .Values.clusterDomain }}
host: {{ printf "%s.%s.svc.%s" (include "netbox.fullname" $) (include "common.names.namespace" .) .Values.gateway.clusterDomain }}
port:
number: {{ .Values.service.ports.http }}
{{- if or .Values.tls.enabled .Values.ingress.tls }}
Expand All @@ -42,7 +42,7 @@ spec:
{{- end }}
route:
- destination:
host: {{ printf "%s.%s.svc.%s" (include "netbox.fullname" .) (include "common.names.namespace" .) .Values.clusterDomain }}
host: {{ printf "%s.%s.svc.%s" (include "netbox.fullname" .) (include "common.names.namespace" .) .Values.gateway.clusterDomain }}
{{- end }}
{{- end -}}
{{- end -}}
8 changes: 6 additions & 2 deletions charts/netbox/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,13 @@ extraEnvVars: []
## name: secret-resource
##
extraEnvs: []
## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Netbox nodes
## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Netbox server nodes
##
extraEnvVarsCM: ""
## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for Netbox nodes
## @param extraEnvVarsSecrets List of existing Secret containing extra env vars for Netbox server nodes
##
extraEnvVarsSecret: ""
extraEnvVarsSecrets: []
## @param containerPorts.http Container port to open on Netbox nodes
##
containerPorts:
Expand Down Expand Up @@ -2699,6 +2700,9 @@ gateway:
## @param gateway.gatewayApi.create Create Kubernetes Gateway API gateway HTTPRoute
##
create: false
## @param gateway.clusterDomain Name of gateway cluster domain
##
clusterDomain: cluster.local
## @param gateway.name Name of the Gateway resource
## e.g.
## name: istio-ingressgateway
Expand Down

0 comments on commit 126dbd0

Please sign in to comment.