diff --git a/helm/charts/crossplane-provider-sap-btp-environment/Chart.yaml b/helm/charts/crossplane-provider-sap-btp-environment/Chart.yaml index d78db77..776a10e 100644 --- a/helm/charts/crossplane-provider-sap-btp-environment/Chart.yaml +++ b/helm/charts/crossplane-provider-sap-btp-environment/Chart.yaml @@ -17,7 +17,7 @@ icon: "https://avatars.githubusercontent.com/u/45158470?s=48&v=4" # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.19 +version: 0.0.20 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. diff --git a/helm/charts/crossplane-provider-sap-btp-environment/README.md b/helm/charts/crossplane-provider-sap-btp-environment/README.md index bfbf195..57cc6c6 100644 --- a/helm/charts/crossplane-provider-sap-btp-environment/README.md +++ b/helm/charts/crossplane-provider-sap-btp-environment/README.md @@ -2,7 +2,7 @@ # crossplane-provider-sap-btp-environment -![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) +![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) A Helm Chart to template crossplane manifests to manage Cloud Foundry or BTP Kyma environments on BTP. @@ -24,6 +24,7 @@ A Helm Chart to template crossplane manifests to manage Cloud Foundry or BTP Kym | 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)! | | kymaEnvironments | list | `[{"btpSapCrossplaneProviderConfigRefName":"","cloudManagementRef":{"name":"dev-eu01"},"forProvider":{"administrators":["...@sap.com"],"autoScalerMax":3,"autoScalerMin":3,"machineType":"m5.xlarge","oidc":{"clientID":"","groupsClaim":"groups","issuerURL":"https://.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). | | 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)! | +| kymaModules | list | `[{"forProvider":{"channel":"regular","name":"api-gateway"},"kymaEnvironmentBinding":"","name":""}]` | kymaModules contains configuration of kind: KymaModule. | ---------------------------------------------- Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) \ No newline at end of file diff --git a/helm/charts/crossplane-provider-sap-btp-environment/templates/kyma-modules.yaml b/helm/charts/crossplane-provider-sap-btp-environment/templates/kyma-modules.yaml new file mode 100644 index 0000000..f52681b --- /dev/null +++ b/helm/charts/crossplane-provider-sap-btp-environment/templates/kyma-modules.yaml @@ -0,0 +1,14 @@ +{{- range $item := .Values.kymaModules }} + {{- if and ($item) (ne $item.name "") }} +--- +apiVersion: environment.btp.sap.crossplane.io/v1alpha1 +kind: KymaModule +metadata: + name: {{required "A valid value is required! (.Values.kymaModules[].name)" $item.name }} +spec: + kymaEnvironmentBindingRef: + name: {{ required "A valid value is required! (.Values.kymaModules[].kymaEnvironmentBinding)" $item.kymaEnvironmentBinding }} + forProvider: + {{- required "A valid value is required! (.Values.kymaModules[].forProvider)" $item.forProvider | toYaml | trim | nindent 4 }} + {{- end }} +{{- end }} \ No newline at end of file diff --git a/helm/charts/crossplane-provider-sap-btp-environment/values.ci.yaml b/helm/charts/crossplane-provider-sap-btp-environment/values.ci.yaml index 764bfb8..531ea74 100644 --- a/helm/charts/crossplane-provider-sap-btp-environment/values.ci.yaml +++ b/helm/charts/crossplane-provider-sap-btp-environment/values.ci.yaml @@ -58,3 +58,11 @@ kymaEnvironmentBindings: writeConnectionSecretToRef: name: "demo-kyma-binding-local" namespace: "default" +######################################################################################################################## +# -- kymaModules contains configuration of kind: KymaModule. +kymaModules: + - name: "test-name" + kymaEnvironmentBinding: "test-binding" + forProvider: + name: "api-gateway" + channel: "regular" diff --git a/helm/charts/crossplane-provider-sap-btp-environment/values.yaml b/helm/charts/crossplane-provider-sap-btp-environment/values.yaml index 30f13a8..58681d4 100644 --- a/helm/charts/crossplane-provider-sap-btp-environment/values.yaml +++ b/helm/charts/crossplane-provider-sap-btp-environment/values.yaml @@ -65,4 +65,11 @@ kymaEnvironmentBindings: writeConnectionSecretToRef: name: "demo-kyma-binding-local" namespace: "default" -######################################################################################################################## \ No newline at end of file +######################################################################################################################## +# -- kymaModules contains configuration of kind: KymaModule. +kymaModules: + - name: "" + kymaEnvironmentBinding: "" + forProvider: + name: "api-gateway" + channel: "regular" \ No newline at end of file