public override async Task PatchObjectAsync()

in src/Azure.Deployments.Extensibility.Extensions.Kubernetes/Api/K8sClusterScopedApi.cs [20:34]


        public override async Task<K8sObject> PatchObjectAsync(K8sObject k8sObject, bool dryRun, CancellationToken cancellationToken)
        {
            this.EnsureNamespaceNotSpecified(k8sObject.Namespace);

            var patchedBody = await this.Client.PatchClusterScopedObjectAsync<JsonObject>(
                k8sObject.Body,
                this.Group,
                this.Version,
                this.Plural,
                k8sObject.Name,
                dryRun: dryRun,
                cancellationToken: cancellationToken);

            return new K8sObject(k8sObject.GroupVersionKind, patchedBody);
        }