generated from openmcp-project/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add kymaModules configuration for crossplane-provider-btp-environment #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5ce33f4
feat: add kymaModules configuration for KymaModule kind in values files
ricogu 604ed8b
chore(ci): update helm/charts/crossplane-provider-sap-btp-environment…
ricogu 9269597
chore(ci): update Helm Chart helm/charts/crossplane-provider-sap-btp-…
ricogu 63e4286
feat: update kymaModules configuration to use 'name' and 'forProvider…
ricogu 582e799
chore(ci): update Helm Chart helm/charts/crossplane-provider-sap-btp-…
ricogu 30256cc
feat: enforce required validation for 'forProvider' field in kymaModu…
ricogu f09f7d3
feat: rename 'releaseChannel' to 'channel' in kymaModules configuration
ricogu 11d5dcb
chore(ci): update Helm Chart helm/charts/crossplane-provider-sap-btp-…
ricogu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# crossplane-provider-sap-btp-environment | ||
|
||
   | ||
   | ||
|
||
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":["[email protected]"],"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/[email protected]). | | ||
| 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 | `[{"kymaEnvironmentBinding":"","moduleName":"test-module","releaseChannel":"regular"}]` | 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) |
15 changes: 15 additions & 0 deletions
15
helm/charts/crossplane-provider-sap-btp-environment/templates/kyma-modules.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- range $item := .Values.kymaModules }} | ||
{{- if and ($item) (ne $item.name "") }} | ||
--- | ||
apiVersion: environment.btp.sap.crossplane.io/v1alpha1 | ||
kind: KymaModule | ||
metadata: | ||
name: aas-adapter-dev-{{required "A valid value is required! (.Values.kymaModules[].moduleName)" $item.moduleName}} | ||
spec: | ||
kymaEnvironmentBindingRef: | ||
name: {{ required "A valid value is required! (.Values.kymaModules[].kymaEnvironmentBinding)" $item.kymaEnvironmentBinding }} | ||
forProvider: | ||
name: api-gateway | ||
sk31337 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
channel: {{ required "A valid value is required! (.Values.kymaModules[].releaseChannel)" $item.releaseChannel }} | ||
sk31337 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
{{- end }} | ||
{{- end }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.