Skip to content

Commit

Permalink
feat: drop support of Nginx cache sync
Browse files Browse the repository at this point in the history
  • Loading branch information
nettoclaudio committed May 17, 2023
1 parent 1cb7a44 commit 632e93d
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 797 deletions.
4 changes: 0 additions & 4 deletions api/v1alpha1/rpaasplan_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ type NginxConfig struct {
CacheSize *resource.Quantity `json:"cacheSize,omitempty"`
CacheZoneSize *resource.Quantity `json:"cacheZoneSize,omitempty"`

CacheSnapshotEnabled bool `json:"cacheSnapshotEnabled,omitempty"`
CacheSnapshotStorage CacheSnapshotStorage `json:"cacheSnapshotStorage,omitempty"`
CacheSnapshotSync CacheSnapshotSyncSpec `json:"cacheSnapshotSync,omitempty"`

LogFormat string `json:"logFormat,omitempty"`
LogFormatEscape string `json:"logFormatEscape,omitempty"`
LogFormatName string `json:"logFormatName,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions cmd/plugin/rpaasv2/cmd/info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ Plan overrides:
"image": "registry.example.com/my/repository/nginx:v1",
"config": {
"cacheEnabled": false,
"cacheSnapshotStorage": {},
"cacheSnapshotSync": {},
"workerProcesses": 4,
"workerConnections": 4096
},
Expand Down
42 changes: 0 additions & 42 deletions config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -422,48 +422,6 @@ spec:
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
cacheSnapshotEnabled:
type: boolean
cacheSnapshotStorage:
properties:
storageClassName:
type: string
storageSize:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
volumeLabels:
additionalProperties:
type: string
type: object
type: object
cacheSnapshotSync:
properties:
cmdPVCToPod:
description: CmdPVCToPod is used to customize command
used to sync persistent storage (PVC) to memory
cache (POD)
items:
type: string
type: array
cmdPodToPVC:
description: CmdPodToPVC is used to customize command
used to sync memory cache (POD) to persistent storage
(PVC)
items:
type: string
type: array
image:
description: Container is the image used to sync the
containers default is bitnami/kubectl:latest
type: string
schedule:
description: Schedule is the the cron time string
format, see https://en.wikipedia.org/wiki/Cron.
type: string
type: object
cacheZoneSize:
anyOf:
- type: integer
Expand Down
42 changes: 0 additions & 42 deletions config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,48 +398,6 @@ spec:
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
cacheSnapshotEnabled:
type: boolean
cacheSnapshotStorage:
properties:
storageClassName:
type: string
storageSize:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
volumeLabels:
additionalProperties:
type: string
type: object
type: object
cacheSnapshotSync:
properties:
cmdPVCToPod:
description: CmdPVCToPod is used to customize command
used to sync persistent storage (PVC) to memory cache
(POD)
items:
type: string
type: array
cmdPodToPVC:
description: CmdPodToPVC is used to customize command
used to sync memory cache (POD) to persistent storage
(PVC)
items:
type: string
type: array
image:
description: Container is the image used to sync the containers
default is bitnami/kubectl:latest
type: string
schedule:
description: Schedule is the the cron time string format,
see https://en.wikipedia.org/wiki/Cron.
type: string
type: object
cacheZoneSize:
anyOf:
- type: integer
Expand Down
40 changes: 0 additions & 40 deletions config/crd/bases/extensions.tsuru.io_rpaasplans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,46 +54,6 @@ spec:
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
cacheSnapshotEnabled:
type: boolean
cacheSnapshotStorage:
properties:
storageClassName:
type: string
storageSize:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
volumeLabels:
additionalProperties:
type: string
type: object
type: object
cacheSnapshotSync:
properties:
cmdPVCToPod:
description: CmdPVCToPod is used to customize command used
to sync persistent storage (PVC) to memory cache (POD)
items:
type: string
type: array
cmdPodToPVC:
description: CmdPodToPVC is used to customize command used
to sync memory cache (POD) to persistent storage (PVC)
items:
type: string
type: array
image:
description: Container is the image used to sync the containers
default is bitnami/kubectl:latest
type: string
schedule:
description: Schedule is the the cron time string format,
see https://en.wikipedia.org/wiki/Cron.
type: string
type: object
cacheZoneSize:
anyOf:
- type: integer
Expand Down
Loading

0 comments on commit 632e93d

Please sign in to comment.