-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/go_modules/k8s.io/apiextensions-a…
…piserver-0.29.3
- Loading branch information
Showing
6 changed files
with
104 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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,44 @@ | ||
name: Run govulncheck | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
run-govulncheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get changed files | ||
id: changed-files-specific | ||
uses: tj-actions/changed-files@90a06d6ba9543371ab4df8eeca0be07ca6054959 | ||
with: | ||
files: | | ||
.github/** | ||
api/** | ||
cmd/** | ||
config/** | ||
controllers/** | ||
deployments/** | ||
examples/** | ||
hack/** | ||
internal/** | ||
module-chart/** | ||
module-resources/** | ||
scripts/** | ||
config.yaml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
main.go | ||
Makefile | ||
**/*.go | ||
**/*.sh | ||
- name: Run govulncheck | ||
if: steps.changed-files-specific.outputs.any_modified == 'true' | ||
uses: golang/govulncheck-action@v1 | ||
with: | ||
go-version-file: 'go.mod' |
This file contains 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 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,32 @@ | ||
# SAP BTP Service Operator Examples | ||
|
||
This document describes notable features shipped with new SAP BTP service operator upgrades discovered during the application of latest versions. | ||
|
||
## Secret Templates | ||
|
||
Version 0.6.1 introduced a Secret templates feature that allows for modification of a Secret's content that is normally generated from a ServiceBinding instance created for any service. You can now specify a data-driven template as a value of the **secretTemplate** field inside the binding's spec section. Inside the template, you can refer (by using `{{}}` syntax) to credentials stored inside of a ServiceBinding (with `{{credentials.<key>}}`) or information of a given instance (with `{{instance.<key>}}`). The parameters that can be used with the `instance` key are limited to the values set in the [getInstanceInfo](https://github.com/SAP/sap-btp-service-operator/blob/8c0a3d7d7ca54e44143c0e0b7d1e1ef206b362ab/controllers/servicebinding_controller.go#L819) method. Here is an example of a ServiceBinding with the **secretTemplate** field: | ||
|
||
``` | ||
apiVersion: services.cloud.sap.com/v1 | ||
kind: ServiceBinding | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: nice-script | ||
name: nice-script | ||
namespace: default | ||
spec: | ||
externalName: nice-script | ||
secretName: nice-script | ||
secretTemplate: | | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
labels: | ||
instance_plan: {{ .instance.plan }} | ||
annotations: | ||
instance_name: {{ .instance.instance_name }} | ||
data: | ||
foo: {{ .instance.type }} | ||
bar: {{ .credentials.url }} | ||
serviceInstanceName: dimpled-editor | ||
``` |
This file contains 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
- [Back to Kyma Home](/) | ||
- [SAP BTP Operator Module](README.md) | ||
- [Use BTP Manager to Manage SAP BTP Service Operator](02-10-usage.md) | ||
- [SAP BTP Service Operator Examples](02-11-examples.md) |
This file contains 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 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