MCPcopy Index your code
hub / github.com/coder/coder / runTemplateImportProvision

Method runTemplateImportProvision

provisionerd/runner/runner.go:694–696  ·  view source on GitHub ↗

Performs a dry-run provision when importing a template. This is used to detect resources that would be provisioned for a workspace in various states. It doesn't define values for rich parameters as they're unknown during template import.

(ctx context.Context, variableValues []*sdkproto.VariableValue, metadata *sdkproto.Metadata)

Source from the content-addressed store, hash-verified

692// This is used to detect resources that would be provisioned for a workspace in various states.
693// It doesn't define values for rich parameters as they're unknown during template import.
694func (r *Runner) runTemplateImportProvision(ctx context.Context, variableValues []*sdkproto.VariableValue, metadata *sdkproto.Metadata) (*templateImportProvision, error) {
695 return r.runTemplateImportProvisionWithRichParameters(ctx, variableValues, nil, metadata)
696}
697
698// Performs a dry-run provision with provided rich parameters.
699// This is used to detect resources that would be provisioned for a workspace in various states.

Callers 1

runTemplateImportMethod · 0.95

Tested by

no test coverage detected