Skip to content

Commit d5c1c86

Browse files
authored
feat: add kymaModules configuration for crossplane-provider-btp-environment (#41)
* feat: add kymaModules configuration for KymaModule kind in values files * chore(ci): update helm/charts/crossplane-provider-sap-btp-environment/Chart.yaml.version 0.0.19 -> 0.0.20 * chore(ci): update Helm Chart helm/charts/crossplane-provider-sap-btp-environment/README.md file * feat: update kymaModules configuration to use 'name' and 'forProvider' fields * chore(ci): update Helm Chart helm/charts/crossplane-provider-sap-btp-environment/README.md file * feat: enforce required validation for 'forProvider' field in kymaModules configuration * feat: rename 'releaseChannel' to 'channel' in kymaModules configuration * chore(ci): update Helm Chart helm/charts/crossplane-provider-sap-btp-environment/README.md file --------- Co-authored-by: ricogu <ricogu@users.noreply.github.com>
1 parent 4d17d6f commit d5c1c86

File tree

5 files changed

+33
-3
lines changed

5 files changed

+33
-3
lines changed

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

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

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

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

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

5-
![Version: 0.0.19](https://img.shields.io/badge/Version-0.0.19-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.20](https://img.shields.io/badge/Version-0.0.20-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 Cloud Foundry or BTP Kyma environments on BTP.
88

@@ -24,6 +24,7 @@ A Helm Chart to template crossplane manifests to manage Cloud Foundry or BTP Kym
2424
| kymaEnvironmentBindings[0].writeConnectionSecretToRef | object | `{"name":"demo-kyma-binding-local","namespace":"default"}` | *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)! |
2525
| kymaEnvironments | list | `[{"btpSapCrossplaneProviderConfigRefName":"","cloudManagementRef":{"name":"dev-eu01"},"forProvider":{"administrators":["...@sap.com"],"autoScalerMax":3,"autoScalerMin":3,"machineType":"m5.xlarge","oidc":{"clientID":"<your client id>","groupsClaim":"groups","issuerURL":"https://<IAS host>.accounts400.ondemand.com","signingAlgs":["RS256"],"usernameClaim":"email","usernamePrefix":"-"},"parameters":null,"region":"eu-west-2"},"name":"","planName":"aws","subaccountRef":{"name":"dev-eu01"},"writeConnectionSecretToRef":{"name":"demo-kyma-kubeconfig-local","namespace":"default"}}]` | kymaEnvironments contains configuration of [kind: KymaEnvironment](https://doc.crds.dev/github.com/SAP/crossplane-provider-btp/environment.btp.sap.crossplane.io/KymaEnvironment/v1alpha1@v1.1.2). |
2626
| kymaEnvironments[0].writeConnectionSecretToRef | object | `{"name":"demo-kyma-kubeconfig-local","namespace":"default"}` | *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)! |
27+
| kymaModules | list | `[{"forProvider":{"channel":"regular","name":"api-gateway"},"kymaEnvironmentBinding":"","name":""}]` | kymaModules contains configuration of kind: KymaModule. |
2728

2829
----------------------------------------------
2930
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{- range $item := .Values.kymaModules }}
2+
{{- if and ($item) (ne $item.name "") }}
3+
---
4+
apiVersion: environment.btp.sap.crossplane.io/v1alpha1
5+
kind: KymaModule
6+
metadata:
7+
name: {{required "A valid value is required! (.Values.kymaModules[].name)" $item.name }}
8+
spec:
9+
kymaEnvironmentBindingRef:
10+
name: {{ required "A valid value is required! (.Values.kymaModules[].kymaEnvironmentBinding)" $item.kymaEnvironmentBinding }}
11+
forProvider:
12+
{{- required "A valid value is required! (.Values.kymaModules[].forProvider)" $item.forProvider | toYaml | trim | nindent 4 }}
13+
{{- end }}
14+
{{- end }}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,11 @@ kymaEnvironmentBindings:
5858
writeConnectionSecretToRef:
5959
name: "demo-kyma-binding-local"
6060
namespace: "default"
61+
########################################################################################################################
62+
# -- kymaModules contains configuration of kind: KymaModule.
63+
kymaModules:
64+
- name: "test-name"
65+
kymaEnvironmentBinding: "test-binding"
66+
forProvider:
67+
name: "api-gateway"
68+
channel: "regular"

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,11 @@ kymaEnvironmentBindings:
6565
writeConnectionSecretToRef:
6666
name: "demo-kyma-binding-local"
6767
namespace: "default"
68-
########################################################################################################################
68+
########################################################################################################################
69+
# -- kymaModules contains configuration of kind: KymaModule.
70+
kymaModules:
71+
- name: ""
72+
kymaEnvironmentBinding: ""
73+
forProvider:
74+
name: "api-gateway"
75+
channel: "regular"

0 commit comments

Comments
 (0)