You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/Synapse.Core/Resources/RuntimeDefinition.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,6 @@ public record RuntimeDefinition
42
42
/// Gets the runtime mode
43
43
/// </summary>
44
44
[IgnoreDataMember,JsonIgnore,YamlIgnore]
45
-
publicvirtualstringMode=>this.Native!=null?OperatorRuntimeMode.Native:this.Docker!=null?OperatorRuntimeMode.Docker:this.Kubernetes!=null?OperatorRuntimeMode.Kubernetes:thrownewException("The runtime mode must be set");
45
+
publicvirtualstringMode=>this.Kubernetes!=null?OperatorRuntimeMode.Kubernetes:this.Native!=null?OperatorRuntimeMode.Native:this.Docker!=null?OperatorRuntimeMode.Docker:thrownewException("The runtime mode must be set");
if(this.Runner.Runtime.Kubernetes==null)thrownewNullReferenceException($"Failed to initialize the Kubernetes Runtime because the operator is not configured to use Kubernetes as a runtime");
0 commit comments