Skip to content

Commit

Permalink
Enable current configuration load
Browse files Browse the repository at this point in the history
  • Loading branch information
KsaweryZietara committed Dec 23, 2024
1 parent 0341d9f commit 62d33c1
Show file tree
Hide file tree
Showing 52 changed files with 57 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/broker/plans_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ type RootSchema struct {
ShowFormView bool `json:"_show_form_view"`
// Specifies in what order properties will be displayed on the form
ControlsOrder []string `json:"_controlsOrder"`
// Specified to true loads current instance configuration into the update instance schema
LoadCurrentConfig bool `json:"_load_current_config"`
}

type ProvisioningProperties struct {
Expand Down Expand Up @@ -362,9 +364,10 @@ func NewSchema(properties interface{}, update bool, required []string) *RootSche
Type: Type{
Type: "object",
},
Properties: properties,
ShowFormView: true,
Required: required,
Properties: properties,
ShowFormView: true,
Required: required,
LoadCurrentConfig: true,
}

if update {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/aws/aws-schema-eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/aws/aws-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/aws/free-aws-schema-eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"modules": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/aws/free-aws-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"modules": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/aws/update-aws-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"autoScalerMin",
"autoScalerMax"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/azure/azure-lite-schema-eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/azure/azure-lite-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/azure/azure-schema-eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/azure/azure-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/azure/azure-trial-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"name",
"modules"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"modules": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/azure/free-azure-schema-eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"modules": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/azure/free-azure-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"modules": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"autoScalerMin",
"autoScalerMax"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"autoScalerMin",
"autoScalerMax"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/azure/update-azure-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"autoScalerMin",
"autoScalerMax"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/gcp/gcp-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/gcp/update-gcp-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"autoScalerMin",
"autoScalerMax"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"shootDomain",
"modules"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"kubeconfig": {
Expand Down
1 change: 1 addition & 0 deletions internal/broker/testdata/own-cluster-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"shootDomain",
"modules"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"kubeconfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"oidc",
"administrators"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"administrators": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules",
"networking"
],
"_load_current_config": true,
"_show_form_view": true,
"properties": {
"autoScalerMax": {
Expand Down
Loading

0 comments on commit 62d33c1

Please sign in to comment.