Skip to content

CAP Operator Plugin provides an easy way to generate CAP Operator resources to deploy multitenant CAP Applications.

License

Notifications You must be signed in to change notification settings

anirudhprasad-sap/cap-operator-plugin

 
 

Repository files navigation

REUSE status

CAP Operator Plugin

CAP Operator Plugin provides an easy way to generate CAP Operator resources to deploy multitenant CAP Applications.

Requirements

The CAP Operator plugin requires the following packages:

@sap/cds: ">=7"
@sap/cds-dk: ">=7"

Setup

To integrate the CAP Operator Plugin into your project, follow these steps:

  1. Add this self-configuring plugin package to your project:
 npm add @cap-js/cap-operator-plugin -D
  1. After installation, execute one of the following commands based on your requirements:
  • To add a basic chart folder, use:
 cds add cap-operator

During cds build, the plugin will automatically inject the templates folder into the final chart.

  • To add a chart folder with templates included, use:
 cds add cap-operator --add-with-templates

During cds build, the plugin will copy the templates folder into the final chart.

  1. Once executed, the chart folder or chart folder with templates will be added to your project directory.

  2. Update the values.yaml file with your design-time deployment details according to values.schema.json. You can either use any YAML schema validation extension like YAML or run the following command to ensure correctness:

helm lint <chart-path>
  1. After filling all the design-time information in values.yaml, run cds build. The final chart will be generated in the gen folder within your project directory.

Note: If you are adding the basic chart folder using the cds add cap-operator command, do not modify the values.schema.json file. The templates injected automatically during cds build are tightly coupled with the structure in values.schema.json. If schema changes are needed, use option --add-with-templates to add the templates folder and adjust them accordingly.

Caution

Experimental

To add a chart folder with the values.yaml prefilled with the design-time deployment details from the mta and mta extensions, use:

cds add cap-operator --add-with-mta <mta-yaml-file-path> --add-with-mta-extensions <mta-ext-yaml-file-path>

If you have multiple mta extensions, you can pass them as a comma-separated string in the order that they should be merged.

Contributing

This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.

Code of Conduct

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

Copyright 2024 SAP SE or an SAP affiliate company and cap-operator-plugin contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

About

CAP Operator Plugin provides an easy way to generate CAP Operator resources to deploy multitenant CAP Applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.5%
  • Go 7.0%
  • Handlebars 3.9%
  • Smarty 1.6%