Class ManagedClusterPodIdentityProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterPodIdentityProfile>
public final class ManagedClusterPodIdentityProfile
extends Object
implements com.azure.json.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
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterPodIdentityProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet 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.enabled()Get the enabled property: Whether the pod identity addon is enabled.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterPodIdentityProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userAssignedIdentities property: The pod identities to use in the cluster.Get the userAssignedIdentityExceptions property: The pod identity exceptions to allow.voidvalidate()Validates the instance.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.withEnabled(Boolean enabled) Set the enabled property: Whether the pod identity addon is enabled.withUserAssignedIdentities(List<ManagedClusterPodIdentity> userAssignedIdentities) Set the userAssignedIdentities property: The pod identities to use in the cluster.withUserAssignedIdentityExceptions(List<ManagedClusterPodIdentityException> userAssignedIdentityExceptions) Set the userAssignedIdentityExceptions property: The pod identity exceptions to allow.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterPodIdentityProfile
public ManagedClusterPodIdentityProfile()Creates an instance of ManagedClusterPodIdentityProfile class.
-
-
Method Details
-
enabled
Get the enabled property: Whether the pod identity addon is enabled.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Whether the pod identity addon is enabled.- Parameters:
enabled- the enabled value to set.- Returns:
- the ManagedClusterPodIdentityProfile object itself.
-
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.
-
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.
-
userAssignedIdentities
Get the userAssignedIdentities property: The pod identities to use in the cluster.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public ManagedClusterPodIdentityProfile withUserAssignedIdentities(List<ManagedClusterPodIdentity> 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.
-
userAssignedIdentityExceptions
Get the userAssignedIdentityExceptions property: The pod identity exceptions to allow.- Returns:
- the userAssignedIdentityExceptions value.
-
withUserAssignedIdentityExceptions
public ManagedClusterPodIdentityProfile withUserAssignedIdentityExceptions(List<ManagedClusterPodIdentityException> userAssignedIdentityExceptions) Set the userAssignedIdentityExceptions property: The pod identity exceptions to allow.- Parameters:
userAssignedIdentityExceptions- the userAssignedIdentityExceptions value to set.- Returns:
- the ManagedClusterPodIdentityProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterPodIdentityProfile>- Throws:
IOException
-
fromJson
public static ManagedClusterPodIdentityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-