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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add semversion condition #188

Closed
wants to merge 1 commit into from

Conversation

naturalett
Copy link

@naturalett naturalett commented Oct 12, 2023

Describe your changes :

I added semverCompare condition in the deployment template because the attribute of startupProbe doesn't work for kubernetes version that is below <1.16-0

Type of change :

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Frontend Preview (Screenshots) :

For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my own.
  • I have tagged my reviewers below.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

Reviewers

@shahsank3t
@harshach

@@ -73,8 +73,10 @@ spec:
{{ .Values.livenessProbe | toYaml | indent 12 | trim }}
readinessProbe:
{{ .Values.readinessProbe | toYaml | indent 12 | trim }}
{{- if (semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion) }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hello @naturalett . Any particular reason for this backward compatibility ?

We currently only support upto latest 3 major kubernetes versions as for the Kubernetes Versions Compatibility Matrix here.

@naturalett naturalett closed this Nov 4, 2023
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.

2 participants