Fix helm docs and fakeTemplate
This commit is contained in:
parent
ad70bb172f
commit
d6cc3fd6e1
3 changed files with 6 additions and 0 deletions
|
@ -491,6 +491,7 @@ metadata:
|
|||
| controller.sysctls | object | `{}` | sysctls for controller pods # Ref: https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ |
|
||||
| controller.tcp.annotations | object | `{}` | Annotations to be added to the tcp config configmap |
|
||||
| controller.tcp.configMapNamespace | string | `""` | Allows customization of the tcp-services-configmap; defaults to $(POD_NAMESPACE) |
|
||||
| controller.templateEngine | string | `"go-template"` | Defines which template engine should be used when creating NGINX configuration. Can be 'go-template' or 'crossplane' |
|
||||
| controller.terminationGracePeriodSeconds | int | `300` | `terminationGracePeriodSeconds` to avoid killing pods before we are ready # wait up to five minutes for the drain of connections # |
|
||||
| controller.tolerations | list | `[]` | Node tolerations for server scheduling to nodes with taints # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # |
|
||||
| controller.topologySpreadConstraints | list | `[]` | Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in. # Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ # |
|
||||
|
|
|
@ -21,6 +21,7 @@ commonLabels: {}
|
|||
|
||||
controller:
|
||||
name: controller
|
||||
# -- Defines which template engine should be used when creating NGINX configuration. Can be 'go-template' or 'crossplane'
|
||||
templateEngine: "go-template"
|
||||
enableAnnotationValidations: true
|
||||
image:
|
||||
|
|
|
@ -157,6 +157,10 @@ func (ntc testNginxTestCommand) Test(cfg string) ([]byte, error) {
|
|||
|
||||
type fakeTemplate struct{}
|
||||
|
||||
func (fakeTemplate) Validate(filename string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (fakeTemplate) Write(conf *ngx_config.TemplateConfig) ([]byte, error) {
|
||||
r := []byte{}
|
||||
for _, s := range conf.Servers {
|
||||
|
|
Loading…
Reference in a new issue