Skip to content

Commit da3cc25

Browse files
[Misc] Version update (#25)
1 parent 8687b49 commit da3cc25

File tree

4 files changed

+24
-47
lines changed

4 files changed

+24
-47
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). The format is based on [Keep a Changelog](http://keepachangelog.com/).
44

5+
## Version 0.1.0 - 25-July-2024
6+
7+
### Added
8+
9+
- New CLI to generate runtime values file `npx cap-op-plugin generate-runtime-values`
10+
- Updated `values.schema.json` to the latest version of CAP Operator(v0.6.0) and BTP Service Operator(v0.6.5)
11+
- Adds the `$XSAPPNAME.Callback` and `$XSAPPNAME.mtcallback` scopes to `xs-security.json` if they are not already present
12+
- Switched helm chart to v2 apiVersion
13+
514
## Version 0.0.2 - 13-May-2024
615

716
### Added

README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ The CAP Operator Plugin offers a simple method for generating [CAP Operator](htt
66

77
## Before You Start
88

9-
The CAP Operator plugin requires `@sap/cds-dk: ">=7.9.5"`. If you've installed @sap/cds-dk globally, ensure that the installed version is `7.9.5` or higher.
9+
The CAP Operator plugin requires `@sap/cds-dk: "~7.9.5"`. If you've installed @sap/cds-dk globally, ensure that the installed version is `7.9.5` or higher, but below `8`.
10+
11+
> `@sap/cds-dk: "~8"` is not supported yet.
1012
1113
## Set Up the Plugin
1214

13-
To integrate the CAP Operator Plugin into your project, follow these steps:
15+
To integrate the CAP Operator Plugin into your project, follow these steps:
1416

1517
1. Add the plugin package to your project as a dev dependency:
1618

@@ -24,8 +26,8 @@ To integrate the CAP Operator Plugin into your project, follow these steps:
2426
```
2527
![](.images/cds-add-cap-operator.gif)
2628

27-
This creates a `chart` folder in your directory with three files: `Chart.yaml`, `values.schema.json`, and `values.yaml`.
28-
29+
This creates a `chart` folder in your directory with three files: `Chart.yaml`, `values.schema.json`, and `values.yaml`.
30+
2931
You might notice that the `templates` folder is missing. This is intentional. The idea is to push only these three files into your GitHub repository. When you deploy your application, you can call `cds build`, and during the build, the plugin generates the final Helm chart in your project's `gen` directory, which includes the predefined `templates` folder.
3032
3133
**Available Options**
@@ -98,8 +100,8 @@ The generated `chart/values.yaml` contains two types of information:
98100
- [imagePullSecrets](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) - Kubernetes secret used to pull the application docker images from a private container image registry or repository.
99101
- env information inside workloads
100102

101-
As a developer, you must fill in the design-time deployment information in the `values.yaml` file, which can then be pushed to your GitHub repository. The plugin auto-populates some values based on your project configuration, but verifying them and manually filling in any missing information is essential. You can refer to `values.schema.json` file for the structure of the `values.yaml` file.
102-
103+
As a developer, you must fill in the design-time deployment information in the `values.yaml` file, which can then be pushed to your GitHub repository. The plugin auto-populates some values based on your project configuration, but verifying them and manually filling in any missing information is essential. You can refer to `values.schema.json` file for the structure of the `values.yaml` file.
104+
103105
**Please fill the `values.yaml` according to the schema as it is tightly coupled to the predefined templates.** You can use a YAML schema validation extension such as [YAML](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) or run the following command to validate your `values.yaml` file. You can ignore the errors from runtime values as they are not filled in yet.
104106

105107
```sh
@@ -160,8 +162,7 @@ The generated `chart/values.yaml` contains two types of information:
160162
imagePullSecret: regcred
161163
```
162164
163-
Similar to the interactive mode, `appName`, `capOperatorSubdomain`, `clusterDomain`, `globalAccountId`, `providerSubdomain`, and `tenantId` are mandatory fields. If they're not provided in the input YAML, the plugin throws an error.
164-
165+
Similar to the interactive mode, `appName`, `capOperatorSubdomain`, `clusterDomain`, `globalAccountId`, `providerSubdomain`, and `tenantId` are mandatory fields. If they're not provided in the input YAML, the plugin throws an error.
165166
After execution, the `runtime-values.yaml` file is created in the chart folder of your project directory.
166167

167168
7. Now, you can deploy the application using the following command:
@@ -176,7 +177,7 @@ The generated `chart/values.yaml` contains two types of information:
176177
helm upgrade -i -n <namespace> <release-name> <project-path>/gen/chart --set-file serviceInstances.xsuaa.jsonParameters=<project-path>/xs-security.json -f <project-path>/chart/runtime-values.yaml
177178
```
178179

179-
## Example
180+
## Example
180181

181182
As a reference, check out the [CAP Operator Helm chart](https://github.com/cap-js/incidents-app/tree/cap-operator-plugin/chart) in the sample incident app. Also, take a look at the corresponding [runtime-values.yaml](https://github.com/cap-js/incidents-app/blob/cap-operator-plugin/chart/runtime-values.yaml) file.
182183

package-lock.json

+3-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cap-js/cap-operator-plugin",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"description": "Add/Build Plugin for CAP Operator",
55
"homepage": "https://github.com/cap-js/cap-operator-plugin/blob/main/README.md",
66
"repository": {
@@ -24,7 +24,7 @@
2424
],
2525
"peerDependencies": {
2626
"@sap/cds": "~7",
27-
"@sap/cds-dk": "~7",
27+
"@sap/cds-dk": "~7.9.5",
2828
"@sap/cds-foss": ">=5"
2929
},
3030
"dependencies": {

0 commit comments

Comments
 (0)