in src/Azure.Deployments.Extensibility.Extensions.Kubernetes/Api/K8sNamespacedApi.cs [40:57]
public override async Task<K8sObject?> GetObjectAsync(K8sObjectIdentifiers identifiers, CancellationToken cancellationToken)
{
var @namespace = identifiers.Namespace ?? this.Client.DefaultNamespace;
this.EnsureNamespaceSpecified(@namespace);
var properties = await this.Client.GetNamespacedObjectAsync<JsonObject>(
this.Group,
this.Version,
@namespace,
this.Plural,
identifiers.Name,
cancellationToken: cancellationToken);
return properties is not null
? new K8sObject(new GroupVersionKind(this.Group, this.Version, this.Kind), properties)
: null;
}