diff --git a/bin/cap-op-plugin.js b/bin/cap-op-plugin.js index 30dbd6a..dcaf921 100755 --- a/bin/cap-op-plugin.js +++ b/bin/cap-op-plugin.js @@ -184,8 +184,8 @@ async function generateRuntimeValues(option, inputYamlPath) { answerStruct = yaml.parse(await cds.utils.read(cds.utils.path.join(cds.root, inputYamlPath))) const requiredFields = isServiceOnly - ? ['appName', 'capOperatorSubdomain', 'clusterDomain', 'globalAccountId'] - : ['appName', 'capOperatorSubdomain', 'clusterDomain', 'globalAccountId', 'providerSubdomain', 'tenantId'] + ? ['appName', 'capOperatorSubdomain', 'clusterDomain', 'globalAccountId', 'providerSubaccountId'] + : ['appName', 'capOperatorSubdomain', 'clusterDomain', 'globalAccountId', 'providerSubaccountId', 'providerSubdomain', 'tenantId'] const missingFields = requiredFields.filter(field => !answerStruct[field]) if (missingFields.length) { @@ -198,6 +198,7 @@ async function generateRuntimeValues(option, inputYamlPath) { ['Enter CAP Operator subdomain (In kyma cluster it is "cap-op" by default): ', 'cap-op', true], ['Enter your cluster shoot domain: ', await getShootDomain(), true], ['Enter your global account ID: ', '', true], + ['Enter your provider sub-account ID: ', '', true], ...isServiceOnly ? [] : [['Enter your provider subdomain: ', '', true]], ...isServiceOnly ? [] : [['Enter your provider tenant ID: ', '', true]], ['Enter your HANA database instance ID: ', '', false], @@ -205,7 +206,7 @@ async function generateRuntimeValues(option, inputYamlPath) { ] const answerKeys = [ - 'appName', 'capOperatorSubdomain', 'clusterDomain', 'globalAccountId', + 'appName', 'capOperatorSubdomain', 'clusterDomain', 'globalAccountId', 'providerSubaccountId', ...isServiceOnly ? [] : ['providerSubdomain'], ...isServiceOnly ? [] : ['tenantId'], 'hanaInstanceId', 'imagePullSecret' diff --git a/files/chart/values.schema.json b/files/chart/values.schema.json index 6fe3dc3..4dff185 100644 --- a/files/chart/values.schema.json +++ b/files/chart/values.schema.json @@ -2897,7 +2897,6 @@ } }, "required": [ - "globalAccountId", "provider" ], "type": "object" diff --git a/files/chart/values.yaml.hbs b/files/chart/values.yaml.hbs index 7e9f118..c9a9e55 100644 --- a/files/chart/values.yaml.hbs +++ b/files/chart/values.yaml.hbs @@ -16,7 +16,9 @@ app: btp: # -- BTP Global account identifier where the application is hosted - globalAccountId: # mandatory let helm fail if not provided + globalAccountId: + # -- BTP Provider sub-account identifier where the application is hosted + providerSubaccountId: {{#isApp}} provider: # -- Subdomain of the provider sub-account where application services are created diff --git a/files/configurableTemplatesChart/values.schema.json b/files/configurableTemplatesChart/values.schema.json index 464bca0..67a2fd4 100644 --- a/files/configurableTemplatesChart/values.schema.json +++ b/files/configurableTemplatesChart/values.schema.json @@ -149,7 +149,6 @@ } }, "required": [ - "globalAccountId", "provider" ], "type": "object" diff --git a/files/configurableTemplatesChart/values.yaml.hbs b/files/configurableTemplatesChart/values.yaml.hbs index e64b136..32dd55d 100644 --- a/files/configurableTemplatesChart/values.yaml.hbs +++ b/files/configurableTemplatesChart/values.yaml.hbs @@ -16,7 +16,9 @@ app: btp: # -- BTP Global account identifier where the application is hosted - globalAccountId: # mandatory let helm fail if not provided + globalAccountId: + # -- BTP Provider sub-account identifier where the application is hosted + providerSubaccountId: {{#isApp}} provider: # -- Subdomain of the provider sub-account where application services are created diff --git a/files/runtime-values.yaml.hbs b/files/runtime-values.yaml.hbs index 05f91f8..f3aac9b 100644 --- a/files/runtime-values.yaml.hbs +++ b/files/runtime-values.yaml.hbs @@ -56,6 +56,7 @@ app: btp: globalAccountId: {{globalAccountId}} + providerSubaccountId: {{providerSubaccountId}} {{#isApp}} provider: subdomain: {{providerSubdomain}} diff --git a/hack/schema-generation.go b/hack/schema-generation.go index 1754416..2416f51 100644 --- a/hack/schema-generation.go +++ b/hack/schema-generation.go @@ -44,7 +44,7 @@ type serviceBindingExt struct { } type btp struct { - GlobalAccountId string `json:"globalAccountId"` + GlobalAccountId string `json:"globalAccountId,omitempty"` ProviderSubaccountId string `json:"providerSubaccountId,omitempty"` Provider provider `json:"provider"` } diff --git a/test/cap-op-plugin.test.js b/test/cap-op-plugin.test.js index e406655..80d39a7 100644 --- a/test/cap-op-plugin.test.js +++ b/test/cap-op-plugin.test.js @@ -94,10 +94,11 @@ EXAMPLES rlQuestion.onSecondCall().callsArgWith(1, '') rlQuestion.onThirdCall().callsArgWith(1, 'c-abc.kyma.ondemand.com') rlQuestion.onCall(3).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') - rlQuestion.onCall(4).callsArgWith(1, 'bem-aad-sadad-123456789012') - rlQuestion.onCall(5).callsArgWith(1, 'dasdsd-1234-1234-1234-123456789012') - rlQuestion.onCall(6).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') - rlQuestion.onCall(7).callsArgWith(1, 'regcred') + rlQuestion.onCall(4).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') + rlQuestion.onCall(5).callsArgWith(1, 'bem-aad-sadad-123456789012') + rlQuestion.onCall(6).callsArgWith(1, 'dasdsd-1234-1234-1234-123456789012') + rlQuestion.onCall(7).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') + rlQuestion.onCall(8).callsArgWith(1, 'regcred') cds.root = bookshop await capOperatorPlugin('generate-runtime-values') @@ -131,10 +132,11 @@ EXAMPLES rlQuestion.onSecondCall().callsArgWith(1, '') rlQuestion.onThirdCall().callsArgWith(1, 'c-abc.kyma.ondemand.com') rlQuestion.onCall(3).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') - rlQuestion.onCall(4).callsArgWith(1, 'bem-aad-sadad-123456789012') - rlQuestion.onCall(5).callsArgWith(1, 'dasdsd-1234-1234-1234-123456789012') - rlQuestion.onCall(6).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') - rlQuestion.onCall(7).callsArgWith(1, 'regcred') + rlQuestion.onCall(4).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') + rlQuestion.onCall(5).callsArgWith(1, 'bem-aad-sadad-123456789012') + rlQuestion.onCall(6).callsArgWith(1, 'dasdsd-1234-1234-1234-123456789012') + rlQuestion.onCall(7).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') + rlQuestion.onCall(8).callsArgWith(1, 'regcred') cds.root = bookshop await capOperatorPlugin('generate-runtime-values') @@ -157,8 +159,9 @@ EXAMPLES rlQuestion.onSecondCall().callsArgWith(1, '') rlQuestion.onThirdCall().callsArgWith(1, 'c-abc.kyma.ondemand.com') rlQuestion.onCall(3).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') - rlQuestion.onCall(4).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') - rlQuestion.onCall(5).callsArgWith(1, 'regcred') + rlQuestion.onCall(4).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') + rlQuestion.onCall(5).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') + rlQuestion.onCall(6).callsArgWith(1, 'regcred') cds.root = bookshop await capOperatorPlugin('generate-runtime-values') @@ -250,10 +253,11 @@ EXAMPLES rlQuestion.onSecondCall().callsArgWith(1, '') rlQuestion.onThirdCall().callsArgWith(1, 'c-abc.kyma.ondemand.com') rlQuestion.onCall(3).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') - rlQuestion.onCall(4).callsArgWith(1, 'bem-aad-sadad-123456789012') - rlQuestion.onCall(5).callsArgWith(1, 'dasdsd-1234-1234-1234-123456789012') - rlQuestion.onCall(6).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') - rlQuestion.onCall(7).callsArgWith(1, 'regcred') + rlQuestion.onCall(4).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') + rlQuestion.onCall(5).callsArgWith(1, 'bem-aad-sadad-123456789012') + rlQuestion.onCall(6).callsArgWith(1, 'dasdsd-1234-1234-1234-123456789012') + rlQuestion.onCall(7).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') + rlQuestion.onCall(8).callsArgWith(1, 'regcred') cds.root = bookshop await capOperatorPlugin('generate-runtime-values') @@ -277,10 +281,11 @@ EXAMPLES rlQuestion.onSecondCall().callsArgWith(1, '') rlQuestion.onThirdCall().callsArgWith(1, 'c-abc.kyma.ondemand.com') rlQuestion.onCall(3).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') - rlQuestion.onCall(4).callsArgWith(1, 'bem-aad-sadad-123456789012') - rlQuestion.onCall(5).callsArgWith(1, 'dasdsd-1234-1234-1234-123456789012') - rlQuestion.onCall(6).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') - rlQuestion.onCall(7).callsArgWith(1, 'regcred') + rlQuestion.onCall(4).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') + rlQuestion.onCall(5).callsArgWith(1, 'bem-aad-sadad-123456789012') + rlQuestion.onCall(6).callsArgWith(1, 'dasdsd-1234-1234-1234-123456789012') + rlQuestion.onCall(7).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') + rlQuestion.onCall(8).callsArgWith(1, 'regcred') cds.root = bookshop await capOperatorPlugin('generate-runtime-values') @@ -304,8 +309,9 @@ EXAMPLES rlQuestion.onSecondCall().callsArgWith(1, '') rlQuestion.onThirdCall().callsArgWith(1, 'c-abc.kyma.ondemand.com') rlQuestion.onCall(3).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') - rlQuestion.onCall(4).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') - rlQuestion.onCall(5).callsArgWith(1, 'regcred') + rlQuestion.onCall(4).callsArgWith(1, 'dc94db56-asda-adssa-dada-123456789012') + rlQuestion.onCall(5).callsArgWith(1, 'sdasd-4c4d-4d4d-4d4d-123456789012') + rlQuestion.onCall(6).callsArgWith(1, 'regcred') cds.root = bookshop await capOperatorPlugin('generate-runtime-values') diff --git a/test/files/expectedChart/runtime-values-ias.yaml b/test/files/expectedChart/runtime-values-ias.yaml index 63c2a5a..ca8d376 100644 --- a/test/files/expectedChart/runtime-values-ias.yaml +++ b/test/files/expectedChart/runtime-values-ias.yaml @@ -28,6 +28,7 @@ app: app: istio-ingressgateway btp: globalAccountId: dc94db56-asda-adssa-dada-123456789012 + providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 provider: subdomain: bem-aad-sadad-123456789012 tenantId: dasdsd-1234-1234-1234-123456789012 diff --git a/test/files/expectedChart/runtime-values-svc-ias.yaml b/test/files/expectedChart/runtime-values-svc-ias.yaml index 9561c60..64d887a 100644 --- a/test/files/expectedChart/runtime-values-svc-ias.yaml +++ b/test/files/expectedChart/runtime-values-svc-ias.yaml @@ -16,6 +16,7 @@ app: app: istio-ingressgateway btp: globalAccountId: dc94db56-asda-adssa-dada-123456789012 + providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 imagePullSecrets: - regcred workloads: diff --git a/test/files/expectedChart/runtime-values-svc.yaml b/test/files/expectedChart/runtime-values-svc.yaml index e6c8290..82d40e9 100644 --- a/test/files/expectedChart/runtime-values-svc.yaml +++ b/test/files/expectedChart/runtime-values-svc.yaml @@ -11,6 +11,7 @@ app: app: istio-ingressgateway btp: globalAccountId: dc94db56-asda-adssa-dada-123456789012 + providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 imagePullSecrets: - regcred workloads: diff --git a/test/files/expectedChart/runtime-values.yaml b/test/files/expectedChart/runtime-values.yaml index 61b6eb0..f6d5370 100644 --- a/test/files/expectedChart/runtime-values.yaml +++ b/test/files/expectedChart/runtime-values.yaml @@ -20,6 +20,7 @@ app: app: istio-ingressgateway btp: globalAccountId: dc94db56-asda-adssa-dada-123456789012 + providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 provider: subdomain: bem-aad-sadad-123456789012 tenantId: dasdsd-1234-1234-1234-123456789012 diff --git a/test/files/expectedChart/values-ias.yaml b/test/files/expectedChart/values-ias.yaml index b9ee4dd..a5f7a44 100644 --- a/test/files/expectedChart/values-ias.yaml +++ b/test/files/expectedChart/values-ias.yaml @@ -103,6 +103,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null provider: subdomain: null tenantId: null diff --git a/test/files/expectedChart/values-svc-ias.yaml b/test/files/expectedChart/values-svc-ias.yaml index 4294176..0475110 100644 --- a/test/files/expectedChart/values-svc-ias.yaml +++ b/test/files/expectedChart/values-svc-ias.yaml @@ -65,6 +65,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null imagePullSecrets: [] workloads: server: diff --git a/test/files/expectedChart/values-svc.yaml b/test/files/expectedChart/values-svc.yaml index 9e0a926..be42e5b 100644 --- a/test/files/expectedChart/values-svc.yaml +++ b/test/files/expectedChart/values-svc.yaml @@ -60,6 +60,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null imagePullSecrets: [] workloads: server: diff --git a/test/files/expectedChart/values.yaml b/test/files/expectedChart/values.yaml index 614b165..92652ec 100644 --- a/test/files/expectedChart/values.yaml +++ b/test/files/expectedChart/values.yaml @@ -94,6 +94,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null provider: subdomain: null tenantId: null diff --git a/test/files/expectedChart/valuesWithDestination.yaml b/test/files/expectedChart/valuesWithDestination.yaml index 614b165..92652ec 100644 --- a/test/files/expectedChart/valuesWithDestination.yaml +++ b/test/files/expectedChart/valuesWithDestination.yaml @@ -94,6 +94,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null provider: subdomain: null tenantId: null diff --git a/test/files/expectedChart/valuesWithMTA.yaml b/test/files/expectedChart/valuesWithMTA.yaml index 2012d88..0974cf4 100644 --- a/test/files/expectedChart/valuesWithMTA.yaml +++ b/test/files/expectedChart/valuesWithMTA.yaml @@ -120,6 +120,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null provider: subdomain: null tenantId: null diff --git a/test/files/expectedConfigurableTemplatesChart/runtime-values-ias.yaml b/test/files/expectedConfigurableTemplatesChart/runtime-values-ias.yaml index 5404471..6a4865a 100644 --- a/test/files/expectedConfigurableTemplatesChart/runtime-values-ias.yaml +++ b/test/files/expectedConfigurableTemplatesChart/runtime-values-ias.yaml @@ -28,6 +28,7 @@ app: app: istio-ingressgateway btp: globalAccountId: dc94db56-asda-adssa-dada-123456789012 + providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 provider: subdomain: bem-aad-sadad-123456789012 tenantId: dasdsd-1234-1234-1234-123456789012 diff --git a/test/files/expectedConfigurableTemplatesChart/runtime-values-svc.yaml b/test/files/expectedConfigurableTemplatesChart/runtime-values-svc.yaml index 123db5e..4bd636c 100644 --- a/test/files/expectedConfigurableTemplatesChart/runtime-values-svc.yaml +++ b/test/files/expectedConfigurableTemplatesChart/runtime-values-svc.yaml @@ -11,6 +11,7 @@ app: app: istio-ingressgateway btp: globalAccountId: dc94db56-asda-adssa-dada-123456789012 + providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 imagePullSecrets: - regcred hanaInstanceId: sdasd-4c4d-4d4d-4d4d-123456789012 diff --git a/test/files/expectedConfigurableTemplatesChart/runtime-values.yaml b/test/files/expectedConfigurableTemplatesChart/runtime-values.yaml index 96fc9c6..ec099ef 100644 --- a/test/files/expectedConfigurableTemplatesChart/runtime-values.yaml +++ b/test/files/expectedConfigurableTemplatesChart/runtime-values.yaml @@ -20,6 +20,7 @@ app: app: istio-ingressgateway btp: globalAccountId: dc94db56-asda-adssa-dada-123456789012 + providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 provider: subdomain: bem-aad-sadad-123456789012 tenantId: dasdsd-1234-1234-1234-123456789012 diff --git a/test/files/expectedConfigurableTemplatesChart/values-ias.yaml b/test/files/expectedConfigurableTemplatesChart/values-ias.yaml index c58ca43..fdc5b51 100644 --- a/test/files/expectedConfigurableTemplatesChart/values-ias.yaml +++ b/test/files/expectedConfigurableTemplatesChart/values-ias.yaml @@ -103,6 +103,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null provider: subdomain: null tenantId: null diff --git a/test/files/expectedConfigurableTemplatesChart/values-modified-svc.yaml b/test/files/expectedConfigurableTemplatesChart/values-modified-svc.yaml index 8d4e74a..6adcc8b 100644 --- a/test/files/expectedConfigurableTemplatesChart/values-modified-svc.yaml +++ b/test/files/expectedConfigurableTemplatesChart/values-modified-svc.yaml @@ -60,6 +60,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null imagePullSecrets: [] workloads: server: diff --git a/test/files/expectedConfigurableTemplatesChart/values-modified.yaml b/test/files/expectedConfigurableTemplatesChart/values-modified.yaml index cb430eb..0020bba 100644 --- a/test/files/expectedConfigurableTemplatesChart/values-modified.yaml +++ b/test/files/expectedConfigurableTemplatesChart/values-modified.yaml @@ -94,6 +94,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null provider: subdomain: null tenantId: null diff --git a/test/files/expectedConfigurableTemplatesChart/values-svc-ias.yaml b/test/files/expectedConfigurableTemplatesChart/values-svc-ias.yaml index 264bcf1..41608f5 100644 --- a/test/files/expectedConfigurableTemplatesChart/values-svc-ias.yaml +++ b/test/files/expectedConfigurableTemplatesChart/values-svc-ias.yaml @@ -65,6 +65,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null imagePullSecrets: [] hanaInstanceId: null workloads: diff --git a/test/files/expectedConfigurableTemplatesChart/values-svc.yaml b/test/files/expectedConfigurableTemplatesChart/values-svc.yaml index 36cb949..1050305 100644 --- a/test/files/expectedConfigurableTemplatesChart/values-svc.yaml +++ b/test/files/expectedConfigurableTemplatesChart/values-svc.yaml @@ -60,6 +60,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null imagePullSecrets: [] hanaInstanceId: null workloads: diff --git a/test/files/expectedConfigurableTemplatesChart/values.yaml b/test/files/expectedConfigurableTemplatesChart/values.yaml index b1f3533..ed0521f 100644 --- a/test/files/expectedConfigurableTemplatesChart/values.yaml +++ b/test/files/expectedConfigurableTemplatesChart/values.yaml @@ -94,6 +94,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null provider: subdomain: null tenantId: null diff --git a/test/files/expectedConfigurableTemplatesChart/valuesWithMTA.yaml b/test/files/expectedConfigurableTemplatesChart/valuesWithMTA.yaml index c7fe38b..8baf049 100644 --- a/test/files/expectedConfigurableTemplatesChart/valuesWithMTA.yaml +++ b/test/files/expectedConfigurableTemplatesChart/valuesWithMTA.yaml @@ -120,6 +120,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null provider: subdomain: null tenantId: null diff --git a/test/files/input_values.yaml b/test/files/input_values.yaml index eeae9af..49ecd60 100644 --- a/test/files/input_values.yaml +++ b/test/files/input_values.yaml @@ -2,6 +2,7 @@ appName: bkshop capOperatorSubdomain: cap-op clusterDomain: c-abc.kyma.ondemand.com globalAccountId: dc94db56-asda-adssa-dada-123456789012 +providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 providerSubdomain: bem-aad-sadad-123456789012 tenantId: dasdsd-1234-1234-1234-123456789012 imagePullSecret: regcred diff --git a/test/files/input_values_wrong.yaml b/test/files/input_values_wrong.yaml index 7c64ebe..d679040 100644 --- a/test/files/input_values_wrong.yaml +++ b/test/files/input_values_wrong.yaml @@ -1,6 +1,7 @@ capOperatorSubdomain: cap-op clusterDomain: c-abc.kyma.ondemand.com globalAccountId: dc94db56-asda-adssa-dada-123456789012 +providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 providerSubdomain: bem-aad-sadad-123456789012 tenantId: dasdsd-1234-1234-1234-123456789012 imagePullSecret: regcred diff --git a/test/files/runtime-values-of-simple-chart.yaml b/test/files/runtime-values-of-simple-chart.yaml index 61b6eb0..f6d5370 100644 --- a/test/files/runtime-values-of-simple-chart.yaml +++ b/test/files/runtime-values-of-simple-chart.yaml @@ -20,6 +20,7 @@ app: app: istio-ingressgateway btp: globalAccountId: dc94db56-asda-adssa-dada-123456789012 + providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 provider: subdomain: bem-aad-sadad-123456789012 tenantId: dasdsd-1234-1234-1234-123456789012 diff --git a/test/files/runtime-values-of-simple-service-chart.yaml b/test/files/runtime-values-of-simple-service-chart.yaml index e6c8290..82d40e9 100644 --- a/test/files/runtime-values-of-simple-service-chart.yaml +++ b/test/files/runtime-values-of-simple-service-chart.yaml @@ -11,6 +11,7 @@ app: app: istio-ingressgateway btp: globalAccountId: dc94db56-asda-adssa-dada-123456789012 + providerSubaccountId: dc94db56-asda-adssa-dada-123456789012 imagePullSecrets: - regcred workloads: diff --git a/test/files/updatedValues.schema.json b/test/files/updatedValues.schema.json index e7e8923..955d5cf 100644 --- a/test/files/updatedValues.schema.json +++ b/test/files/updatedValues.schema.json @@ -2373,12 +2373,14 @@ }, "provider": { "$ref": "#/$defs/provider" + }, + "providerSubaccountId": { + "type": "string" } }, "additionalProperties": false, "type": "object", "required": [ - "globalAccountId", "provider" ] }, diff --git a/test/files/values-of-simple-chart-filled.yaml b/test/files/values-of-simple-chart-filled.yaml index 303fab4..2bfa6b9 100644 --- a/test/files/values-of-simple-chart-filled.yaml +++ b/test/files/values-of-simple-chart-filled.yaml @@ -94,6 +94,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null provider: subdomain: null tenantId: null diff --git a/test/files/values-of-simple-service-chart-filled.yaml b/test/files/values-of-simple-service-chart-filled.yaml index 426d401..f199c17 100644 --- a/test/files/values-of-simple-service-chart-filled.yaml +++ b/test/files/values-of-simple-service-chart-filled.yaml @@ -60,6 +60,7 @@ app: app: istio-ingressgateway btp: globalAccountId: null + providerSubaccountId: null imagePullSecrets: [] workloads: server: