-
Notifications
You must be signed in to change notification settings - Fork 348
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
Jaeger v2 with v1 #613
Jaeger v2 with v1 #613
Conversation
Signed-off-by: Reddysekhar Gaduputi <gsekhar73@gmail.com> upgrade jaeger-operator to latest 1.61.0 (jaegertracing#605) Signed-off-by: Blair Bowden <blair@radiusmethod.com> added all-in-one deployment and configmap for jaeger-v2 Signed-off-by: Mehul <mehulsharma4786@gmail.com> lint fix Signed-off-by: Mehul <mehulsharma4786@gmail.com> fixed Signed-off-by: Mehul <mehulsharma4786@gmail.com> lint fix Signed-off-by: Mehul <mehulsharma4786@gmail.com> lint fix Signed-off-by: Mehul <mehulsharma4786@gmail.com> fixed using pre-hook Signed-off-by: Mehul <mehulsharma4786@gmail.com> fixed --config flag is not been passed Signed-off-by: mehul <mehulsharam4786@gmail.com> release ns for config-map.yaml Signed-off-by: mehul <mehulsharam4786@gmail.com> testing ci Signed-off-by: mehul <mehulsharam4786@gmail.com> testing ci Signed-off-by: mehul <mehulsharam4786@gmail.com> fixed ns Signed-off-by: mehul <mehulsharam4786@gmail.com> fixed ns Signed-off-by: mehul <mehulsharam4786@gmail.com> fixed template Signed-off-by: mehul <mehulsharam4786@gmail.com> removed sampling Signed-off-by: mehul <mehulsharam4786@gmail.com> removed adaptive sampling from processors Signed-off-by: mehul <mehulsharam4786@gmail.com> Revert "Jaeger v2 test2" Signed-off-by: mehul <mehulsharam4786@gmail.com> attempt to create v2 chart in v1 Signed-off-by: mehul <mehulsharam4786@gmail.com> enabled collector query and agent Signed-off-by: mehul <mehulsharam4786@gmail.com> version bump Signed-off-by: mehul <mehulsharam4786@gmail.com> testing-v2-ci Signed-off-by: mehul <mehulsharam4786@gmail.com> testing-v2-ci Signed-off-by: mehul <mehulsharam4786@gmail.com> added --helm-extra-set-args flag Signed-off-by: mehul <mehulsharam4786@gmail.com> fixed healthcheck port-v2 Signed-off-by: mehul <mehulsharam4786@gmail.com> Fix health check path Signed-off-by: Yuri Shkuro <github@ysh.us> minor changes Signed-off-by: mehul <mehulsharam4786@gmail.com>
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
Signed-off-by: mehul <mehulsharam4786@gmail.com>
…elm-charts into jaeger-v2-with-v1
Signed-off-by: mehul <mehulsharam4786@gmail.com>
Signed-off-by: mehul <mehulsharam4786@gmail.com>
charts/jaeger/values.yaml
Outdated
@@ -96,6 +81,75 @@ allInOne: | |||
fsGroup: 10001 | |||
securityContext: {} | |||
|
|||
service: |
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.
I don't like how you are mixing the OTEL config sections with chart sections like provisionDataStore
. Is it possible to wrap the config under parent config:
element?
.github/workflows/lint-test.yaml
Outdated
@@ -69,4 +69,5 @@ jobs: | |||
cmctl check api --wait=5m | |||
|
|||
- name: Run chart-testing (install) | |||
run: ct install --config ct.yaml | |||
run: | | |||
ct install --config ct.yaml --helm-extra-set-args "--set v2.enabled=true --set provisionDataStore.cassandra=false --set storage.type=memory --set allInOne.enabled=true --set agent.enabled=false --set collector.enabled=false --set query.enabled=false" |
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.
--set v2.enabled=true
left over?
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.
oh i changes v2 to jaeger will fix it now
charts/jaeger/templates/_helpers.tpl
Outdated
|
||
|
||
|
||
{{- define "jaeger-v2.name" -}} |
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.
we already discussed this - all these settings are already present in the chart without the v2
name, so please use the existing ones. I don't think there should be any properties / templates that have v2
in the name
charts/jaeger/templates/_helpers.tpl
Outdated
{{- define "jaeger-v2.extensionsConfig" -}} | ||
{{ toYaml .Values.extensions | nindent 6 }} | ||
{{- end }} | ||
|
||
{{- define "jaeger-v2.receiversConfig" -}} | ||
{{ toYaml .Values.receivers | nindent 6 }} | ||
{{- end }} | ||
|
||
{{- define "jaeger-v2.processorsConfig" -}} | ||
{{ toYaml .Values.processors | nindent 6 }} | ||
{{- end }} | ||
|
||
{{- define "jaeger-v2.exportersConfig" -}} | ||
{{ toYaml .Values.exporters | nindent 6 }} | ||
{{- end }} |
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.
these can be inlined directly in the template, they provide no value
@@ -1,14 +0,0 @@ | |||
{{- if .Values.allInOne.enabled -}} |
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.
why is this deleted? all-in-one is still a valid deployment and will need a ServiceAccount
@@ -1,4 +1,4 @@ | |||
{{- if .Values.allInOne.enabled -}} |
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.
why do we need to rename all these files? Please keep the same names - there should be no files with v2
in the name.
Signed-off-by: mehul <mehulsharam4786@gmail.com>
Signed-off-by: mehul <mehulsharam4786@gmail.com>
charts/jaeger/Chart.yaml
Outdated
description: A Jaeger Helm chart for Kubernetes | ||
name: jaeger | ||
type: application | ||
version: 3.3.1 | ||
version: 3.3.2 |
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.
maybe go to 4.x? It's not backwards compatible with chart-3.x which only works with jaeger-v1
name: jaeger-configmap | ||
namespace: {{ include "jaeger.namespace" . }} | ||
labels: | ||
{{- include "jaeger.labels" . | nindent 4 }} |
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.
is this much whitespace on the left expected? Could we use normal indentation
labels:
{{- include "jaeger.labels" . | nindent 4 }}
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.
could you explain what do yo mean by "normal indentation" i used this format because that is how labels are indented thought-out the chart
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.
I showed example
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.
oh got it will fix it
Signed-off-by: mehul <mehulsharam4786@gmail.com>
Signed-off-by: mehul <mehulsharam4786@gmail.com>
Signed-off-by: mehul <mehulsharam4786@gmail.com>
@@ -0,0 +1,12 @@ | |||
{{ if .Values.userconfig }} |
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.
I think this file should be called user-config.yaml
, it's not specific to all-in-one.
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.
i used that only in the start but I got this error
Error: INSTALLATION FAILED: parse error at (jaeger/templates/allInOne-config.yaml:1): bad character U+002D '-'
the problem is helm chart don't allow '-' there is workaround we can use
{{index .Values.user-config }}
but with if or any other condition statements it throw this error
Error: INSTALLATION FAILED: parse error at (jaeger/templates/allInOne-config.yaml:1): unexpected <if> in operand
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.
I made this change to the template
diff --git a/charts/jaeger/templates/allInOne-config.yaml b/charts/jaeger/templates/allInOne-config.yaml
index eca21f2..e473618 100644
--- a/charts/jaeger/templates/allInOne-config.yaml
+++ b/charts/jaeger/templates/allInOne-config.yaml
@@ -8,5 +8,5 @@ metadata:
{{- include "jaeger.labels" . | nindent 4 }}
data:
config.yaml: |
- {{ .Values.userconfig | nindent 8 }}
+ {{- .Values.userconfig | nindent 4 }}
{{- end }}
created mock config file
$ cat myconfig.yaml
hello:
world: true
and ran a test
$ helm template --set-file userconfig=myconfig.yaml charts/jaeger > test-output.txt
which resulted in reasonably looking resource file:
# Source: jaeger/templates/allInOne-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: jaeger-configmap
namespace: default
labels:
helm.sh/chart: jaeger-4.0.0
app.kubernetes.io/name: jaeger
app.kubernetes.io/instance: release-name
app.kubernetes.io/version: "2.0.0-rc2"
app.kubernetes.io/managed-by: Helm
data:
config.yaml: |
hello:
world: true
Signed-off-by: mehul <mehulsharam4786@gmail.com>
- name: jaeger-config | ||
configMap: | ||
name: jaeger-configmap |
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.
please clean-up all the naming. Not jaeger-config, not jaeger-configmap, not allInOne-config.yaml
, not config.yaml
- everything should be using a single name user-config
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.
done should i convert it to PR
I merged changes from main into v2, let's resolve conflicts |
Signed-off-by: mehul gautam <mehulsharma4786@gmail.com>
.github/workflows/lint-test.yaml
Outdated
fetch-depth: 0 | ||
|
||
- uses: ./.github/actions/prepare-k8s | ||
ct install --config ct.yaml --helm-extra-set-args "--set provisionDataStore.cassandra=false --set storage.type=memory --set allInOne.enabled=true --set agent.enabled=false --set collector.enabled=false --set query.enabled=false" |
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.
this line is hard to read, please use the same formatting as in the deleted sections, one flag per line
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.
please delete empty es.txt
.github/workflows/lint-test.yaml
Outdated
- uses: ./.github/actions/prepare-k8s | ||
|
||
- name: Run cassandra-chart-testing (install) | ||
run: ct install --config ct.yaml | ||
test-with-allInOne: |
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.
test-with-allInOne: | |
test-with-all-in-one: |
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.
couple small things, ready to merge otherwise
Signed-off-by: mehul <mehulsharma4786@gmail.com>
Signed-off-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
What this PR does
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format,will close that issue when PR gets merged)
Checklist
[jaeger]
or[jaeger-operator]
)