generated from openmcp-project/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
feat: crossplane-provider-sap-btp-environment - kymaEnvironmentBinding added #25
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 32 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
32aa334
Chore: Add initial Helm chart and CI configuration for BTP Cloud Foun…
ricogu ddf3dfb
Chore: Rename service-key.yaml to service-credential-binding.yaml and…
ricogu 25aeda2
Chore: Update references in values.yaml to reflect service credential…
ricogu cb50cad
Chore: Update references in values.yaml to reflect service credential…
ricogu a90276b
chore(ci): update helm/charts/crossplane-provider-configs/Chart.yaml.…
ricogu 02a4a39
chore(ci): update Helm Chart helm/charts/crossplane-provider-btp-cf/R…
ricogu 30e9d0e
chore(ci): update Helm Chart helm/charts/crossplane-provider-configs/…
ricogu 3e19c12
Chore: Remove writeConnectionSecretToRef references from service-cred…
ricogu 3030e39
Merge remote-tracking branch 'origin/main'
ricogu b4542cd
chore(ci): update Helm Chart helm/charts/crossplane-provider-btp-cf/R…
ricogu 6543e96
Chore: Bump app version to 0.3.0 and update Chart version to 0.1.0
ricogu 16e9cd6
Merge remote-tracking branch 'origin/main'
ricogu 952895f
chore(ci): update Helm Chart helm/charts/crossplane-provider-btp-cf/R…
ricogu 2e21103
chore(ci): update Helm Chart helm/charts/crossplane-provider-configs/…
ricogu c0a5b98
chore: fix formatting in cloudfoundry-btp-orchestrate-cloud-sap.yaml
ricogu c2c4681
Merge remote-tracking branch 'origin/main'
ricogu f90ac47
Merge branch 'main' into main
sk31337 5b088a7
chore: update docker image reference and clean up comments in values.…
ricogu c164d8e
Merge remote-tracking branch 'origin/main'
ricogu add4aff
Merge branch 'main' into main
sk31337 a6fc339
chore: rename configuration and template files for crossplane provider
ricogu 4beac81
Merge remote-tracking branch 'origin/main'
ricogu a0d1b5e
chore: rename chart name for crossplane provider to reflect cloud fou…
ricogu a36bdd2
chore(ci): update Helm Chart helm/charts/crossplane-provider-cloudfou…
ricogu e08d7e2
chore: update helm chart variables to references open sourced provider
sk31337 695e5f2
chore(ci): update Helm Chart helm/charts/crossplane-provider-cloudfou…
sk31337 0a1eb2d
chore(ci): update Helm Chart helm/charts/crossplane-provider-configs/…
sk31337 ceaf5d1
chore: add kyma environment binding configuration and update values f…
ricogu 34b6112
Merge remote-tracking branch 'origin/main'
ricogu bb0fbbf
Merge branch 'openmcp-project:main' into main
ricogu 71c84cb
chore(ci): update helm/charts/crossplane-provider-sap-btp-environment…
ricogu 8b6e8ce
chore(ci): update Helm Chart helm/charts/crossplane-provider-sap-btp-…
ricogu 985a427
chore: update kyma environment binding configuration to enforce requi…
ricogu 5930356
Merge remote-tracking branch 'origin/main'
ricogu d9ae6ee
chore: update kyma environment binding configuration to improve requi…
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. | ||
|
|
||
|
|
@@ -21,6 +21,13 @@ A Helm Chart to template crossplane manifests to manage Cloud Foundry or BTP Kym | |
| | cloudFoundryEnvironments | list | object | cloudFoundryEnvironments contains configuration of [cloudfoundry Environments](https://pages.github.tools.sap/cloud-orchestration/browser/Providers/provider-btp-account/environment.btp.sap.crossplane.io/cloudfoundryenvironment/v1alpha1). | | ||
| | cloudFoundryEnvironments[0] | object | `{"btpSapCrossplaneProviderConfigRefName":"","cloudManagementRef":{"name":"dev-eu01"},"forProvider":{"initialOrgManagers":[""],"landscape":""},"name":"","subaccountRef":{"name":"dev-eu01"},"writeConnectionSecretToRef":[]}` | btpSapCrossplaneProviderConfigRefName defines crossplane provider configuration reference name (identifier) of a ...! | | ||
| | cloudFoundryEnvironments[0].writeConnectionSecretToRef | list | `[]` | *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)! | | ||
| | kymaEnvironmentBindings[0].btpSapCrossplaneProviderConfigRefName | string | `""` | | | ||
| | kymaEnvironmentBindings[0].cloudManagementRef.name | string | `"dev-eu01"` | | | ||
| | kymaEnvironmentBindings[0].forProvider.rotationInterval | string | `"6h"` | | | ||
| | kymaEnvironmentBindings[0].forProvider.ttl | string | `"8h"` | | | ||
| | kymaEnvironmentBindings[0].kymaEnvironmentRef.name | string | `"my-kyma-instance"` | | | ||
| | kymaEnvironmentBindings[0].name | string | `""` | | | ||
| | 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[0].btpSapCrossplaneProviderConfigRefName | string | `""` | | | ||
| | kymaEnvironments[0].cloudManagementRef.name | string | `"dev-eu01"` | | | ||
| | kymaEnvironments[0].forProvider.administrators[0] | string | `"[email protected]"` | | | ||
|
|
||
25 changes: 25 additions & 0 deletions
25
helm/charts/crossplane-provider-sap-btp-environment/templates/kyma-enviornment-binding.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,25 @@ | ||
| {{- range $item := .Values.kymaEnvironmentBindings }} | ||
| {{- if and ($item) (ne $item.name "") }} | ||
| --- | ||
| apiVersion: environment.btp.sap.crossplane.io/v1alpha1 | ||
| kind: KymaEnvironmentBinding | ||
| metadata: | ||
| name: {{required "A valid value is required! (.Values.kymaEnvironmentBindings[].btpSapCrossplaneProviderConfigRefName)" $item.btpSapCrossplaneProviderConfigRefName | lower }}-{{required "A valid value is required! (.Values.kymaEnvironments[].name)" $item.name | lower }} | ||
| labels: | ||
| openmcp.cloud/blueprint-building-block: "{{ $.Chart.Name }}" | ||
| openmcp.cloud/blueprint-building-block-version: "{{ $.Chart.Version }}" | ||
| spec: | ||
| providerConfigRef: | ||
| name: {{required "A valid value is required! (.Values.kymaEnvironments[].btpSapCrossplaneProviderConfigRefName)" $item.btpSapCrossplaneProviderConfigRefName }} | ||
| forProvider: | ||
| {{- toYaml $item.forProvider | nindent 4 }} | ||
| cloudManagementRef: | ||
| {{- toYaml $item.cloudManagementRef | nindent 4 }} | ||
sk31337 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| kymaEnvironmentRef: | ||
| name: {{required "A valid value is required! (.Values.kymaEnvironmentBindings[].kymaEnvironmentRef.name)" $item.kymaEnvironmentRef.name }} | ||
| {{- if $item.writeConnectionSecretToRef}} | ||
| writeConnectionSecretToRef: | ||
| {{- $item.writeConnectionSecretToRef | toYaml | nindent 4 }} | ||
| {{- end }} | ||
| {{- 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.