Skip to content

Skip unavailable deprecated CRD watches - #469

Open
Guflly wants to merge 4 commits into
temporalio:mainfrom
Guflly:fix/optional-deprecated-crd-watches
Open

Skip unavailable deprecated CRD watches#469
Guflly wants to merge 4 commits into
temporalio:mainfrom
Guflly:fix/optional-deprecated-crd-watches

Conversation

@Guflly

@Guflly Guflly commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

What changed

Checks at startup whether the deprecated TemporalWorkerDeployment and TemporalConnection resources can be listed and watched in each configured namespace.

If a resource is missing or access is forbidden, its deprecated reconciler and watch paths are skipped. The two resources are checked independently.

Fixes #413

Tested

  • go test ./internal/controller -run TestDetectDeprecatedCRDWatches -count=1
  • go test ./internal/controller -count=1
  • go vet ./...
  • go build ./cmd/...
  • golangci-lint run --build-tags test_dep --new-from-rev=HEAD~ --config=.github/.golangci.yml

@Guflly
Guflly requested review from a team and jlegrone as code owners July 27, 2026 22:04
@CLAassistant

CLAassistant commented Jul 28, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread cmd/main.go Outdated
@Guflly
Guflly force-pushed the fix/optional-deprecated-crd-watches branch from 8d4c92b to 7aa75df Compare July 31, 2026 00:47
@Guflly
Guflly requested a review from eniko-dif as a code owner July 31, 2026 00:47
@Guflly
Guflly force-pushed the fix/optional-deprecated-crd-watches branch from 7aa75df to cfb79ee Compare July 31, 2026 10:57

@jaypipes jaypipes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor suggestion inline but nothing major. @Guflly thanks for this PR! Please don't forget to update the PR summary with an accurate description of the code after you changed it.

Comment thread internal/controller/deprecated_crd_watch.go
@Guflly Guflly changed the title Allow disabling deprecated CRD watches Skip unavailable deprecated CRD watches Jul 31, 2026

@jaypipes jaypipes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 thanks @Guflly :)

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.

[Feature Request] opt out of watching deprecated crds

4 participants