Skip to content

Conversation

@hellspawn679
Copy link
Contributor

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)

  • 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

rgaduput and others added 7 commits October 21, 2024 02:04
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]>
Signed-off-by: mehul <[email protected]>
Signed-off-by: mehul <[email protected]>
Signed-off-by: mehul <[email protected]>
fsGroup: 10001
securityContext: {}

service:
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 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?

- 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"
Copy link
Member

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?

Copy link
Contributor Author

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




{{- 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.

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

Comment on lines 793 to 807
{{- 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 }}
Copy link
Member

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 -}}
Copy link
Member

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 -}}
Copy link
Member

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.

mehul added 3 commits October 28, 2024 21:39
Signed-off-by: mehul <[email protected]>
Signed-off-by: mehul <[email protected]>
Signed-off-by: mehul <[email protected]>
name: jaeger
type: application
version: 3.3.1
version: 3.3.2
Copy link
Member

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 }}
Copy link
Member

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 }}

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

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

I showed example

Copy link
Contributor Author

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

@@ -0,0 +1,12 @@
{{ if .Values.userconfig }}
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 this file should be called user-config.yaml, it's not specific to all-in-one.

Copy link
Contributor Author

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

Copy link
Member

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

Comment on lines 137 to 139
- name: jaeger-config
configMap:
name: jaeger-configmap
Copy link
Member

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

Copy link
Contributor Author

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

Signed-off-by: mehul <[email protected]>
@yurishkuro
Copy link
Member

I merged changes from main into v2, let's resolve conflicts

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"
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 is hard to read, please use the same formatting as in the deleted sections, one flag per line

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.

please delete empty es.txt


- name: Run cassandra-chart-testing (install)
run: ct install --config ct.yaml
test-with-allInOne:
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
test-with-allInOne:
test-with-all-in-one:

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.

couple small things, ready to merge otherwise

Signed-off-by: mehul <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
@yurishkuro yurishkuro marked this pull request as ready for review November 3, 2024 16:53
@yurishkuro yurishkuro merged commit 6b4a59c into jaegertracing:v2 Nov 3, 2024
3 checks passed
yurishkuro added a commit that referenced this pull request Dec 2, 2025
* Jaeger v2 with v1 (#613)

* Jaeger allInOne allow different storage types (#603)

Signed-off-by: Reddysekhar Gaduputi <[email protected]>

upgrade jaeger-operator to latest 1.61.0 (#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]>

* minor changes

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

* added image changes

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

* fix lint

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

* removed v1 allInOne and added jaeger-v2

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

* removed v2 references

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

* added allInOne again

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

* minor fix

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

* fixed how the config is being passed

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

* fixed mirror template change

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

* use --set-file for user config

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

* removed config-test and updated configmap template

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

* fixed

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

* fixed minor naming

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

* indentation

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

---------

Signed-off-by: mehul <[email protected]>
Signed-off-by: mehul gautam  <[email protected]>
Signed-off-by: mehul <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Co-authored-by: Reddysekhar Gaduputi <[email protected]>
Co-authored-by: mehul <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>

* [jaeger-v2] Add support for Elasticsearch (#617)

* Jaeger allInOne allow different storage types (#603)

Signed-off-by: Reddysekhar Gaduputi <[email protected]>

upgrade jaeger-operator to latest 1.61.0 (#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]>

* minor changes

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

* added image changes

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

* fix lint

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

* removed v1 allInOne and added jaeger-v2

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

* removed v2 references

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

* added allInOne again

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

* minor fix

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

* fixed how the config is being passed

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

* fixed mirror template change

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

* use --set-file for user config

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

* removed config-test and updated configmap template

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

* fixed

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

* fixed minor naming

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

* indentation

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

* v2-elasticsearch

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

* fix ci

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

* fix ci

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

* fixed

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

* fixed and added docs

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

* fixed

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

* added port

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

* fixed

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

* fixed

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

* fixed typo

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

* fixed

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

* removed test config

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

* updated docs

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

---------

Signed-off-by: mehul <[email protected]>
Signed-off-by: mehul gautam  <[email protected]>
Signed-off-by: mehul <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Co-authored-by: Reddysekhar Gaduputi <[email protected]>
Co-authored-by: mehul <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>

* bump python (#649)

* Allow Configurable path for livenessProbe and readinessProbe in hotrod (#647)

Signed-off-by: chahat sagar <[email protected]>

* [jaeger] Add default probes path for hotrod (#651)

* add deafult path

Signed-off-by: chahat sagar <[email protected]>

* fix

Signed-off-by: chahat sagar <[email protected]>

* add deafult path

Signed-off-by: chahat sagar <[email protected]>

---------

Signed-off-by: chahat sagar <[email protected]>

* add ui-config (#654)

* Remove Operator chart

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

* Fix ES test by overriding Bitnami images Elasticsearch subchart (#661)

* Fix ES test by overriding Bitnami images for provisioned Elasticsearch

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

* .

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

---------

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

* Update README to remove Jaeger-v2 note

Removed outdated note about Helm Chart for Jaeger-v2.

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

* Update main chart's README to reflect v2 specifics (#663)

* Initial plan

* Merge README files for Jaeger v2 chart

- Updated introduction to reflect Jaeger v2 architecture (unified binary on OTel Collector framework)
- Updated default deployment description (allInOne mode with memory storage)
- Added new YAML-based configuration section showing OTel Collector format
- Added userconfig parameter documentation
- Updated storage configuration to use jaeger_storage extension format
- Added Storage Configuration Options with primary and archive store settings
- Updated Elasticsearch installation examples for v2 architecture
- Added notes about legacy components (Cassandra, Ingester, grpc-plugin)
- Added Separate Collector and Query Mode section for production deployments
- Removed outdated references to jaeger-agent DaemonSet as default
- Updated dependency documentation (removed deprecated incubator repo)
- Fixed typo: "Offical" -> "Official"

Co-authored-by: yurishkuro <[email protected]>

* Create merged README.md for Jaeger v2 chart (from v2 branch)

Merged content from README.md and README-v2.md in the v2 branch:
- Updated introduction to reflect Jaeger v2 architecture (unified binary on OTel Collector framework)
- Updated default deployment description (allInOne mode with memory storage)
- Added new YAML-based configuration section showing OTel Collector format
- Added userconfig parameter documentation
- Updated storage configuration to use jaeger_storage extension format
- Added Storage Configuration Options with primary and archive store settings
- Updated Elasticsearch installation examples for v2 architecture
- Added notes about legacy components (Cassandra, Ingester, grpc-plugin)
- Added Separate Collector and Query Mode section for production deployments
- Removed outdated references to jaeger-agent DaemonSet as default
- Updated dependency documentation (removed deprecated incubator repo)
- Fixed typo: "Offical" -> "Official"
- Fixed typo: "Updating to Kafka to" -> "Updating Kafka to"

Note: README-v2.md should be deleted from v2 branch after merging this PR

Co-authored-by: yurishkuro <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: yurishkuro <[email protected]>

---------

Signed-off-by: mehul <[email protected]>
Signed-off-by: mehul gautam  <[email protected]>
Signed-off-by: mehul <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: chahat sagar <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: danish9039 <[email protected]>
Co-authored-by: mehul gautam <[email protected]>
Co-authored-by: Reddysekhar Gaduputi <[email protected]>
Co-authored-by: mehul <[email protected]>
Co-authored-by: chahat sagar <[email protected]>
Co-authored-by: hippie-danish <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: yurishkuro <[email protected]>
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.

3 participants