Repository navigation
Fixes #36355: [2.0] apply metadata to Kubernetes pipeline resources - #37047
Conversation
Code Review ✅ Approved🟡 Medium risk · Changing operator pod selection and TTL cleanup to delete status-recorded pods could remove unintended workloads if recorded names are stale or wrong. Adds configured podLabels and podAnnotations to Kubernetes ingestion, application, and automation resources so GitOps controllers can track pipeline-created pods, with built-in client labels retaining precedence. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Describe your changes:
Fixes #36355
Backports #36354 to
2.0. Kubernetes ingestion, application, and automation resources receive configuredpodLabelsandpodAnnotations, allowing GitOps controllers to track resources created by the pipeline client. Built-in client labels retain precedence.Includes prerequisite #35513 because
2.0still selects pods using the server-overriddenmanaged-bylabel and permits supplied labels to replace operator identity labels. The prerequisite protects those identity labels and restores pod lookup and TTL cleanup. Both upstream changes were applied without conflicts.The only release-specific adaptation changes two existing bot-token unit-test setups to
skipInit(true). Their JWT assertions remain intact; the tests no longer depend on the developer's Kubernetes namespace. The original failures were reproduced on cleanorigin/2.0.Type of change:
High-level design:
5a317d08e82720371fd613bdb0f555f6f97f70d1andeb8484e1246087a84bad7143394cb4f5bdb7b3a1, preceded by the operator prerequisite263d76371fd7a28f9c7f11913e7274179978f3c5.Tests:
Use cases covered
Unit tests
EnvVarEndToEndTest(4),K8sPipelineClientBotTokenBugTest(2),K8sPipelineClientConfigTest(25),K8sPipelineClientTest(73),PipelineTaskKeyTest(48).LabelBuilderTest,PodManagerLabelSelectionTest, andOMJobReconcilerTtlCleanupTest.2.0label builder; all pass after the prerequisite fix.mvn -B -pl openmetadata-service,openmetadata-k8s-operator spotless:applypassed; commit hooks passed.Backend integration tests
LiveSearchSettingsChangeITpassed on PostgreSQL/OpenSearch: 1 test, zero failures/errors/skips.IN PROGRESS — release integration suites are running locally on
5226219843e7e9ecf94f069a57829d9684d7fcd8. The MySQL/Elasticsearch parallel run has reported failures inPutKeepsTagsInSearchIT.apiEndpointBulkPutWithoutFieldTags_keepsThemInSearchDoc(60-second search-document timeout),DataContractResourceIT.testODCSExportIncludesTheContractsOwnTestCasesOnce(expected 7, got 6), andDataContractResourceIT.testODCSImportTurnsQualityRulesIntoTestCases(missingodcs_email_format), andGlossaryTermMoveApprovalIT.test_approveApprovalTaskAfterMovingParentTerm_drivesMovedTermToApproved(five-minute workflow timeout); baseline classification is pending. This suite is not green. Unit and search results above are from this backport. The original PR's main-branch integration runs are not counted as release evidence.Ingestion integration tests
Not applicable — no Python ingestion changes.
Playwright (UI) tests
Not applicable — no UI changes.
Manual testing performed
origin/2.0checkout, enabledskipInitin those unit tests, and verified both JWT assertions pass in the final combined suite.5226219843e7e9ecf94f069a57829d9684d7fcd8found no actionable findings.Live ArgoCD tracking and operator deployment were not exercised. Existing operator lifecycle ITs requiring a deployed operator retain their upstream disabled status.
UI screen recording:
Not applicable — backend-only backport.
Checklist:
2.0backport.REVIEW.md: fresh review of5226219843e7e9ecf94f069a57829d9684d7fcd8; no actionable findings.