Skip to content

Remove org field from tables, CRD, and API layer#7157

Merged
pingsutw merged 5 commits intov2from
rm-org
Apr 5, 2026
Merged

Remove org field from tables, CRD, and API layer#7157
pingsutw merged 5 commits intov2from
rm-org

Conversation

@pingsutw
Copy link
Copy Markdown
Member

@pingsutw pingsutw commented Apr 4, 2026

Summary

  • Remove org field from all database models (Action, ActionEvent, TaskKey, TaskName), CRD types (TaskActionSpec), repository queries, services, executor, actions client, and plugins
  • The org field is not needed in OSS Flyte — proto definitions are left unchanged but the field is no longer populated or read
  • 54 files changed, net -350 lines

Changes by layer

  • Database models: Removed Org from Action, ActionEvent, TaskKey, TaskName, TaskGroupNotificationPayload structs
  • Repository: Removed org from all SQL WHERE clauses, filters, notification payloads, ListRootActions signature
  • CRD & Executor: Removed Org from TaskActionSpec, CRD YAML schema, controller validation, plugin metadata env vars
  • Services: Removed org from storage path construction, run/action converters, abort reconciler keys, task service filters
  • Actions client: Removed flyte.org/org K8s label, org from identifiers
  • Plugins: Removed org from tasklog templates, catalog hashing/metadata, secret name encoding/validation, dataproxy paths, cache service scoped keys

Test plan

Screenshot 2026-04-03 at 10 58 14 PM
  • go build ./... passes
  • go vet passes on all affected packages
  • All affected package tests pass (runs/, executor/, actions/, flyteplugins/, dataproxy/, cache_service/)
  • Database migration needed separately (not included in this PR)
  • main
    • Flyte 2 #6583
      • Remove org field from tables, CRD, and API layer 👈

@github-actions github-actions bot mentioned this pull request Apr 3, 2026
3 tasks
pingsutw added 4 commits April 3, 2026 23:00
The org field is not needed in OSS Flyte. This removes it from all Go
code across database models, repository queries, CRD types, services,
executor, actions client, and plugins. Proto definitions are left
unchanged; the org field is simply no longer populated or read.

Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Copy link
Copy Markdown
Contributor

@katrogan katrogan left a comment

Choose a reason for hiding this comment

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

nice, thank you!

@pingsutw pingsutw merged commit 9b5cffb into v2 Apr 5, 2026
17 checks passed
@pingsutw pingsutw deleted the rm-org branch April 5, 2026 16:16
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