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

Updates to testsuite according to cnf-testsuite/helm#6 #2218

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

Conversation

rafal-lal
Copy link
Collaborator

Description

Updates to testsuite according to helm shard refactor (changes can be found here cnf-testsuite/helm#6). No other changes added besides removing duplicate from shards.yaml file.

Issues:

Refs: #2199

How has this been tested:

  • Covered by existing integration testing
  • Added integration testing to cover
  • Verified all A/C passes
    • develop
    • master
    • tag/other branch
  • Test environment
    • Shared Packet K8s cluster
    • New Packet K8s cluster
    • Kind cluster
  • Have not tested

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

Documentation

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • No updates required.

Code Review

  • Does the test handle fatal exceptions, ie. rescue block

Issue

  • Tasks in issue are checked off

@rafal-lal rafal-lal marked this pull request as draft February 17, 2025 20:54
@rafal-lal rafal-lal self-assigned this Feb 17, 2025
@rafal-lal rafal-lal force-pushed the rlal_helm_shard_refactor_updates branch 3 times, most recently from e002060 to 0339ddd Compare February 21, 2025 14:23
@rafal-lal rafal-lal force-pushed the rlal_helm_shard_refactor_updates branch from 0339ddd to dbf5630 Compare February 21, 2025 14:28
@rafal-lal rafal-lal force-pushed the rlal_helm_shard_refactor_updates branch from 4f3e897 to baac78a Compare February 24, 2025 13:18
@rafal-lal rafal-lal marked this pull request as ready for review February 24, 2025 15:12
@rafal-lal rafal-lal requested a review from collivier February 24, 2025 15:12
@@ -4,6 +4,6 @@ deployments:
helm_charts:
- name: jenkins
helm_chart_name: jenkins
helm_values: --set controller.sidecars.configAutoReload.enabled=false
helm_values: --set controller.sidecars.configAutoReload.enabled=false --set controller.installPlugins=false
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Jenkins consistently failed to install (error in init container during plugins installation).

@@ -23,7 +23,7 @@ module CNFInstall
begin
CNFManager.ensure_namespace_exists!(helm_namespace)
#TODO (kosstennbl) fix Helm install to add -n to namespace and remove it there
response = Helm.install(release_name: @deployment_name, helm_chart: chart_path, namespace: "-n #{helm_namespace}", values: helm_values)
response = Helm.install(@deployment_name, chart_path, namespace: "#{helm_namespace}", values: helm_values)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unnecessary "#{helm_namespace}", just pass the variable

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will fix once approved to go in, dont want to restart long CI.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think that it can be approved before review comments are addressed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well, what I meant is when all the involved people will leave theirs comments.

@@ -21,7 +21,7 @@ module FluentManager
Helm.helm_repo_add(flavor_name, repo_url)
File.write(values_file, values_macro)
begin
Helm.install("--values #{values_file} -n #{TESTSUITE_NAMESPACE} #{flavor_name} #{chart}")
Helm.install("#{flavor_name}", "#{chart}", namespace: TESTSUITE_NAMESPACE, values: "--values #{values_file}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unnecessary #{}.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will fix once approved to go in, dont want to restart long CI.

Copy link
Collaborator

@svteb svteb left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@martin-mat martin-mat left a comment

Choose a reason for hiding this comment

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

other than:

  • incorporating Slavo's comments
  • changing dependencies once helm changes are merged and a new helm lib version is relased

-> lgtm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

3 participants