in src/Azure.Deployments.Extensibility.Extensions.Kubernetes/Api/K8sClusterScopedApi.cs [36:50]
public override async Task<K8sObject?> GetObjectAsync(K8sObjectIdentifiers identifiers, CancellationToken cancellationToken)
{
this.EnsureNamespaceNotSpecified(identifiers.Namespace);
var body = await this.Client.GetClusterScopedObjectAsync<JsonObject>(
this.Group,
this.Version,
this.Plural,
identifiers.Name,
cancellationToken: cancellationToken);
return body is not null
? new K8sObject(new GroupVersionKind(this.Group, this.Version, this.Kind), body)
: null;
}