Skip to content

Commit

Permalink
add custom MapHashBucketSize to NginxConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Apr 18, 2023
1 parent cc643aa commit 8fc0653
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/v1alpha1/rpaasplan_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ spec:
type: string
logFormatName:
type: string
mapHashBucketSize:
type: integer
syslogEnabled:
type: boolean
syslogFacility:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ spec:
type: string
logFormatName:
type: string
mapHashBucketSize:
type: integer
syslogEnabled:
type: boolean
syslogFacility:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/extensions.tsuru.io_rpaasplans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ spec:
type: string
logFormatName:
type: string
mapHashBucketSize:
type: integer
syslogEnabled:
type: boolean
syslogFacility:
Expand Down
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
2 changes: 1 addition & 1 deletion controllers/rpaasinstance_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fc0653

Please sign in to comment.