Skip to content

Commit

Permalink
Add enforceQuota to resource editor
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 6, 2023
1 parent 1277c03 commit 3299a7f
Show file tree
Hide file tree
Showing 498 changed files with 573 additions and 6 deletions.
6 changes: 4 additions & 2 deletions apis/shared/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ type UIParameters struct {
}

type UIParameterTemplate struct {
Options *releasesapi.ChartSourceRef `json:"options,omitempty"`
Editor *releasesapi.ChartSourceRef `json:"editor,omitempty"`
Options *releasesapi.ChartSourceRef `json:"options,omitempty"`
Editor *releasesapi.ChartSourceRef `json:"editor,omitempty"`
EnforceQuota bool `json:"enforceQuota"`
// +optional
Actions []*ActionTemplateGroup `json:"actions,omitempty"`
// app.kubernetes.io/instance label must be updated at these paths when refilling metadata
Expand Down Expand Up @@ -136,6 +137,7 @@ type ActionTemplate struct {
Flow string `json:"flow"`
DisabledTemplate string `json:"disabledTemplate,omitempty"`
Editor *releasesapi.ChartSourceRef `json:"editor,omitempty"`
EnforceQuota bool `json:"enforceQuota"`
}

type ActionInfo struct {
Expand Down
6 changes: 4 additions & 2 deletions apis/ui/v1alpha1/resourceeditor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ type ResourceEditorSpec struct {
}

type UIParameters struct {
Options *releasesapi.ChartSourceRef `json:"options,omitempty"`
Editor *releasesapi.ChartSourceRef `json:"editor,omitempty"`
Options *releasesapi.ChartSourceRef `json:"options,omitempty"`
Editor *releasesapi.ChartSourceRef `json:"editor,omitempty"`
EnforceQuota bool `json:"enforceQuota"`
// app.kubernetes.io/instance label must be updated at these paths when refilling metadata
// +optional
InstanceLabelPaths []string `json:"instanceLabelPaths,omitempty"`
Expand All @@ -82,6 +83,7 @@ type ActionTemplate struct {
Flow string `json:"flow"`
DisabledTemplate string `json:"disabledTemplate,omitempty"`
Editor *releasesapi.ChartSourceRef `json:"editor,omitempty"`
EnforceQuota bool `json:"enforceQuota"`
}

type VariantRef struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
1 change: 1 addition & 0 deletions hub/resourceeditors/acme.cert-manager.io/v1/orders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
1 change: 1 addition & 0 deletions hub/resourceeditors/app.k8s.io/v1beta1/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
instanceLabelPaths:
- spec.selector.matchLabels
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
1 change: 1 addition & 0 deletions hub/resourceeditors/apps/v1/daemonsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
1 change: 1 addition & 0 deletions hub/resourceeditors/apps/v1/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
1 change: 1 addition & 0 deletions hub/resourceeditors/apps/v1/replicasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
1 change: 1 addition & 0 deletions hub/resourceeditors/apps/v1/statefulsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
1 change: 1 addition & 0 deletions hub/resourceeditors/batch/v1/cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
1 change: 1 addition & 0 deletions hub/resourceeditors/batch/v1/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
1 change: 1 addition & 0 deletions hub/resourceeditors/batch/v1beta1/cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.17
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ spec:
kind: HelmRepository
name: bytebuilders-ui
version: v0.4.18
enforceQuota: false
Loading

0 comments on commit 3299a7f

Please sign in to comment.