-
Notifications
You must be signed in to change notification settings - Fork 174
ROX-33465: Remove OCP 3 support, make OCP auto-sensing more reliable #19895
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
base: master
Are you sure you want to change the base?
Changes from all commits
6698a7f
9470481
8dc825c
c103e30
d8855cf
23035cc
e505f6c
5a3993b
3afd824
0d877af
157e977
3393522
94b98fd
56b162e
6df700a
bbf7b68
990436f
426c5e6
956374e
a59a673
c632e38
305dcbf
0a52578
84eb95c
f039d53
db8f144
07229a7
92c95c1
172826b
785fde7
155b928
f0d84f5
86903ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,6 +114,8 @@ func newCentralClient(instanceId string) *CentralClient { | |
| func getCentralDeploymentProperties() map[string]any { | ||
| orchestrator := storage.ClusterType_KUBERNETES_CLUSTER.String() | ||
| if env.Openshift.BooleanSetting() { | ||
| // Should probably be changed to OPENSHIFT4_CLUSTER, but since this is production code, keeping it for now | ||
| // due to compatibility concerns. | ||
| orchestrator = storage.ClusterType_OPENSHIFT_CLUSTER.String() | ||
| } | ||
|
Comment on lines
116
to
120
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify telemetry consumers/assertions are migrated to OPENSHIFT4_CLUSTER.
# Expected: no remaining consumer logic that only recognizes OPENSHIFT_CLUSTER for OpenShift telemetry.
rg -n -C3 --type=go --type=yaml --type=json 'Orchestrator|OPENSHIFT_CLUSTER|OPENSHIFT4_CLUSTER'Repository: stackrox/stackrox Length of output: 50374 🏁 Script executed: #!/bin/bash
# Search for where Orchestrator telemetry value is consumed/filtered in queries/dashboards
# Look for patterns like filtering, comparing, or aggregating on cluster type/orchestrator
rg -n "OPENSHIFT_CLUSTER|OPENSHIFT4_CLUSTER" --type=go -C2 | grep -v "node\|namespace\|compliance" | head -100Repository: stackrox/stackrox Length of output: 7199 🏁 Script executed: #!/bin/bash
# Find telemetry aggregation/dashboarding code
fd -e go -e ts -e js | xargs grep -l "telemetry.*[Oo]rchestrator\|aggregat.*cluster" 2>/dev/null | head -20Repository: stackrox/stackrox Length of output: 371 🏁 Script executed: #!/bin/bash
# Search central package telemetry client specifically
fd -type f -path "*/central/*telemetry*" -name "*.go" | head -20Repository: stackrox/stackrox Length of output: 231 🏁 Script executed: #!/bin/bash
# Check the actual file mentioned in the review
cat central/telemetry/centralclient/client.go | head -150Repository: stackrox/stackrox Length of output: 5071 🏁 Script executed: #!/bin/bash
# Look for filters or assertions on the Orchestrator value in telemetry/metrics
rg -n "Orchestrator.*OPENSHIFT|OPENSHIFT.*Orchestrator" --type=go | head -30Repository: stackrox/stackrox Length of output: 43 🏁 Script executed: #!/bin/bash
# Check if the old OPENSHIFT_CLUSTER test value needs updating
cat qa-tests-backend/helm/values.openshift.yamlRepository: stackrox/stackrox Length of output: 707 🏁 Script executed: #!/bin/bash
# Search for telemetry assertions or test validations on cluster type
rg -n "OPENSHIFT_CLUSTER.*String\|String.*OPENSHIFT_CLUSTER" --type=go | head -30Repository: stackrox/stackrox Length of output: 43 🏁 Script executed: #!/bin/bash
# Look for any migration notes or comments related to this change
rg -n "OPENSHIFT4_CLUSTER|OPENSHIFT_CLUSTER" -B2 -A2 --type=go | grep -i "migration\|change\|old\|new" | head -40Repository: stackrox/stackrox Length of output: 859 🏁 Script executed: #!/bin/bash
# Check if test config needs updating - search for all helm test values files using this setting
fd -name "values*.yaml" | xargs grep -l "OPENSHIFT" 2>/dev/nullRepository: stackrox/stackrox Length of output: 293 🏁 Script executed: #!/bin/bash
# Look for where the telemetry property "Orchestrator" is documented or configured
rg -n '"Orchestrator"' --type=go | head -20Repository: stackrox/stackrox Length of output: 313 🏁 Script executed: #!/bin/bash
# Check if there are any related git commits or comments about this migration
git log --oneline --all -20 -- central/telemetry/centralclient/client.go 2>/dev/null || echo "Git not available"Repository: stackrox/stackrox Length of output: 306 🏁 Script executed: #!/bin/bash
# Search for documentation or migration guides
fd -name "*.md" | xargs grep -l "OPENSHIFT_CLUSTER\|telemetry.*orchestr" 2>/dev/null | head -10Repository: stackrox/stackrox Length of output: 291 🏁 Script executed: #!/bin/bash
# Check the test file to see what value is expected
cat central/telemetry/centralclient/client_test.go | grep -A5 -B5 "Orchestrator"Repository: stackrox/stackrox Length of output: 674 🏁 Script executed: #!/bin/bash
# Look for any GraphQL/dashboard code that might filter on this value
fd -name "*.graphql" -o -name "*dashboard*" | head -20Repository: stackrox/stackrox Length of output: 291 🏁 Script executed: #!/bin/bash
# Verify the enum values in proto/storage
rg "OPENSHIFT_CLUSTER|OPENSHIFT4_CLUSTER" generated/storage/*.pb.go | head -20Repository: stackrox/stackrox Length of output: 658 Add test validation for the OpenShift telemetry value, and update test configuration to use OPENSHIFT4_CLUSTER. The change to emit 🤖 Prompt for AI Agents |
||
| // k8s apiserver is not accessible in cloud service environment. | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Include the new minimum supported OpenShift version in this changelog note.
Line 33 documents OCP3 removal, but it should also state the new floor (
OpenShift 4.12) so upgrade impact is explicit.Suggested changelog tweak
🤖 Prompt for AI Agents