Skip to content

Commit 13b418f

Browse files
authored
feat: helm chart crossplane-provider-sap-btp-account - BTP subscriptions field "parameters" added
* chore(ci): update Helm Chart helm/charts/crossplane-provider-sap-btp-account/README.md file --------- Co-authored-by: midhank <midhank@users.noreply.github.com>
1 parent 00cfacb commit 13b418f

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

helm/charts/crossplane-provider-sap-btp-account/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ icon: "https://avatars.githubusercontent.com/u/45158470?s=48&v=4"
1616
# This is the chart version. This version number should be incremented each time you make changes
1717
# to the chart and its templates, including the app version.
1818
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19-
version: 0.0.11
19+
version: 0.0.12
2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.

helm/charts/crossplane-provider-sap-btp-account/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# crossplane-provider-sap-btp-account
44

5-
![Version: 0.0.11](https://img.shields.io/badge/Version-0.0.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.2](https://img.shields.io/badge/AppVersion-1.1.2-informational?style=flat-square)
5+
![Version: 0.0.12](https://img.shields.io/badge/Version-0.0.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.2](https://img.shields.io/badge/AppVersion-1.1.2-informational?style=flat-square)
66

77
A Helm chart to template crossplane manifests to manage SAP BTP resources.
88

@@ -18,7 +18,7 @@ A Helm chart to template crossplane manifests to manage SAP BTP resources.
1818
| Key | Type | Default | Description |
1919
|-----|------|---------|-------------|
2020
| accounts | list | {} | accounts contains information and configuration about a specifig [BTP Global Account](https://help.sap.com/docs/btp/sap-business-technology-platform/getting-global-account). :exclamation::exclamation: Managing BTP Global Accounts is NOT possible at the moment :exclamation::exclamation: |
21-
| accounts[0] | object | `{"btpSapCrossplaneProviderConfigRefName":"","subAccounts":[{"entitlements":[{"amount":0,"name":"","permitNumericQuota":false,"serviceName":"","servicePlanName":""}],"forProvider":{"betaEnabled":null,"description":"","displayName":"","region":"eu01","subaccountAdmins":["your.name@sap.com"],"subdomain":"dev-eu01","usedForProduction":"NOT_USED_FOR_PRODUCTION"},"metadata":{"annotations":{"CloudManagement":{"crossplane.io/external-name":"..."},"ServiceManager":{"crossplane.io/external-name":"..."}}},"name":"","services":{"cloudManagement":false,"serviceManager":false},"subscriptions":[{"appName":"","name":"","planName":"","writeConnectionSecretToRef":{"name":"","namespace":"ns1"}}]}]}` | btpSapCrossplaneProviderConfigRefName defines crossplane provider configuration reference name (identifier) of a [BTP Global Account](https://help.sap.com/docs/btp/sap-business-technology-platform/getting-global-account)! |
21+
| accounts[0] | object | `{"btpSapCrossplaneProviderConfigRefName":"","subAccounts":[{"entitlements":[{"amount":0,"name":"","permitNumericQuota":false,"serviceName":"","servicePlanName":""}],"forProvider":{"betaEnabled":null,"description":"","displayName":"","region":"eu01","subaccountAdmins":["your.name@sap.com"],"subdomain":"dev-eu01","usedForProduction":"NOT_USED_FOR_PRODUCTION"},"metadata":{"annotations":{"CloudManagement":{"crossplane.io/external-name":"..."},"ServiceManager":{"crossplane.io/external-name":"..."}}},"name":"","services":{"cloudManagement":false,"serviceManager":false},"subscriptions":[{"appName":"","name":"","parameters":{},"planName":"","writeConnectionSecretToRef":{"name":"","namespace":"ns1"}}]}]}` | btpSapCrossplaneProviderConfigRefName defines crossplane provider configuration reference name (identifier) of a [BTP Global Account](https://help.sap.com/docs/btp/sap-business-technology-platform/getting-global-account)! |
2222
| accounts[0].subAccounts | list | {} | subAccounts contains information and configuration about [BTP Sub-Accounts](https://help.sap.com/docs/btp/sap-business-technology-platform/account-model#loio8d6e3a0fa4ab43e4a421d3ed08128afa). |
2323
| accounts[0].subAccounts[0].entitlements | list | {} | entitlements defines [BTP Entitlements](https://help.sap.com/docs/btp/sap-business-technology-platform/entitlements-and-quotas) for this [BTP Sub-Account](https://help.sap.com/docs/btp/sap-business-technology-platform/account-model#loio8d6e3a0fa4ab43e4a421d3ed08128afa). Learn more about managing BTP Entitlement with crossplane [here](https://doc.crds.dev/github.com/SAP/crossplane-provider-btp/account.btp.sap.crossplane.io/Entitlement/v1alpha1@v1.1.2). |
2424
| accounts[0].subAccounts[0].entitlements[0].amount | int | `0` | Used when permitNumericQuota=true. Only set amount for multitenant applications and services that do not permit a numeric quota assignment! |
@@ -40,6 +40,7 @@ A Helm chart to template crossplane manifests to manage SAP BTP resources.
4040
| accounts[0].subAccounts[0].subscriptions | list | {} | Define Subscriptions for this [BTP Sub-Account](https://help.sap.com/docs/btp/sap-business-technology-platform/account-model#loio8d6e3a0fa4ab43e4a421d3ed08128afa) to subscribe to [BTP Services](https://help.sap.com/docs/btp/sap-business-technology-platform/solutions-and-services?locale=en-US&q=Subscription#services). |
4141
| accounts[0].subAccounts[0].subscriptions[0].appName | string | `""` | AppName of the app to subscribe to |
4242
| accounts[0].subAccounts[0].subscriptions[0].name | string | `""` | Name of the Subscription resource - [CRD Browser](https://doc.crds.dev/github.com/SAP/crossplane-provider-btp/account.btp.sap.crossplane.io/Subscription/v1alpha1@v1.1.2). |
43+
| accounts[0].subAccounts[0].subscriptions[0].parameters | object | `{}` | Parameters for the plan to be subscribed - [Reference](https://doc.crds.dev/github.com/SAP/crossplane-provider-btp/account.btp.sap.crossplane.io/Subscription/v1alpha1@v1.2.1) |
4344
| accounts[0].subAccounts[0].subscriptions[0].planName | string | `""` | PlanName to subscribe to |
4445
| accounts[0].subAccounts[0].subscriptions[0].writeConnectionSecretToRef | object | [] | *optional* - When a Crossplane Provider creates a managed resource it may generate resource-specific details, like usernames, passwords or connection details like an IP address. Crossplane stores these details in a Kubernetes Secret object specified by the `writeConnectionSecretToRef` values. Learn more about Crossplane concept [Managed Resources Fields](https://docs.crossplane.io/latest/concepts/managed-resources/#writeconnectionsecrettoref)! |
4546
| directories | list | object | `directories[].` orchestrate [`kind: Directory`](https://doc.crds.dev/github.com/SAP/crossplane-provider-btp/account.btp.sap.crossplane.io/Directory/v1alpha1@v1.1.2) of [BTP Accounts](https://help.sap.com/docs/btp/sap-business-technology-platform/account-model). |

helm/charts/crossplane-provider-sap-btp-account/templates/mcp/btp-subscriptions/subscription.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ spec:
2121
forProvider:
2222
appName: {{required "A valid value is required! (.Values.accounts[].subAccounts[].subscriptions[].appName)" $subscription.appName }}
2323
planName: {{required "A valid value is required! (.Values.accounts[].subAccounts[].subscriptions[].planName)" $subscription.planName }}
24+
{{- if $subscription.parameters}}
25+
parameters:
26+
{{- $subscription.parameters | toYaml | nindent 6 }}
27+
{{- end }}
2428
cloudManagementRef:
2529
name: {{required "A valid value is required! (.Values.accounts[].subAccounts[].name)" $item.name | lower }}
2630
{{- if $subscription.writeConnectionSecretToRef}}
@@ -31,4 +35,4 @@ spec:
3135
{{- end }}
3236
{{- end }}
3337
{{- end }}
34-
{{- end }}
38+
{{- end }}

helm/charts/crossplane-provider-sap-btp-account/values.ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ accounts:
123123
writeConnectionSecretToRef:
124124
name: "name"
125125
namespace: "namespace"
126+
- name: test-identity
127+
appName: sap-identity-services-onboarding
128+
planName: additional-tenant
129+
parameters:
130+
"cloud_service": "TEST"
126131
- name: "test3"
127132
forProvider:
128133
displayName: "sub-account2"
@@ -144,4 +149,4 @@ accounts:
144149
servicePlanName: "service-plan-name"
145150
permitNumericQuota: false
146151
amount: 1
147-
#########################################################################################################
152+
#########################################################################################################

helm/charts/crossplane-provider-sap-btp-account/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ accounts:
5050
appName: ""
5151
# -- PlanName to subscribe to
5252
planName: ""
53+
# -- Parameters for the plan to be subscribed - [Reference](https://doc.crds.dev/github.com/SAP/crossplane-provider-btp/account.btp.sap.crossplane.io/Subscription/v1alpha1@v1.2.1)
54+
parameters: {}
5355
# -- *optional* - When a Crossplane Provider creates a managed resource it may generate resource-specific details, like usernames, passwords or connection details like an IP address.
5456
# Crossplane stores these details in a Kubernetes Secret object specified by the `writeConnectionSecretToRef` values. Learn more about Crossplane concept [Managed Resources Fields](https://docs.crossplane.io/latest/concepts/managed-resources/#writeconnectionsecrettoref)!
5557
# @default -- []
@@ -122,4 +124,4 @@ subaccountServiceBrokers:
122124
# -- *optional* - When a Crossplane Provider creates a managed resource it may generate resource-specific details, like usernames, passwords or connection details like an IP address.
123125
# Crossplane stores these details in a Kubernetes Secret object specified by the `writeConnectionSecretToRef` values. Learn more about Crossplane concept [Managed Resources Fields](https://docs.crossplane.io/latest/concepts/managed-resources/#writeconnectionsecrettoref)!
124126
writeConnectionSecretToRef: []
125-
#########################################################################################################
127+
#########################################################################################################

0 commit comments

Comments
 (0)