Skip to content

Conversation

@iamvighnesh
Copy link

Peerd helm charts now use helm release namespace instead of creating a new namespace on its own.

Resolves #68

@iamvighnesh iamvighnesh requested review from a team and avtakkar as code owners May 14, 2025 16:18
@codecov
Copy link

codecov bot commented May 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.57%. Comparing base (c0b519d) to head (683e252).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #116      +/-   ##
==========================================
+ Coverage   72.05%   72.57%   +0.52%     
==========================================
  Files          37       26      -11     
  Lines        2340     1462     -878     
==========================================
- Hits         1686     1061     -625     
+ Misses        654      401     -253     

see 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@avtakkar avtakkar left a comment

Choose a reason for hiding this comment

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

Thanks for your PR. Just left a few comments wondering if it can be done another way to retain the namespace variable.

{{- end }}

{{- define "peerd.namespace" -}}
{{- if .Values.peerd.namespace.k8s }}
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 set this to {{ .Release.Namespace }} instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

I tried a CI run on Azure and peerd-ns is not cleaned up anymore after the run.

Copy link
Author

Choose a reason for hiding this comment

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

This is now fixed.

apiVersion: v1
kind: Namespace
metadata:
name: {{ include "peerd.namespace" . }}
Copy link
Contributor

Choose a reason for hiding this comment

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

This template can then be retained.

Copy link
Author

Choose a reason for hiding this comment

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

It is now re-instated.

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.

Use the helm release namespace by default instead of creating a new one

2 participants