Skip to content

Added Helm Chart - #7

Open
sabre1041 wants to merge 1 commit into
validatedpatterns-demos:mainfrom
sabre1041:helm-chart
Open

Added Helm Chart#7
sabre1041 wants to merge 1 commit into
validatedpatterns-demos:mainfrom
sabre1041:helm-chart

Conversation

@sabre1041

Copy link
Copy Markdown
Contributor

Added Helm Chart

@mlorenzofr mlorenzofr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it looks good

There are a few minor things that could be added, but they aren't important.

I understand that more specific gitops features, like the Argo sync-wave annotations, aren't relevant to this chart

Comment thread charts/qtodo/values.yaml
database:
name: tasks
user: qtodo_user
password: "RedH@tPassw0rd"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here I would add a comment suggesting that ESO be used in production

Something like:

Suggested change
password: "RedH@tPassw0rd"
password: "RedH@tPassw0rd" # WARNING: For local testing only. Use External Secrets Operator in production.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd prefer to see an ExternalSecret object here, so that users actually could deploy the external secret that way. Personally, I'd make the ES the default path and provide an option to provide a secret using just values for someone who wants to do that.

Comment thread charts/qtodo/values.yaml
applicationType: "web-app"

# OpenShift Route configuration
route:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In route.yaml we reference a variable route.host in lines L9-11
do we want to add some examples here?

Comment thread charts/qtodo/README.md
| qtodo.resources.requests.memory | string | `"256Mi"` | |
| qtodo.securePort | int | `8443` | |
| route.enabled | bool | `true` | |
| route.path | string | `"/"` | |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

route.host is missing

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "qtodo.fullname" . }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can set it with helm install --namespace, but adding the namespace avoids problems if some tool don't pass the namespace argument.

Suggested change
name: {{ include "qtodo.fullname" . }}
name: {{ include "qtodo.fullname" . }}
namespace: {{ .Release.Namespace }}

apiVersion: v1
kind: Secret
metadata:
name: {{ include "qtodo.fullname" . }}-postgresql

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: {{ include "qtodo.fullname" . }}-postgresql
name: {{ include "qtodo.fullname" . }}-postgresql
namespace: {{ .Release.Namespace }}

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "qtodo.fullname" . }}-qtodo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: {{ include "qtodo.fullname" . }}-qtodo
name: {{ include "qtodo.fullname" . }}-qtodo
namespace: {{ .Release.Namespace }}

apiVersion: v1
kind: Service
metadata:
name: {{ include "qtodo.fullname" . }}-qtodo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: {{ include "qtodo.fullname" . }}-qtodo
name: {{ include "qtodo.fullname" . }}-qtodo
namespace: {{ .Release.Namespace }}

apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "qtodo.serviceAccountName" . }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: {{ include "qtodo.serviceAccountName" . }}
name: {{ include "qtodo.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}

apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: {{ include "qtodo.fullname" . }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: {{ include "qtodo.fullname" . }}
name: {{ include "qtodo.fullname" . }}
namespace: {{ .Release.Namespace }}

capabilities:
drop:
- ALL
livenessProbe:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we want to make livenessProbes/readinessProbes configurable in values.yaml, just like with PostgreSQL?

Signed-off-by: Andrew Block <andy.block@gmail.com>
@sabre1041

Copy link
Copy Markdown
Contributor Author

@mlorenzofr thanks for your comments. i have made the requested updates.

@mhjacks @day0hero if you guys could review the contents of this PR, it would be appreciated

@mhjacks

mhjacks commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

I'm curious what you would think about the sanity/desirability of adding an external-secret object as an example. I know that could be a thorny thing with dependencies. Is the idea then that the chart here would replace the one currently in the LZT pattern, or is the idea that this would be comepletely separate? @sabre1041 @mlorenzofr

@sabre1041

Copy link
Copy Markdown
Contributor Author

I'm curious what you would think about the sanity/desirability of adding an external-secret object as an example. I know that could be a thorny thing with dependencies. Is the idea then that the chart here would replace the one currently in the LZT pattern, or is the idea that this would be comepletely separate? @sabre1041 @mlorenzofr

Right now, this chart would be separate from the LZT pattern. Longer term, we could assess the feasibility of a single chart. But the goal of this chart is to demonstrate a traditional microservices deployment without security features implemented where we can then demonstrate the value emphasized by the LZT pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants