Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Add scalyr #1066

Closed
wants to merge 1 commit into from
Closed

Add scalyr #1066

wants to merge 1 commit into from

Conversation

pierreozoux
Copy link
Contributor

No description provided.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 12, 2017
@k8s-ci-robot
Copy link
Contributor

Hi @pierreozoux. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with @k8s-bot ok to test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 12, 2017
# Default values for scalyr.
image:
repository: scalyr/scalyr-docker-agent
tag: latest
Copy link
Member

Choose a reason for hiding this comment

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

Use a fixed version.

metadata:
name: {{ template "fullname" . }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Copy link
Member

Choose a reason for hiding this comment

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

@pierreozoux
Copy link
Contributor Author

Thanks @unguiculus I addressed your comments.

Copy link
Member

@unguiculus unguiculus 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 the quick changes. I've found a few more things.

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "configuration.fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why you name the config map differently? I'd suggest to use {{ template "fullname" . }} as well.

heritage: "{{ .Release.Service }}"
type: Opaque
data:
api-key: {{ default "MISSING" .Values.scalyr.apiKey | b64enc | quote }}
Copy link
Member

Choose a reason for hiding this comment

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

I don't know what makes more sense to you, but are you aware of the new required function? See https://github.com/kubernetes/helm/blob/master/docs/charts_tips_and_tricks.md#know-your-template-functions.

##
# apiKey:

resources:
Copy link
Member

Choose a reason for hiding this comment

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

Make resources configurable but do not specify defaults. This should be a conscious choice of the user.

metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

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

{{ template "name" . }} would be a better choice for the app label. I'd suggest you change it everywhere.

@unguiculus
Copy link
Member

I just tried to deploy the chart and got the following error:

$ helm install --name foo stable/scalyr
Error: render error in "scalyr/templates/NOTES.txt": template: scalyr/templates/NOTES.txt:1:14: executing "scalyr/templates/NOTES.txt" at <.Values.scalyr.apiKe...>: can't evaluate field apiKey in type interface {}

The same happens with helm template stable/scalyr.

@prydonius prydonius added the stale label Jun 1, 2017
@prydonius
Copy link
Member

@pierreozoux ping, can you update to address @unguiculus's comments?

@pierreozoux
Copy link
Contributor Author

@prydonius can we keep it on hold, I'm currently working for a client, and I want them to sign the CLA before continuing this task.

@unguiculus unguiculus changed the title Add scalyr [on hold] Add scalyr Jun 13, 2017
@pierreozoux
Copy link
Contributor Author

Addressed the comments thanks.
(And my current employer signed the CLA)

@prydonius prydonius changed the title [on hold] Add scalyr Add scalyr Jun 21, 2017
@prydonius prydonius removed the stale label Jun 21, 2017
Copy link
Member

@unguiculus unguiculus left a comment

Choose a reason for hiding this comment

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

Just found one more thing.

template:
metadata:
labels:
app: {{ template "fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

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

Add release label: release: "{{ .Release.Name }}"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, done

@unguiculus
Copy link
Member

@k8s-bot ok to test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 20, 2017
@k8s-ci-robot
Copy link
Contributor

@pierreozoux: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-charts-e2e 0a9e98a link /test pull-charts-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@unguiculus
Copy link
Member

Sorry for the delay. It should be possible to run install the chart with defaults.

@unguiculus
Copy link
Member

Closing as stale. Feel free to reopen if/when you decide to work on this again.

@unguiculus unguiculus closed this Sep 28, 2017
scottrigby added a commit to codecademy-engineering/helm-charts that referenced this pull request May 4, 2019
- Borrwed from helm/charts#1066
- Up to date with https://www.scalyr.com/help/install-agent-kubernetes
- Still needs ConfigMap support

Signed-off-by: Scott Rigby <[email protected]>
@scottrigby
Copy link
Member

scottrigby commented May 7, 2019

@pierreozoux I drew from some of your earlier work for a new Scalyr Helm chart. Check out scalyr/scalyr-agent-2#118 (comment) if you're still interested in this - always up for collaboration 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
changes needed cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants