Provisioning: Add k8s annotations for legacy folder provisioning (#110827)

This commit is contained in:
Ryan McKinley
2025-09-09 17:01:08 +00:00
committed by GitHub
parent 09c78e0e9c
commit 3f4c523ef5
10 changed files with 29 additions and 8 deletions
@@ -511,6 +511,8 @@ func (s *Service) createOnApiServer(ctx context.Context, cmd *folder.CreateFolde
Description: cmd.Description,
ParentUID: cmd.ParentUID,
SignedInUser: cmd.SignedInUser,
// pass along provisioning details
ManagerKindClassicFP: cmd.ManagerKindClassicFP, // nolint:staticcheck
}
f, err := s.unifiedStore.Create(ctx, *cmd)
+7
View File
@@ -132,6 +132,13 @@ type CreateFolderCommand struct {
ParentUID string `json:"parentUid"`
SignedInUser identity.Requester `json:"-"`
// When running classic file provisioning with folders saved in kubernetes,
// folders will be marked with a manager of kind ManagerKindClassicFP
// NOTE: this is ignored when running legacy SQL storage
//
// Deprecated: this should only be used by the legacy file provisioning system
ManagerKindClassicFP string `json:"-"`
}
// UpdateFolderCommand captures the information required by the folder service