Skip to content

Commit 644cf76

Browse files
tg123k8s-ci-robot
authored andcommitted
Gen v1.14.0 (#275)
* gen v1.14.0 * update watcher generator for 1.14
1 parent be4fa24 commit 644cf76

File tree

105 files changed

+248681
-205781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+248681
-205781
lines changed

csharp.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export KUBERNETES_BRANCH=v1.13.4
1+
export KUBERNETES_BRANCH=v1.14.0
22
export CLIENT_VERSION=0.0.1
33
export PACKAGE_NAME=k8s

gen/KubernetesWatchGenerator/Kubernetes.Watch.cs.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace k8s
2828
CancellationToken cancellationToken = default(CancellationToken))
2929
{
3030
string path = $"{{GetPathExpression .}}";
31-
return WatchObjectAsync<{{GetClassName operation}}>(path: path, @continue: @continue, fieldSelector: fieldSelector, includeUninitialized: includeUninitialized, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
31+
return WatchObjectAsync<{{GetClassName operation}}>(path: path, @continue: @continue, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
3232
}
3333

3434
{{/.}}

gen/KubernetesWatchGenerator/Program.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,18 @@ static async Task Main(string[] args)
5656
// Generate the Watcher operations
5757
// We skip operations where the name of the class in the C# client could not be determined correctly.
5858
// That's usually because there are different version of the same object (e.g. for deployments).
59-
Collection<string> blacklistedOperations = new Collection<string>()
59+
var blacklistedOperations = new HashSet<string>()
6060
{
6161
"watchAppsV1beta1NamespacedDeployment",
6262
"watchAppsV1beta2NamespacedDeployment",
6363
"watchExtensionsV1beta1NamespacedDeployment",
6464
"watchExtensionsV1beta1NamespacedNetworkPolicy",
6565
"watchPolicyV1beta1PodSecurityPolicy",
66-
"watchExtensionsV1beta1PodSecurityPolicy"
66+
"watchExtensionsV1beta1PodSecurityPolicy",
67+
"watchExtensionsV1beta1NamespacedIngress",
68+
"watchExtensionsV1beta1NamespacedIngressList",
69+
"watchNetworkingV1beta1NamespacedIngress",
70+
"watchNetworkingV1beta1NamespacedIngressList",
6771
};
6872

6973
var watchOperations = swagger.Operations.Where(
@@ -76,7 +80,7 @@ static async Task Main(string[] args)
7680
Render.FileToFile("Kubernetes.Watch.cs.template", watchOperations, $"{outputDirectory}Kubernetes.Watch.cs");
7781

7882
// Generate the interface declarations
79-
var skippedTypes = new Collection<string>()
83+
var skippedTypes = new HashSet<string>()
8084
{
8185
"V1beta1Deployment",
8286
"V1beta1DeploymentList",
@@ -86,6 +90,8 @@ static async Task Main(string[] args)
8690
"V1beta1PodSecurityPolicy",
8791
"V1beta1PodSecurityPolicyList",
8892
"V1WatchEvent",
93+
"V1beta1Ingress",
94+
"V1beta1IngressList"
8995
};
9096

9197
var definitions = swagger.Definitions.Values

src/KubernetesClient/generated/IKubernetes.Watch.cs

Lines changed: 617 additions & 613 deletions
Large diffs are not rendered by default.

src/KubernetesClient/generated/IKubernetes.cs

Lines changed: 13069 additions & 8871 deletions
Large diffs are not rendered by default.

src/KubernetesClient/generated/Kubernetes.Watch.cs

Lines changed: 181 additions & 164 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)