-
Notifications
You must be signed in to change notification settings - Fork 237
feat: add metadata integration for agent-control-deployment #2179
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,9 @@ jobs: | |
| - chart: pipeline-control-gateway | ||
| agent-type: PipelineControlGateway | ||
| config-directory: charts/pipeline-control-gateway/.fleetControl | ||
| - chart: agent-control-deployment | ||
| agent-type: NRAgentControl | ||
| config-directory: charts/agent-control-deployment/.fleetControl | ||
| fail-fast: false | ||
|
|
||
| steps: | ||
|
|
@@ -51,14 +54,20 @@ jobs: | |
| with: | ||
| ref: ${{ github.event.release.tag_name }} | ||
|
|
||
| - name: Extract version from release tag | ||
| - name: Extract version from release tag or Chart.yaml | ||
| if: steps.should-run.outputs.match == 'true' | ||
| id: version | ||
| run: | | ||
| VERSION="${{ github.event.release.tag_name }}" | ||
| VERSION="${VERSION#${{ matrix.chart }}-}" | ||
| if [[ "${{ matrix.chart }}" == "agent-control-deployment" ]]; then | ||
| VERSION=$(yq '.appVersion' charts/${{ matrix.chart }}/Chart.yaml | tr -d '"') | ||
| echo "Extracted version from Chart.yaml appVersion: $VERSION" | ||
|
Comment on lines
+61
to
+63
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the version we need is not
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually, I did this on purpose. The main idea is that we want the version to be the same as in the hosts, for the requirements. We can say this works with this version of agent-control
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have just discussed it offline, this version is not used for self-update but requirements therefore, we do need the |
||
| else | ||
| VERSION="${{ github.event.release.tag_name }}" | ||
| VERSION="${VERSION#${{ matrix.chart }}-}" | ||
| echo "Extracted version from tag: $VERSION" | ||
| fi | ||
| echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
| echo "Extracted version: $VERSION for chart ${{ matrix.chart }}" | ||
| echo "Final version: $VERSION for chart ${{ matrix.chart }}" | ||
|
|
||
| - name: Check .fleetControl directory | ||
| if: steps.should-run.outputs.match == 'true' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Documentation: https://newrelic.atlassian.net/wiki/spaces/INST/pages/4609638833/CDD+Metadata+to+be+stored | ||
| configurationDefinitions: | ||
| - platform: KUBERNETESCLUSTER | ||
| description: agent control configuration | ||
| type: agent-control-config | ||
| version: 1.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jcoscollanr we are about to remove the appVersion and move back the tag to the values to improve our release process. So once that change is merged the tag will be under values.yaml
image.tag