Commit Graph

34 Commits

Author SHA1 Message Date
Wyatt Walter
4c7a019adf
fix: support nss wrapper in Helm chart (#40673)
## Description

Requires: https://github.com/appsmithorg/appsmith/pull/40642

Adds an environment variable activating nss_wrapper when the
`securityPolicy.runAsUser` value is set so the UID can be set
dynamically. This avoids the `I have no name!` in the prompt when doing
a `kubectl exec` with that value set.

I am also introducing
[helm-unittest](https://github.com/helm-unittest/helm-unittest) for
ensuring that changes to our defaults are made explicit.

Fixes https://github.com/appsmithorg/appsmith/issues/38787

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!WARNING]
> Tests have not run on the HEAD
d30d87ffc66c107f980a3b27464e97db0910dcbe yet
> <hr>Mon, 19 May 2025 18:59:10 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added automated unit testing for Helm charts, including snapshot and
security context tests.
- Introduced documentation for running and understanding Helm chart unit
tests.
- Added a GitHub Actions workflow to run Helm chart unit tests on pull
requests and manually.
- **Bug Fixes**
- Ensured the LD_PRELOAD environment variable is set when a specific
security context is configured in deployments.
- **Documentation**
- Updated Helm chart README to reference new testing documentation and
improve clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Goutham Pratapa <goutham@appsmith.com>
2025-06-04 20:54:46 +05:30
Goutham Pratapa
de693f1b55
fix: security update init-container for redis (#39150)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
  - Updated the application release version to 3.6.2.
- Upgraded the Redis service container to a newer image version for
improved deployment consistency.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-02-10 14:36:37 +05:30
Wyatt Walter
4caaa7411a
feat: allow persistent volume name to be overridden in the helm chart (#38752)
## Description

Exposes a value under the `persistence` key to allow the PV name to be
overridden. This was requested by a customer that does multiple deploys
of Appsmith per cluster in different namespaces with the same Helm
release name. Since PV's are not namespaced, the deploy was failing.

Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!WARNING]
> Tests have not run on the HEAD
8a0e2ba2354c9a6742ca5d1a31d87559408325ec yet
> <hr>Thu, 23 Jan 2025 14:35:55 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Added ability to override Persistent Volume (PV) name in Helm chart.
	- Enhanced configuration options for multi-namespace deployments.

- **Improvements**
- Introduced more flexible naming strategy for Persistent Volume
resources.
- Updated PersistentVolume and PersistentVolumeClaim resources to
utilize the new naming convention.
	- Updated application version from 3.6.0 to 3.6.1.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-29 13:49:59 +05:30
Goutham Pratapa
8cd827754f
chore: deprecate ce helm charts and publish ee helm charts (#37794)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Enhanced support for PostgreSQL and OpenID Connect (OIDC)
authentication in the Helm chart.
- Introduced a new template for managing external secrets and a
dedicated service for metrics.
- Added Horizontal Pod Autoscaler (HPA) and Pod Disruption Budget (PDB)
configurations.
- New configuration options for custom Certificate Authority (CA)
certificates.

- **Improvements**
- Updated application version and dependencies for better organization
and readability.
- Expanded configuration options for Redis, MongoDB, and PostgreSQL,
allowing for improved customization.
	- Enhanced deployment configuration with dynamic scaling capabilities.

- **Bug Fixes**
- Improved error handling for configuration misalignments to prevent
runtime issues.

- **Documentation**
- Updated README and values.yaml to reflect new configuration parameters
and options.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- This is an auto-generated comment: Cypress test results  -->
> [!WARNING]
> Tests have not run on the HEAD
0e76b6af34501ed646ea840af22786b33426c9fe yet
> <hr>Tue, 31 Dec 2024 12:31:29 UTC
<!-- end of auto-generated comment: Cypress test results  -->
2024-12-31 18:01:48 +05:30
Damien Léger
72670ae114
feat: allow HTTP port customization in Helm chart (#36763)
## Description
See https://github.com/appsmithorg/appsmith/issues/36761

I've been tested this with ee Helm chart. Imho tcp/8080 should be the
default port but to avoid breaking change, tcp/80 remains the default
port if the new variable is not specified.

Fixes #36761

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [X] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced configurability of the HTTP container port through the
introduction of a new variable (commented out).
	- Updated the Helm chart version from 2.1.0 to 2.2.0.

- **Bug Fixes**
	- Improved indentation and formatting for better readability.

- **Documentation**
- Commented-out configuration for `HTTPContainerPort` included for
future reference.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Damien LEGER <damien.leger@cure51.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Goutham Pratapa <pratapagoutham@gmail.com>
Co-authored-by: Goutham Pratapa <goutham@appsmith.com>
2024-11-01 15:16:00 +05:30
Shrikant Sharat Kandula
3fd1d52990
chore: Support APPSMITH_DB_URL in Helm chart (#33656)
If the `APPSMITH_MONGODB_URI` is not set, we set it to a constructed
service URL value. This PR adds the same feature to new
`APPSMITH_DB_URL` env variable as well.

⚠️ This will cause conflicts on sync. DO NOT MERGE unless the author is
available.

/test sanity

---------

Co-authored-by: Goutham Pratapa <goutham@appsmith.com>
2024-05-28 19:40:36 +05:30
Abhijeet
7e339d419d
test: Enable server tests for the PRs with base PG branch (#33429)
## Description
1. PR to enable server tests on PRs with `pg` as the base branch. 
2. Replace the DB URI from `APPSMITH_MONGODB_URI` to `APPSMITH_DB_URL` 

## Automation

/ok-to-test tags="@tag.Sanity, @tag.GenerateCRUD, @tag.Fork"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9174148396>
> Commit: 762b4255f654946a1a47a196df5a1afae5be09f2
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9174148396&attempt=1"
target="_blank">Click here!</a>

<!-- end of auto-generated comment: Cypress test results  -->












## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No

---------

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2024-05-22 15:55:20 +05:30
Shrikant Sharat Kandula
d25b94fe50
chore: Remove unneeded exposing of 9001 port (#30499)
We're already using `/supervisor` for this, and don't expect anyone to
hit the port directly.
2024-01-22 15:06:08 +05:30
Goutham Pratapa
b4baf61bba
fix appsmith-ce helm chart (#28523) 2023-10-31 16:57:06 +05:30
Shrikant Sharat Kandula
8eea00146f
fix: Remove duplicate securityContext key (#28268)
Part of fix for #28242.
2023-10-24 13:37:05 +05:30
Goutham Pratapa
7728f9bf75
Fix images with vulnerabilities (#27733)
Fixes: [27523](https://github.com/appsmithorg/appsmith/issues/27523)
2023-10-12 11:20:24 +05:30
Sumesh Pradhan
dfff7c4a9f
chore: disable allowprivilegeescalation in the securitycontext of helm chart (#27041)
Updated` appsmith/appsmith` helm-chart to` 2.0.5` with
`allowPrivilegeEscalation` disabled.
2023-09-12 11:18:03 +05:30
Goutham Pratapa
e183d870bf
update: disable postgres by default in helm (#26614)
Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2023-09-04 16:55:37 +05:30
Goutham Pratapa
6faaf791d2
fix: redis-url when deploying appsmith via helm (#25689)
Fixes: [25688](https://github.com/appsmithorg/appsmith/issues/25688)
2023-07-31 14:55:57 +05:30
Goutham Pratapa
82c5c0b580
chore: update init-container images and update probes (#23401)
Fixes: [21271](https://github.com/appsmithorg/appsmith/issues/21272)
Fixes: [221](https://github.com/appsmithorg/cloud-deployment/issues/221)
Fixes: [24020](https://github.com/appsmithorg/appsmith/issues/24020)
2023-07-07 10:01:43 +05:30
Sumesh Pradhan
c93ed4f54c
fix: helm install values checks (#19296)
## Description
- Updated ngnix as default ingress class in `values.yaml`
- Upgraded mongo's deployment image to `v5.0.12` as the previous 4.4.11
is deprecated
- Added `imagePullSecrets` to enable pulling images from private docker
registries
- Added conditional to check for k8s version >=1.1.8 to handle both old
and new k8s version scenarios for setting up the Ingress controller
class name.

Co-authored-by: Goutham Pratapa <goutham@appsmith.com>
2023-01-17 13:01:28 +05:30
ps-xaf
72c17fcbf4
feat: override helm chart images for init containers (#18834)
Small enhancement to permit usage of different image registries

Co-authored-by: Christian Körner <ck@ps-xaf.de>
2023-01-02 14:56:15 +05:30
Goutham Pratapa
fee9b181fe
chore: fix ingress fieldname in appsmith (#18684) 2022-12-05 17:14:17 +05:30
Goutham Pratapa
30023b7a9c
Add certmanager and classname fields in ingress (#18266) 2022-11-23 17:36:03 +05:30
Goutham Pratapa
5c5fbaa9f0
Fix redis sub chart name in helm chart (#17866)
Currently, the helm chart has a minor bug where the chart name is
hard-coded. This fix addresses the issue
2022-10-28 10:25:17 +05:30
Goutham Pratapa
97a3f2a30c
fix: Add mongo/redis to helm chart dependencies (#16096) 2022-10-14 16:15:49 +05:30
Shrikant Sharat Kandula
25ab8f5983
Add startupProbe to Appsmith pods (#15702)
This is so that the `livenessProbe` doesn't aggressively
restart the pod before the Appsmith container is live.
2022-08-04 15:58:18 +05:30
Amit Kumar
6715d3a681
Pod labels can be configured from Helm values (#15352) 2022-08-04 15:21:23 +05:30
Sumesh Pradhan
41b9df2657
Support getting values from secrets in helm chart configuration (#12633) 2022-05-04 16:21:15 +05:30
geekup-legodevops
95776e6454
Remove unnecessary variables in Helm chart & refactor templates (#12011) 2022-03-24 13:09:27 +05:30
Shrikant Sharat Kandula
52c9c4105b
Change CronJob version to batch/v1 2022-03-11 06:21:46 +05:30
Shrikant Sharat Kandula
b06b301093
Use docs link instead of GitHub link 2022-03-11 06:06:58 +05:30
geekup-legodevops
1e5c4651eb
Update Helm ingress template & document (#11552) 2022-03-09 12:07:19 +05:30
Shrikant Sharat Kandula
0e12200374
Improve vertical spacing in output of helm install 2022-02-25 17:04:55 +05:30
geekup-legodevops
c1f89e5830
Fix host not showing up when ignress is enabled (#11221) 2022-02-18 19:06:44 +05:30
geekup-legodevops
e85b34d66e
Add Helm configMap to update application configuration (#10157) 2022-01-31 13:27:01 +05:30
geekup-legodevops
269e3a786d
chore: Minor improvement for Helm, remove dependency & namespace (#9928) 2021-12-28 12:50:37 +05:30
gokuatkai
0edd50f6b2
Add helm param to disable namespace creation (#9719)
Will only create namespace if namespace.create == true
2021-12-15 08:01:48 +05:30
geekup-legodevops
ae26d2c611
Helm charts for Appsmith fat container (#7343) 2021-10-02 11:46:07 +05:30