Skip to content
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

Add missing steps #892

Merged
merged 7 commits into from
Oct 29, 2024
Merged

Conversation

IwonaLanger
Copy link
Contributor

Description

Changes proposed in this pull request:

  • Add the missing steps in the instructions on creating Secrets.

@IwonaLanger IwonaLanger added area/documentation Issues or PRs related to documentation kind/enhancement Categorizes issue or PR as related to modifying or improving an existing feature labels Oct 25, 2024
@IwonaLanger IwonaLanger self-assigned this Oct 25, 2024
@IwonaLanger IwonaLanger requested a review from a team as a code owner October 25, 2024 12:05
Copy link

Add one of following labels

- kind/feature -> Use it when you want to submit a new feature

- kind/enhancement -> Use it when you modify or improve an existing feature

- kind/bug -> Use it when you fix a bug

@kyma-gopher-bot kyma-gopher-bot enabled auto-merge (squash) October 25, 2024 12:05
@kyma-bot kyma-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 25, 2024
@@ -1,21 +1,22 @@
# Create a Service Instance with a Custom Secret
# Instance-Level Mapping
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the meaning of the title?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the explanation you provided - thank you :)


* A subaccount in the SAP BTP cockpit
To create a service instance with a custom Secret, you must use the **btpAccessCredentialsSecret** field in the `spec` of the service instance. In it, you pass the Secret from the `kyma-system` namespace to create your service instance. You can use different Secrets for different service instances.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"pass the Secret name"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an instruction, so I'm not using an imperative. This section just explains what this process consists in.

5. In the same working directory, generate the Secret by calling the `create-secret-file.sh` script with the **operator** option as the first parameter and **namespace-name-sap-btp-service-operator** Secret as the second parameter.
1. In the SAP BTP cockpit, create an SAP Service Manager service instance with the `service-operator-access` plan.
2. Create a service binding to the SAP Service Manager service instance you have created.
1. Get the access credentials of the SAP Service Manager instance with the `service-operator-access` plan from its service binding. Copy them from the SAP BTP cockpit as a JSON.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like numbering starts from the beginning here (1 instead of 3)


To have service instances from one subaccount associated with one namespace, you must use a Secret dedicated to this namespace to create these service instances.

## Prerequisites

* A subaccount in the SAP BTP cockpit
* A subaccount in the SAP BTP cockpit.
* kubectl configured for communicating with your Kyma instance.

## Procedure

### Create a Namespace-Based Secret
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we merge the section with the Create Your Custom Secret section. It seems like both do the same but just use different namespaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not exactly the same, and the idea was to describe two complete processes separately.

1. [Create an SAP Service Manager service instance](03-30-management-of-service-instances-and-bindings.md#create-a-service-instance) with the `service-operator-access` plan.
2. [Create a service binding](03-30-management-of-service-instances-and-bindings.md#create-a-service-binding) to the SAP Service Manager service instance you have created.
1. In the SAP BTP cockpit, create an SAP Service Manager service instance with the `service-operator-access` plan.
2. Create a service binding to the SAP Service Manager service instance you have created.
3. Get the access credentials of the SAP Service Manager instance from its service binding. Copy them from the BTP cockpit as a JSON.
4. Create the `creds.json` file in your working directory and save the credentials there.
5. In the same working directory, generate the Secret by calling the `create-secret-file.sh` script with the **operator** option as the first parameter and **your-secret-name** as the second parameter.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The warning in the point 5 seems to bee to soon in the file.

1. [Create an SAP Service Manager service instance](03-30-management-of-service-instances-and-bindings.md#create-a-service-instance) with the `service-operator-access` plan.
2. [Create a service binding](03-30-management-of-service-instances-and-bindings.md#create-a-service-binding) to the SAP Service Manager service instance you have created.
1. In the SAP BTP cockpit, create an SAP Service Manager service instance with the `service-operator-access` plan.
2. Create a service binding to the SAP Service Manager service instance you have created.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we point to the guide on how to create a binding in the prerequisites?

kubectl get secret -n kyma-system {YOUR_SECRET_NAME}
```

You can see the status `Created`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual output of the command is as follows:

NAME        TYPE     DATA   AGE
my-secret   Opaque   5      2m20s

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm removing point 7 as it's unnecessary.

@kyma-bot kyma-bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 25, 2024
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 29, 2024
```

You see the status `Created`.
You see the staus `Created` and the message that your service instance has been created successfully.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You see the staus `Created` and the message that your service instance has been created successfully.
You see the status `Created` and the message that your service instance has been created successfully.

@kyma-gopher-bot kyma-gopher-bot merged commit 3ac6b4a into kyma-project:main Oct 29, 2024
6 checks passed
@kyma-bot kyma-bot added the lgtm Looks good to me! label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Issues or PRs related to documentation cla: yes Indicates the PR's author has signed the CLA. kind/enhancement Categorizes issue or PR as related to modifying or improving an existing feature lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants