[391429] Support override for drivers.yaml
- To allow MAAS to support 3rd party hardware drivers that do not come bundled, allow the chart to override /etc/maas/drivers.yaml with user-specified values. Change-Id: I2f9930719aeaeacb135670224ffc1c99752c987f
This commit is contained in:
parent
fced4bd1d2
commit
794a8b5ffb
@ -42,3 +42,7 @@ data:
|
||||
{{ tuple "etc/_nsswitch.conf.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||
register-rack-controller.service: |
|
||||
{{ tuple "etc/_register-rack-controller.service.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||
{{- if .Values.conf.drivers }}
|
||||
drivers.yaml: |
|
||||
{{ tuple "etc/_drivers.yaml.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||
{{- end }}
|
||||
|
29
charts/maas/templates/etc/_drivers.yaml.tpl
Normal file
29
charts/maas/templates/etc/_drivers.yaml.tpl
Normal file
@ -0,0 +1,29 @@
|
||||
{{/*
|
||||
# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
*/}}
|
||||
{{- if .Values.conf.drivers }}
|
||||
{{- range .Values.conf.drivers -}}
|
||||
- comment: {{ .comment }}
|
||||
key_binary: !!binary |
|
||||
{{ .key_binary | indent 4 }}
|
||||
modaliases:
|
||||
{{ .modaliases | toYaml | indent 4 }}
|
||||
module: {{ .module }}
|
||||
package: {{ .package }}
|
||||
{{- if .blacklist }}
|
||||
blacklist: {{ .blacklist }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
{{- end }}
|
@ -81,6 +81,12 @@ spec:
|
||||
mountPath: /etc/maas/preseeds/curtin_userdata
|
||||
subPath: curtin_userdata
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- if .Values.conf.drivers }}
|
||||
- name: maas-etc
|
||||
mountPath: /etc/maas/drivers.yaml
|
||||
subPath: drivers.yaml
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
- name: maas-bin
|
||||
mountPath: /tmp/start.sh
|
||||
|
@ -152,6 +152,40 @@ conf:
|
||||
secret:
|
||||
namespace: maas
|
||||
name: maas-api-key
|
||||
drivers: null
|
||||
#### If you populates drivers, it will replace the 3rd party driver
|
||||
#### info that comes with MaaS. see structure below if it is needed
|
||||
# - blacklist: string # a kernel module to blacklist from loading if needed
|
||||
# comment: string # free form comment
|
||||
# key_binary: | # The GPG key for the repo holding the package, base64 encoded, non-ascii armored
|
||||
# mQENBFRtGAgBCADlSku65P14hVdx9E/W0n6MwuB3WGqmsyKNoa3HezFdMjWERldINNUdi8O28cZ6
|
||||
# j2+Hi9L1HeQIQ9+7FHpR3JyQePBJtRX8WSEusfRtML98opDhJxKm8Jyxb7aTvCwdNHz3yxADINkM
|
||||
# tOj5oRm7VCr8XHkG7YU27ELs8B+BXWvjO21oSosiFurnhT+H3hQsYXfYA55aa21q0qX+L5dFJSNd
|
||||
# zZVo7m9ybioVv2R5+PfBvdaSxCnmOpcGXFaKAsqVHeTW0pd3sdkin1rkbhOBaU5lFBt2ZiMtKpKH
|
||||
# pT8TZnqHpFHFbgi8j2ARJj4IDct2OGILddUIZSFyue6WE2hpV5c/ABEBAAG0OEhld2xldHQtUGFj
|
||||
# a2FyZCBDb21wYW55IFJTQSAoSFAgQ29kZXNpZ25pbmcgU2VydmljZSkgLSAxiQE+BBMBAgAoBQJU
|
||||
# bRgIAhsDBQkSzAMABgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRD63Y1ksSdeo6BJCADOfIPP
|
||||
# LPpIOnFK9jH4t8lLUd+R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||
# zRO1RDvShu8hsREaKYVMHyAeKhEYC+lX2bNCImQIs/TqhYo5sn0I5+sbpmFNwtF1gP7AF9DjcFfJ
|
||||
# ruvNnfrWpNvn7vuBH6g//Qk5ZnBpwg==
|
||||
# modaliases: # list of strings with modalias patterns that denote a need for this driver
|
||||
# - string
|
||||
# module: string # the name of the kernel module to load
|
||||
# package: string # the name of the debian package containing the kernel module
|
||||
# repository: string # URL to the debian repo containing the package
|
||||
####
|
||||
|
||||
secrets:
|
||||
maas_db:
|
||||
|
Loading…
x
Reference in New Issue
Block a user