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

Jaeger v2 with v1 #609

Closed

Conversation

hellspawn679
Copy link
Contributor

@hellspawn679 hellspawn679 commented Oct 16, 2024

What this PR does

Which issue this PR fixes

Checklist

  • DCO signed
  • Commits are GPG signed
  • Chart Version bumped
  • Title of the PR starts with chart name ([jaeger] or [jaeger-operator])
  • README.md has been updated to match version/contain new values

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

you need to add a v2 flavor of installation to the CI test

charts/jaeger/templates/allinone-deploy.yaml Outdated Show resolved Hide resolved
charts/jaeger/templates/allinone-agent-svc.yaml Outdated Show resolved Hide resolved



{{- define "jaeger-v2.name" -}}
Copy link
Member

Choose a reason for hiding this comment

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

Why any of these changes below necessary? Doesn't the chart already have them all for v1? Can we not reuse the same variables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes that is what i planed to do once i was sure that i was going in the right direction with v-2 deployment and config part

@yurishkuro
Copy link
Member

I see queries going to Liveness: http-get http://:14269/ - I don't think this port is available in v2. Health checks should be against :13133

.github/workflows/lint-test-v2.yaml Outdated Show resolved Hide resolved
.github/workflows/lint-test-v2.yaml Outdated Show resolved Hide resolved
charts/jaeger/templates/allinone-deploy.yaml Outdated Show resolved Hide resolved
charts/jaeger/templates/allinone-deploy.yaml Outdated Show resolved Hide resolved
Signed-off-by: Reddysekhar Gaduputi <[email protected]>

upgrade jaeger-operator to latest 1.61.0 (jaegertracing#605)

Signed-off-by: Blair Bowden <[email protected]>

added all-in-one deployment and configmap for jaeger-v2

Signed-off-by: Mehul <[email protected]>

lint fix

Signed-off-by: Mehul <[email protected]>

fixed

Signed-off-by: Mehul <[email protected]>

lint fix

Signed-off-by: Mehul <[email protected]>

lint fix

Signed-off-by: Mehul <[email protected]>

fixed using pre-hook

Signed-off-by: Mehul <[email protected]>

fixed --config flag is not been passed

Signed-off-by: mehul <[email protected]>

release ns for config-map.yaml

Signed-off-by: mehul <[email protected]>

testing ci

Signed-off-by: mehul <[email protected]>

testing ci

Signed-off-by: mehul <[email protected]>

fixed ns

Signed-off-by: mehul <[email protected]>

fixed ns

Signed-off-by: mehul <[email protected]>

fixed template

Signed-off-by: mehul <[email protected]>

removed sampling

Signed-off-by: mehul <[email protected]>

removed adaptive sampling from processors

Signed-off-by: mehul <[email protected]>

Revert "Jaeger v2 test2"

Signed-off-by: mehul <[email protected]>

attempt to create v2 chart in v1

Signed-off-by: mehul <[email protected]>

enabled collector query and agent

Signed-off-by: mehul <[email protected]>

version bump

Signed-off-by: mehul <[email protected]>

testing-v2-ci

Signed-off-by: mehul <[email protected]>

testing-v2-ci

Signed-off-by: mehul <[email protected]>

added --helm-extra-set-args flag

Signed-off-by: mehul <[email protected]>

fixed healthcheck port-v2

Signed-off-by: mehul <[email protected]>

Fix health check path

Signed-off-by: Yuri Shkuro <[email protected]>

minor changes

Signed-off-by: mehul <[email protected]>
exporters: [{{ join ", " .Values.service.pipelines.traces.exporters }}]

extensions:
{{- include "jaeger-v2.extensionsConfig" . | nindent 6 }}
Copy link
Member

Choose a reason for hiding this comment

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

I recommend not using templates here - all they do is resolve to a single line, it's better for readability to just inline that line here.

storage:
traces: primary_store
traces_archive: archive_store

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

jaeger_storage_exporter:
trace_storage: primary_store


Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# The following settings apply to Jaeger v1 and partially to Jaeger v2

@hellspawn679 hellspawn679 marked this pull request as ready for review October 22, 2024 21:03
ct install --config ct.yaml
elif [ "${{ matrix.version }}" == "v2" ]; then
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"
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe that the chart can have a breaking version and from this PR one we can support only V2. You shouldn't try to support both of them in the same code branch. V1 can be in a separate branch we can only update it in case of critical bugs or security issues but it will not be maintained in the long run. People should at some point switch to V2.

Copy link
Member

Choose a reason for hiding this comment

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

@pavelnikolov can you please propose a more concrete plan as far as organizing the repo? How will helm know about different branches?

@@ -3,7 +3,7 @@ appVersion: 1.53.0
description: A Jaeger Helm chart for Kubernetes
name: jaeger
type: application
version: 3.3.1
version: 3.3.2
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a major chart version as per the above comment, IMHO.

{{/*
Create image name for v2 image
*/}}
{{- define "v2.image" -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

again, there shouldn't be any v2 prefixes. There should be only major chart version bump.

@@ -105,6 +124,10 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
{{- if .Values.v2.enabled }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we should assume that v2 is always enabled and the only one we support from now on in the main branch. Then there can be v1 branch respectively.

@@ -2,6 +2,66 @@
# This is a YAML-formatted file.
# Jaeger values are grouped by component. Cassandra values override subchart values

v2:
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not try to make this branch support both v1 and v2. We already have a chart which support v1, let's focus 100% on v2 from now on.

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.

4 participants