Skip to content

Commit 85d7011

Browse files
committed
fix
1 parent c6bda21 commit 85d7011

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/KubernetesClient.Aot/KubernetesClient.Aot.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
<Compile Include="..\KubernetesClient\IKubernetes.Exec.cs" />
8888
<Compile Include="..\KubernetesClient\Kubernetes.Exec.cs" />
8989

90-
<Compile Include="..\KubernetesClient\Watcher.cs" />
91-
<Compile Include="..\KubernetesClient\WatcherExt.cs" />
90+
<!-- <Compile Include="..\KubernetesClient\Watcher.cs" /> -->
91+
<!-- <Compile Include="..\KubernetesClient\WatcherExt.cs" /> -->
9292
<Compile Include="..\KubernetesClient\LineSeparatedHttpContent.cs" />
9393

9494
<Compile Include="..\KubernetesClient\Exceptions\KubeConfigException.cs" />

src/LibKubernetesGenerator/templates/Client.cs.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public partial class {{name}}Client : ResourceClient
9898
}
9999
{{end}}
100100

101+
#if !K8S_AOT
101102
{{if IfParamContains api.operation "watch"}}
102103
/// <summary>
103104
/// Watch {{ToXmlDoc api.operation.description}}
@@ -159,6 +160,6 @@ public partial class {{name}}Client : ResourceClient
159160
onError, cancellationToken);
160161
}
161162
{{end}}
162-
163+
#endif
163164
{{end}}
164165
}

src/LibKubernetesGenerator/templates/OperationsExtensions.cs.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public static partial class {{name}}OperationsExtensions
155155
}
156156
{{end}}
157157

158+
#if !K8S_AOT
158159
{{if IfParamContains api.operation "watch"}}
159160
{{~ $filteredParams = FilterParameters api.operation "watch" ~}}
160161
/// <summary>
@@ -225,6 +226,6 @@ public static IAsyncEnumerable<(WatchEventType, {{GetReturnType api.operation "T
225226
onError, cancellationToken);
226227
}
227228
{{end}}
228-
229+
#endif
229230
{{end}}
230231
}

0 commit comments

Comments
 (0)