Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #6 : Add Namespace and Probes Configuration to Kubernetes Manifests #7

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

RohanRusta21
Copy link

Hi @petar-cvit @KaradzaJuraj ,

This pull request focuses on the addition of new fields within various files, namely "deployment.yaml", "services.yaml", "values.schema.json", and "values.yaml". Here's a summary of the changes made:

  1. In "demo-extended/templates/deployment.yaml", I have introduced YAML code for Namespace and Probes (specifically, readinessProbe, livenessProbe, and startupProbe). The default values for these fields are retrieved from "values.yaml".

  2. Within "demo-extended/templates/services.yaml", I have incorporated YAML code for Namespace. Similar to the deployment template, the default values for these fields are sourced from "values.yaml".

  3. In "demo-extended/values.schema.json", I have extended the JSON schema to include the Namespace field below Name, which falls under the metadata of deployment.yml. Additionally, I have structured a separate, expandable section for Probes, allowing users to conveniently review and customize each probe as needed.

  4. Within "demo-extended/values.yaml", default values have been provided for the newly added fields in the branch, along with resources (CPU and memory), which were previously declared but lacked default values.

Please Review the PR and feel free to contact me if any improvement required from my end 馃憤 ,

Thanks & Regards,
Rohan Rustagi

@petar-cvit petar-cvit requested a review from a team April 29, 2024 19:47
Copy link
Contributor

@petar-cvit petar-cvit left a comment

Choose a reason for hiding this comment

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

Thanks @RohanRusta21! Could you also add a description to the newly added fields

demo-extended/values.schema.json Show resolved Hide resolved
demo-extended/values.schema.json Show resolved Hide resolved
}
}
},
"readiness": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add order: ["path", "initialDelaySeconds"...]

Copy link
Author

Choose a reason for hiding this comment

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

Hey @petar-cvit , Yup its done now. Please Review it :)

- name: {{ $key }}
value: {{ $value | quote }}
{{- if .Values.general.environment }}
{{- toYaml .Values.general.environment | indent 12 }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you revert this? With the UI for env variables, the indent doesn't work
Screenshot 2024-05-04 at 22 42 24

}
},
"order": [
"enabled",
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add enabled to each probe separately? Also can you make it disabled by default in values.yaml

Copy link
Author

Choose a reason for hiding this comment

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

Hi @petar-cvit , actually initially I tried to have separate toggle for each probe. But it was not working fine. Maybe will try it again.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please do. You can paste the error here if you want and we can try to figure it out

Copy link
Author

Choose a reason for hiding this comment

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

Can you explain me this error.
image

UI changes performed :
image

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.

None yet

2 participants