Skip to content

fix: add BigtableAuthorizedView to KCC_USE_DIRECT_RECONCILERS - #10

Open
takaaki7 wants to merge 10 commits into
developfrom
fix-direct-reconciler-env
Open

fix: add BigtableAuthorizedView to KCC_USE_DIRECT_RECONCILERS#10
takaaki7 wants to merge 10 commits into
developfrom
fix-direct-reconciler-env

Conversation

@takaaki7

Copy link
Copy Markdown

Summary

  • KCC_USE_DIRECT_RECONCILERSBigtableAuthorizedView を追加
  • BigtableAuthorizedView は service mapping (TFパス) と direct controller の両方が登録されているが、この環境変数に含まれていないと TF パスが使われる
  • google_bigtable_authorized_view という Terraform リソースは存在しないため、TF コントローラーは新規 CR を完全に無視する(ログすら出ない)

Root Cause

新しい BigtableAuthorizedView CR を作成しても、コントローラーが一切反応しない問題の根本原因。

Test plan

  • イメージを再ビルドしてデプロイ
  • 新規 BigtableAuthorizedView CR を作成して reconcile されることを確認

🤖 Generated with Claude Code

SotaSato-stst and others added 7 commits February 20, 2026 16:29
BigtableAuthorizedView has both a service mapping (TF path) and a direct
controller registered. Without being listed in KCC_USE_DIRECT_RECONCILERS,
KCC uses the TF path which silently fails because no Terraform resource
exists for google_bigtable_authorized_view. This causes new CRs to be
completely ignored with no logs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The controller registration requires an entry in ControllerConfigStatic
(static_config.go) in addition to registry.RegisterModel. Without this,
the controller logs "unrecognized CRD: BigtableAuthorizedView" and skips
registration entirely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@takaaki7
takaaki7 changed the base branch from patch-authorized-view to develop March 18, 2026 07:02
takaaki7 and others added 3 commits March 18, 2026 16:03
…ncile

When RowPrefixes is not set in the CR spec (nil), the Update method
compared nil against the GCP API response ([][]byte{[]byte("")}),
always detecting a diff and triggering UpdateAuthorizedView.

Apply the same default value as Create method when RowPrefixes is nil,
so the comparison matches the actual GCP state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix: prevent unnecessary UpdateAuthorizedView API calls on every reconcile
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