ManagedClusterPodIdentityProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile

Implements

public final class ManagedClusterPodIdentityProfile
implements JsonSerializable<ManagedClusterPodIdentityProfile>

The pod identity profile of the Managed Cluster. See [use AAD pod identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) for more details on pod identity integration.

Constructor Summary

Constructor Description
ManagedClusterPodIdentityProfile()

Creates an instance of ManagedClusterPodIdentityProfile class.

Method Summary

Modifier and Type Method and Description
Boolean allowNetworkPluginKubenet()

Get the allowNetworkPluginKubenet property: Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks of IP spoofing.

Boolean enabled()

Get the enabled property: Whether the pod identity addon is enabled.

static ManagedClusterPodIdentityProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterPodIdentityProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
List<ManagedClusterPodIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: The pod identities to use in the cluster.

List<ManagedClusterPodIdentityException> userAssignedIdentityExceptions()

Get the userAssignedIdentityExceptions property: The pod identity exceptions to allow.

void validate()

Validates the instance.

ManagedClusterPodIdentityProfile withAllowNetworkPluginKubenet(Boolean allowNetworkPluginKubenet)

Set the allowNetworkPluginKubenet property: Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks of IP spoofing.

ManagedClusterPodIdentityProfile withEnabled(Boolean enabled)

Set the enabled property: Whether the pod identity addon is enabled.

ManagedClusterPodIdentityProfile withUserAssignedIdentities(List<ManagedClusterPodIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: The pod identities to use in the cluster.

ManagedClusterPodIdentityProfile withUserAssignedIdentityExceptions(List<ManagedClusterPodIdentityException> userAssignedIdentityExceptions)

Set the userAssignedIdentityExceptions property: The pod identity exceptions to allow.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterPodIdentityProfile

public ManagedClusterPodIdentityProfile()

Creates an instance of ManagedClusterPodIdentityProfile class.

Method Details

allowNetworkPluginKubenet

public Boolean allowNetworkPluginKubenet()

Get the allowNetworkPluginKubenet property: Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks of IP spoofing. See [using Kubenet network plugin with AAD Pod Identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity\#using-kubenet-network-plugin-with-azure-active-directory-pod-managed-identities) for more information.

Returns:

the allowNetworkPluginKubenet value.

enabled

public Boolean enabled()

Get the enabled property: Whether the pod identity addon is enabled.

Returns:

the enabled value.

fromJson

public static ManagedClusterPodIdentityProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterPodIdentityProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedClusterPodIdentityProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ManagedClusterPodIdentityProfile.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userAssignedIdentities

public List userAssignedIdentities()

Get the userAssignedIdentities property: The pod identities to use in the cluster.

Returns:

the userAssignedIdentities value.

userAssignedIdentityExceptions

public List userAssignedIdentityExceptions()

Get the userAssignedIdentityExceptions property: The pod identity exceptions to allow.

Returns:

the userAssignedIdentityExceptions value.

validate

public void validate()

Validates the instance.

withAllowNetworkPluginKubenet

public ManagedClusterPodIdentityProfile withAllowNetworkPluginKubenet(Boolean allowNetworkPluginKubenet)

Set the allowNetworkPluginKubenet property: Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks of IP spoofing. See [using Kubenet network plugin with AAD Pod Identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity\#using-kubenet-network-plugin-with-azure-active-directory-pod-managed-identities) for more information.

Parameters:

allowNetworkPluginKubenet - the allowNetworkPluginKubenet value to set.

Returns:

the ManagedClusterPodIdentityProfile object itself.

withEnabled

public ManagedClusterPodIdentityProfile withEnabled(Boolean enabled)

Set the enabled property: Whether the pod identity addon is enabled.

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterPodIdentityProfile object itself.

withUserAssignedIdentities

public ManagedClusterPodIdentityProfile withUserAssignedIdentities(List userAssignedIdentities)

Set the userAssignedIdentities property: The pod identities to use in the cluster.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the ManagedClusterPodIdentityProfile object itself.

withUserAssignedIdentityExceptions

public ManagedClusterPodIdentityProfile withUserAssignedIdentityExceptions(List userAssignedIdentityExceptions)

Set the userAssignedIdentityExceptions property: The pod identity exceptions to allow.

Parameters:

userAssignedIdentityExceptions - the userAssignedIdentityExceptions value to set.

Returns:

the ManagedClusterPodIdentityProfile object itself.

Applies to