Skip to content

Move K8s cloud setup to init script only; remove ensureK8sCloud from Matrix#135

Merged
mike-dubman merged 1 commit intoMellanox:masterfrom
mike-dubman:feature/ensurek8scloud-init-only
Feb 23, 2026
Merged

Move K8s cloud setup to init script only; remove ensureK8sCloud from Matrix#135
mike-dubman merged 1 commit intoMellanox:masterfrom
mike-dubman:feature/ensurek8scloud-init-only

Conversation

@mike-dubman
Copy link
Collaborator

@mike-dubman mike-dubman commented Feb 23, 2026

Summary

  • Remove ensureK8sCloud() and its call sites from Matrix.groovy so the pipeline never modifies Jenkins cloud config (undesirable on shared Jenkins).
  • Rely on the existing GHA Jenkins init script (.github/scripts/jenkins-configure-k8s-and-labels.groovy) to configure Kubernetes clouds at startup (GHA/local only).
  • Init script: support JENKINS_K8S_NAMESPACE, set serverUrl only when JENKINS_K8S_API_URL is provided.
  • Pass JENKINS_K8S_NAMESPACE from local_gha_ci.sh into the Jenkins container.
  • Document in USERGUIDE that Kubernetes clouds must be pre-configured.

Local test (scripts/local_gha_ci.sh) passes.

…Matrix

- Remove ensureK8sCloud() and its call sites from Matrix.groovy so the
  pipeline never modifies Jenkins cloud config (bad on shared Jenkins).
- Enhance jenkins-configure-k8s-and-labels.groovy: support
  JENKINS_K8S_NAMESPACE, set serverUrl only when JENKINS_K8S_API_URL
  is provided (GHA passes it; avoid default on shared Jenkins).
- Pass JENKINS_K8S_NAMESPACE from local_gha_ci.sh into Jenkins container.
- Document in USERGUIDE that Kubernetes clouds must be pre-configured.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mike-dubman mike-dubman force-pushed the feature/ensurek8scloud-init-only branch from 76f0d05 to bcc7c40 Compare February 23, 2026 13:36
@mike-dubman mike-dubman merged commit 8e4cbf4 into Mellanox:master Feb 23, 2026
2 checks passed
@mike-dubman mike-dubman deleted the feature/ensurek8scloud-init-only branch February 23, 2026 13:38
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.

1 participant