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

feat: helm Parameters/Variables/Values.yaml can be configured via XML/DSL #1244

Merged
merged 2 commits into from Feb 1, 2022

Conversation

manusa
Copy link
Member

@manusa manusa commented Jan 28, 2022

Description

feat: helm Parameters/Variables/Values.yaml can be configured via XML/DSL

Instead of providing parameters via Template resource fragment, they can now be provided via pom.xml XML configuration or build.gadle DSL configuration.

The following configuration:

<helm>
  <parameters>
    <parameter>
      <name>chart_name</name>
      <value>{{ .Chart.Name }}</value>
    </parameter>
  </parameters>
</helm>

Can interpolate a resource fragment:

metadata:
 annotations:
   chart/name: ${chart_name}

To produce a:

apiVersion: v1
kind: #...
metadata:
  annotations:
   chart/name: {{ .Chart.Name }}
# ...

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

/cc @dloiacono

@manusa manusa added this to the 1.6.0 milestone Jan 28, 2022
@codecov
Copy link

codecov bot commented Jan 28, 2022

Codecov Report

Merging #1244 (2502caf) into master (165cff7) will increase coverage by 0.06%.
The diff coverage is 97.91%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1244      +/-   ##
============================================
+ Coverage     50.57%   50.63%   +0.06%     
- Complexity     3734     3751      +17     
============================================
  Files           458      458              
  Lines         20637    20671      +34     
  Branches       2809     2812       +3     
============================================
+ Hits          10437    10467      +30     
- Misses         9103     9108       +5     
+ Partials       1097     1096       -1     
Impacted Files Coverage Δ
...lipse/jkube/kit/resource/helm/HelmServiceUtil.java 70.54% <50.00%> (ø)
.../java/org/eclipse/jkube/kit/common/Maintainer.java 80.00% <100.00%> (+8.57%) ⬆️
...ava/org/eclipse/jkube/kit/common/util/MapUtil.java 88.67% <100.00%> (+5.82%) ⬆️
...rg/eclipse/jkube/kit/resource/helm/HelmConfig.java 97.91% <100.00%> (+0.04%) ⬆️
...g/eclipse/jkube/kit/resource/helm/HelmService.java 95.23% <100.00%> (+0.36%) ⬆️
...it/config/service/portforward/PortForwardTask.java 60.00% <0.00%> (-4.00%) ⬇️
...e/jkube/kit/config/service/PortForwardService.java 70.10% <0.00%> (-3.10%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 165cff7...2502caf. Read the comment docs.

@dloiacono
Copy link
Contributor

great functionality!
Thanks @manusa

@manusa manusa self-assigned this Jan 28, 2022
…/DSL

Signed-off-by: Marc Nuri <marc@marcnuri.com>
CHANGELOG.md Show resolved Hide resolved
Signed-off-by: Marc Nuri <marc@marcnuri.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.0% 97.0% Coverage
0.0% 0.0% Duplication

@manusa manusa merged commit f7d64b9 into eclipse-jkube:master Feb 1, 2022
@manusa manusa deleted the feat/helm-parameter-config branch February 1, 2022 06:40
@manusa
Copy link
Member Author

manusa commented Feb 3, 2022

The functionality introduced in this PR can be seen in action in the following YouTube video:

https://youtu.be/_sf5RN1afNM?t=26

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.

None yet

4 participants