mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
feat!: drop support for legacy parameters (#7663)
This commit is contained in:
@ -72,21 +72,6 @@ var (
|
||||
Complete: &proto.Provision_Complete{},
|
||||
},
|
||||
}}
|
||||
|
||||
ParameterSuccess = []*proto.ParameterSchema{
|
||||
{
|
||||
AllowOverrideSource: true,
|
||||
Name: ParameterExecKey,
|
||||
Description: "description 1",
|
||||
DefaultSource: &proto.ParameterSource{
|
||||
Scheme: proto.ParameterSource_DATA,
|
||||
Value: formatExecValue(successKey, ""),
|
||||
},
|
||||
DefaultDestination: &proto.ParameterDestination{
|
||||
Scheme: proto.ParameterDestination_PROVISIONER_VARIABLE,
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
// Serve starts the echo provisioner.
|
||||
@ -151,22 +136,6 @@ func (e *echo) Provision(stream proto.DRPCProvisioner_ProvisionStream) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
for _, param := range msg.GetPlan().GetParameterValues() {
|
||||
if param.Name == ParameterExecKey {
|
||||
toks := strings.Split(param.Value, "=")
|
||||
if len(toks) < 2 {
|
||||
break
|
||||
}
|
||||
|
||||
switch toks[0] {
|
||||
case errorKey:
|
||||
return xerrors.Errorf("returning error: %v", toks[1])
|
||||
default:
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for index := 0; ; index++ {
|
||||
var extension string
|
||||
if msg.GetPlan() != nil {
|
||||
|
Reference in New Issue
Block a user