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

Handle older GKE versions #1720

Merged

Conversation

fanny-jiang
Copy link
Contributor

@fanny-jiang fanny-jiang commented Feb 27, 2025

What this PR does / why we need it:

  • Handle datadog chart installation in GKE Autopilot clusters running versions < GKE 1.32.1-gke.1729000

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer:

Testing done:

Non-autopilot clusters should not fail

  • kind cluster >= 1.32.1
    • minimal config should not fail
    • providers.gke.autopilot=true should not fail
    • datadog.networkMonitoring.enabled=true should not fail
    • should NOT create AllowlistSynchronizer
  • kind cluster < 1.32.1
    • minimal config should not fail
    • providers.gke.autopilot=true should not fail
    • datadog.networkMonitoring.enabled=true should not fail
    • should NOT create AllowlistSynchronizer
  • GKE standard cluster >= GKE 1.32.1-gke.1729000
    • minimal config should not fail
    • providers.gke.autopilot=true should not fail
    • datadog.networkMonitoring.enabled=true should not fail
    • should NOT create AllowlistSynchronizer
  • GKE standard cluster < GKE 1.32.1-gke.1729000
    • minimal config should not fail
    • providers.gke.autopilot=true should not fail
    • datadog.networkMonitoring.enabled=true should not fail
    • should NOT create AllowlistSynchronizer

Autopilot clusters should not fail

  • autopilot >= GKE 1.32.1-gke.1729000
    • minimal config providers.gke.autopilot=true should not fail
    • datadog.networkMonitoring.enabled=true should enable system-probe container
    • should create AllowlistSynchronizer
  • autopilot < GKE 1.32.1-gke.1729000
    • minimal config providers.gke.autopilot=true should not fail
    • datadog.networkMonitoring.enabled=true should fail and throw error
    • should NOT create AllowlistSynchronizer

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Chart Version bumped
  • Documentation has been updated with helm-docs (run: .github/helm-docs.sh)
  • CHANGELOG.md has been updated
  • Variables are documented in the README.md
  • For Datadog Operator chart or value changes update the test baselines (run: make update-test-baselines)

@fanny-jiang fanny-jiang requested a review from a team as a code owner February 27, 2025 16:17
Comment on lines +6 to +7
annotations:
helm.sh/hook: "pre-install,pre-upgrade"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ensures that the required CRD is installed before other k8s resources

@@ -337,7 +337,7 @@ You are using datadog.orchestratorExplorer.enabled but you disabled the cluster
To enable it please set clusterAgent.enabled to 'true'.
{{- end }}

{{- if .Values.providers.gke.autopilot}}
{{- if and (.Values.providers.gke.autopilot) (not .Values.datadog.envDict.DD_CI)}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The .Values.datadog.envDict.DD_CI is a workaround for CI tests running in non-autopilot clusters

@fanny-jiang fanny-jiang merged commit 64df0bc into hasan.mahmood/system-probe-autopilot Feb 28, 2025
28 checks passed
@fanny-jiang fanny-jiang deleted the fanny/autopilot-old-gke branch February 28, 2025 01:03
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.

2 participants