From bf66cc886fae5dc34da400244ce26766ab870751 Mon Sep 17 00:00:00 2001 From: Paulo Sousa Date: Wed, 17 Jan 2024 16:09:43 -0300 Subject: [PATCH] add TemplateExtraVars to NginxConfig --- api/v1alpha1/rpaasplan_types.go | 2 ++ config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml | 4 ++++ config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml | 4 ++++ config/crd/bases/extensions.tsuru.io_rpaasplans.yaml | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/api/v1alpha1/rpaasplan_types.go b/api/v1alpha1/rpaasplan_types.go index f8e674785..94b4d515a 100644 --- a/api/v1alpha1/rpaasplan_types.go +++ b/api/v1alpha1/rpaasplan_types.go @@ -91,6 +91,8 @@ type NginxConfig struct { WorkerProcesses int `json:"workerProcesses,omitempty"` WorkerConnections int `json:"workerConnections,omitempty"` + + TemplateExtraVars map[string]string `json:"templateExtraVars,omitempty"` } type CacheSnapshotSyncSpec struct { diff --git a/config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml b/config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml index 36765b22a..07e7e5b28 100644 --- a/config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml +++ b/config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml @@ -540,6 +540,10 @@ spec: type: string syslogTag: type: string + templateExtraVars: + additionalProperties: + type: string + type: object upstreamKeepalive: type: integer user: diff --git a/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml b/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml index 5d15ccd37..3c998ac1d 100644 --- a/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml +++ b/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml @@ -524,6 +524,10 @@ spec: type: string syslogTag: type: string + templateExtraVars: + additionalProperties: + type: string + type: object upstreamKeepalive: type: integer user: diff --git a/config/crd/bases/extensions.tsuru.io_rpaasplans.yaml b/config/crd/bases/extensions.tsuru.io_rpaasplans.yaml index c51d5979e..f58801222 100644 --- a/config/crd/bases/extensions.tsuru.io_rpaasplans.yaml +++ b/config/crd/bases/extensions.tsuru.io_rpaasplans.yaml @@ -96,6 +96,10 @@ spec: type: string syslogTag: type: string + templateExtraVars: + additionalProperties: + type: string + type: object upstreamKeepalive: type: integer user: