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

Enable metrics flag via Helm values #2117

Merged
merged 3 commits into from Jun 23, 2021
Merged

Enable metrics flag via Helm values #2117

merged 3 commits into from Jun 23, 2021

Conversation

nakabonne
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@nghialv
Copy link
Member

nghialv commented Jun 23, 2021

/lgtm

Comment on lines 101 to 103
{{- if .Values.server.args.metrics }}
- --metrics=true
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

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

I think - --metrics={{ .Values.server.args.metrics }} is just fine, since we have parse the value here already 👀 https://github.com/pipe-cd/pipe/blob/master/pkg/cli/app.go#L165-L171

Copy link
Member Author

Choose a reason for hiding this comment

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

for sure. Piped does as well.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@pipecd-bot pipecd-bot removed the lgtm label Jun 23, 2021
@khanhtc1202
Copy link
Member

Thanks 🚀
/approve

@nakabonne
Copy link
Member Author

Fixed

@khanhtc1202
Copy link
Member

/approve cancel

@@ -98,6 +98,8 @@ spec:
- --enable-grpc-reflection={{ .Values.server.args.enableGRPCReflection }}
- --encryption-key-file={{ .Values.secret.mountPath }}/{{ .Values.secret.encryptionKey.fileName }}
- --log-encoding={{ .Values.server.args.logEncoding }}
- --metrics={{ .Values.server.args.metrics }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

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

this line should be removed 🙈

@nakabonne
Copy link
Member Author

/approve cancel

@nakabonne
Copy link
Member Author

Fixed

@khanhtc1202
Copy link
Member

🚀
/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by khanhtc1202.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

@pipecd-bot pipecd-bot merged commit 529f9a5 into master Jun 23, 2021
@pipecd-bot pipecd-bot deleted the add-metrics-flag branch June 23, 2021 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants