-
Notifications
You must be signed in to change notification settings - Fork 557
K8s 1.22 compatibility issues #871
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* Changed grafana datasource name and removed Prometheus datasource * Added chart 4.10 for deployment template * Added new features on chart 4.10 * Added migrations for chart 4.10 * Updated Micro-Services for 1.22 * Changed LTAG for testing Co-authored-by: Pawan Kumar <[email protected]> Co-authored-by: Prakarsh <[email protected]>
- Also removed nats-operator dependency
* Added chart for 4.10.0 version * updated chart version * updated ingress.yaml * updated apiversion of PodDisruptionBudget * updated ingress.yaml as pathType is required field * updated hpa spec * updated chart.yaml * Added Environment vlariable fieldRef/fieldPath support * Added initcontainer resources support * Added k8s 1.22 compatible chart changes Co-authored-by: pawan-59 <[email protected]>
- HPA Documentation updated - Ingress Documentation updated
…abs/devtron into k8s-1.22-compatibility
- Updated the ingress section with new format - Updated the ingress legacy format
…abs/devtron into k8s-1.22-compatibility
| grafanaPassword = jsonSelect(operatorSecret, "data.GRAFANA_PASSWORD"); | ||
| azureAccountKey = jsonSelect(operatorSecret, "data.AZURE_ACCOUNT_KEY"); | ||
| postgresSecret = kubectl get secret -n devtroncd postgresql-postgresql; | ||
| enableLegacyApi = jsonSelect(operatorConfigMap, "data.ENABLE_LEGACY_API"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be introducing flags specific to k8s version so that in future we can support multiple version compatibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will be more intuitive for users also
| @@ -0,0 +1,19 @@ | |||
| apiVersion: extensions/v1beta1 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need a specific documentation section for ingress setup
| @@ -1,6 +1,9 @@ | |||
| {{- if $.Values.autoscaling.enabled }} | |||
| --- | |||
| {{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }} | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its good practice to write logic in utils and treat apiVersion as variable in template
scripts/devtron-reference-helm-charts/reference-chart_3-12-0/app-values.yaml
Show resolved
Hide resolved
scripts/devtron-reference-helm-charts/reference-chart_3-12-0/app-values.yaml
Show resolved
Hide resolved
This reverts commit 4c9f578.
|
Thanks for investing time in this! I use K8S 1.22 and egearly await the release of this patch. |
Description
This PR resolves most k8s 1.22 compatibility issues.
Fixes #870
Fixes #869
Fixes #843
Fixes #850
Type of change
How Has This Been Tested?
Tested on various versions of K8s up to k8s 1.22
Checklist:
https://github.com/devtron-labs/silver-surfer has been very helpful in identifying the objects that needed upgrade for making them compatible to kubernetes 1.22