Skip to content

Commit 2b8b76a

Browse files
authored
Merge pull request #48 from mohammadll/helm_prompt
fix(helm_prompt): modify helm prompt to generate related templates
2 parents 273f1e0 + 3e58f15 commit 2b8b76a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

app/prompt_generators.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,15 @@ def helm_template_generator(input : HelmTemplateGeneration) -> str:
8989
name=value
9090
)
9191
initialize ingress with a default host for pod if the pod ingress is true in here {ingress_}.
92-
92+
set stateless in pod based on {status}.
9393
9494
95-
if environment variable is considered for pod, then create secret.yaml in the related template.
96-
creating secret.yaml based on environemt variables in the {envs} in the template is very important.
97-
creating deployment.yaml based on our pods in the template is very important.
98-
please set a something default in chart.yaml and values.yaml based on the requirement.
95+
Based on values.yaml, create all necessary Kubernetes templates in the templates directory:
96+
if stateless is true, create deployment.yaml; if stateless is false, create statefulset.yaml.
97+
If a persistence block exists, include pvc.yaml. If the ingress block is defined and ingress.enabled
98+
is true, create ingress.yaml. Always create secrets.yaml for secure data storage.
99+
100+
Ensure each template is fully parameterized to match values from values.yaml for flexible configuration.
99101
100102
in the final stage, put helpers.tpl in all templates and set the content based on information given.
101103
"""

0 commit comments

Comments
 (0)