From 8fc06539a3d9ea05aff63dade99aa4df3e4775b1 Mon Sep 17 00:00:00 2001 From: Paulo Sousa Date: Tue, 18 Apr 2023 16:46:28 -0300 Subject: [PATCH] add custom MapHashBucketSize to NginxConfig --- api/v1alpha1/rpaasplan_types.go | 2 ++ config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml | 2 ++ config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml | 2 ++ config/crd/bases/extensions.tsuru.io_rpaasplans.yaml | 2 ++ config/rbac/role.yaml | 1 + controllers/rpaasinstance_controller.go | 2 +- 6 files changed, 10 insertions(+), 1 deletion(-) diff --git a/api/v1alpha1/rpaasplan_types.go b/api/v1alpha1/rpaasplan_types.go index 8b4e2f8b2..4a0dcdaa5 100644 --- a/api/v1alpha1/rpaasplan_types.go +++ b/api/v1alpha1/rpaasplan_types.go @@ -76,6 +76,8 @@ type NginxConfig struct { LogAdditionalHeaders []string `json:"logAdditionalHeaders,omitempty"` LogAdditionalFields map[string]string `json:"logAdditionalFields,omitempty"` + MapHashBucketSize int `json:"mapHashBucketSize,omitempty"` + HTTPListenOptions string `json:"httpListenOptions,omitempty"` HTTPSListenOptions string `json:"httpsListenOptions,omitempty"` diff --git a/config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml b/config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml index e763868d0..8143ecb04 100644 --- a/config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml +++ b/config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml @@ -494,6 +494,8 @@ spec: type: string logFormatName: type: string + mapHashBucketSize: + type: integer syslogEnabled: type: boolean syslogFacility: diff --git a/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml b/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml index b12330129..1be4b1ba9 100644 --- a/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml +++ b/config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml @@ -470,6 +470,8 @@ spec: type: string logFormatName: type: string + mapHashBucketSize: + type: integer syslogEnabled: type: boolean syslogFacility: diff --git a/config/crd/bases/extensions.tsuru.io_rpaasplans.yaml b/config/crd/bases/extensions.tsuru.io_rpaasplans.yaml index 4bf71a36e..198686f10 100644 --- a/config/crd/bases/extensions.tsuru.io_rpaasplans.yaml +++ b/config/crd/bases/extensions.tsuru.io_rpaasplans.yaml @@ -118,6 +118,8 @@ spec: type: string logFormatName: type: string + mapHashBucketSize: + type: integer syslogEnabled: type: boolean syslogFacility: diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index d9c97c112..2429322ad 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -1,3 +1,4 @@ + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/controllers/rpaasinstance_controller.go b/controllers/rpaasinstance_controller.go index 85ddad086..bc5a09258 100644 --- a/controllers/rpaasinstance_controller.go +++ b/controllers/rpaasinstance_controller.go @@ -41,7 +41,7 @@ type RpaasInstanceReconciler struct { ImageMetadata registry.ImageMetadata } -// +kubebuilder:rbac:groups="",resources=configmaps;persistentvolumeclaims;secrets,verbs=get;list;watch;create;update;delete +// +kubebuilder:rbac:groups="",resources=configmaps;persistentvolumeclaims;secrets;services,verbs=get;list;watch;create;update;delete // +kubebuilder:rbac:groups=batch,resources=cronjobs,verbs=get;list;watch;create;update;delete // +kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=get;list;watch;create;update;delete // +kubebuilder:rbac:groups=policy,resources=poddisruptionbudgets,verbs=get;list;watch;create;update;delete