(ctx context.Context, deploymentID string)
| 664 | } |
| 665 | |
| 666 | func (s *Service) FindProvisionedRuntimeResource(ctx context.Context, deploymentID string) (*database.ProvisionerResource, bool, error) { |
| 667 | pr, err := s.DB.FindProvisionerResourceByTypeAndName(ctx, deploymentID, string(provisioner.ResourceTypeRuntime), "") |
| 668 | if err != nil { |
| 669 | if errors.Is(err, database.ErrNotFound) { |
| 670 | return nil, false, nil |
| 671 | } |
| 672 | return nil, false, err |
| 673 | } |
| 674 | return pr, true, nil |
| 675 | } |
| 676 | |
| 677 | type DeploymentAnnotations struct { |
| 678 | orgID string |
no test coverage detected