Provisioning: Add k8s annotations for legacy folder provisioning (#110827)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user