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

Issue 164: Pre_Install_Report : Update deprecated Kubernetes APIs in tool to be compatible with Viya supported range 1.20.x-1.22.x #165

Merged
merged 13 commits into from
Feb 1, 2022

Conversation

lasiva
Copy link
Collaborator

@lasiva lasiva commented Jan 19, 2022

Updates:

  • viya4-ark/pre_install_report/library/utils/crdviya.yaml - uses apiextensions.k8s.io/v1viya
  • viya4-ark/pre_install_report/library/utils/crviya.yaml
  • viya4-ark/pre_install_report/library/utils/hello-ingress.yaml
  • Added k8s version at the top/global section of the Report (Currently user would have to drill down to find it). Moved Version check code earlier so that it is detected earlier. Should help with future maintenance.
  • Added k8s version to logs.
  • Updated README to reference to latest SAS Doc for Kubernetes Cluster requirements. (Will require frequent updates with the link to SAS Doc.)
  • Fixed Minor Type in logging message, Typo in pre_install_check_permissions.py #162

Deleted support for <1.19.

  • Deleted hello-ingress-k8s-v118.yaml - no longer supported.
  • Removed related pytests.
  • Refactored old code related to k8s version checking.

Questions:
There are no checks for upper limit of k8s supported range. Do we need one ???

@lasiva lasiva changed the title Issue 164: Pre_Install_Report : Update deprecated Kubernetes APIs in tool to be compatible with Viya supported range 1.19.x-1.22.x Issue 164: Pre_Install_Report : Update deprecated Kubernetes APIs in tool to be compatible with Viya supported range 1.19.x-1.21.x Jan 19, 2022
@erharb erharb requested a review from sasjowood January 19, 2022 20:40
pre_install_report/README.md Outdated Show resolved Hide resolved
pre_install_report/test/test_pre_install_report.py Outdated Show resolved Hide resolved
@lasiva lasiva requested a review from FredPerrySAS January 20, 2022 14:36
Copy link
Collaborator

@FredPerrySAS FredPerrySAS left a comment

Choose a reason for hiding this comment

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

See my comment.

Copy link
Collaborator

@FredPerrySAS FredPerrySAS left a comment

Choose a reason for hiding this comment

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

Only approving the README

@lasiva lasiva changed the title Issue 164: Pre_Install_Report : Update deprecated Kubernetes APIs in tool to be compatible with Viya supported range 1.19.x-1.21.x Issue 164: Pre_Install_Report : Update deprecated Kubernetes APIs in tool to be compatible with Viya supported range 1.20.x-1.22.x Jan 26, 2022
pre_install_report/library/pre_install_check.py Outdated Show resolved Hide resolved
pre_install_report/library/pre_install_check.py Outdated Show resolved Hide resolved
curr_version = semantic_version.Version(str(self._k8s_server_version))

if(curr_version in semantic_version.SimpleSpec(viya_constants.MIN_K8S_SERVER_VERSION)):
self.logger.error("This release of Kubernetes is not supported. major {} minor {}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this log entry show up as "This release of Kubernetes is not supported. X Y" rather than "X.Y"?? Seems like it's coded for the former but should be the latter.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Modified code so that the output looks like this: Example "This release of Kubernetes is not supported 1.16.x"

Copy link
Member

@erharb erharb Jan 26, 2022

Choose a reason for hiding this comment

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

Just saying what is not supported is not clear enough, does somewhere else in the messaging or report output clarify what the minimum supported version is to go along with the statement?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

pre_install_report/test/test_pre_install_report.py Outdated Show resolved Hide resolved
pre_install_report/test/test_pre_install_report.py Outdated Show resolved Hide resolved
@lasiva lasiva requested a review from kevinlinglesas January 26, 2022 17:04
@lasiva lasiva self-assigned this Feb 1, 2022
@lasiva lasiva added the bug Something isn't working label Feb 1, 2022
@lasiva lasiva merged commit 9cfc601 into develop Feb 1, 2022
@kevinlinglesas kevinlinglesas deleted the issue_164 branch October 7, 2022 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
5 participants