mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-07 07:51:38 +01:00
36 lines
1.3 KiB
Markdown
36 lines
1.3 KiB
Markdown
<!--
|
|
SPDX-FileCopyrightText: 2024 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH
|
|
SPDX-License-Identifier: Apache-2.0
|
|
-->
|
|
|
|
<h1>Tools for local development<h1>
|
|
|
|
* [charts-local.py](#charts-localpy)
|
|
* [Commandline parameter](#commandline-parameter)
|
|
* [`--branch`](#--branch)
|
|
* [`--revert`](#--revert)
|
|
|
|
# charts-local.py
|
|
|
|
This script helps you on cloning the platform development Helm charts and referencing them directly in the openDesk
|
|
Helmfile deployment for comfortable local development and deployment. The charts will be cloned into a directory
|
|
parallel to the `opendesk` repo that is named after the branch you are working in the `opendesk` repo with.
|
|
|
|
The script will create `.bak` copies of the helmfiles that have been touched.
|
|
|
|
Run the script with `-h` to get information about the script's parameter on commandline.
|
|
|
|
## Commandline parameter
|
|
|
|
### `--branch`
|
|
|
|
Optional parameter: Defines a branch for the `opendesk` repo to work with. The script will create the branch if it
|
|
does not exist yet. Otherwise it will switch to defined branch.
|
|
|
|
If parameter is omitted the current branch of the `opendesk` repo will be used.
|
|
|
|
### `--revert`
|
|
|
|
Reverts the changes in the helmfiles pointing to the local Helm charts by copying the backup files created by the
|
|
scripts itself back to their original location.
|