Documentation ¶
Overview ¶
+groupName=aadpodidentity.k8s.io
Index ¶
- Constants
- func ConvertV1AssignedIdentityToInternalAssignedIdentity(assignedIdentity AzureAssignedIdentity) (resAssignedIdentity aadpodid.AzureAssignedIdentity)
- func ConvertV1BindingToInternalBinding(identityBinding AzureIdentityBinding) (resIdentityBinding aadpodid.AzureIdentityBinding)
- func ConvertV1IdentityToInternalIdentity(identity AzureIdentity) (resIdentity aadpodid.AzureIdentity)
- func ConvertV1PodIdentityExceptionToInternalPodIdentityException(idException AzurePodIdentityException) (residException aadpodid.AzurePodIdentityException)
- type AssignedIDState
- type AzureAssignedIdentity
- type AzureAssignedIdentityList
- type AzureAssignedIdentitySpec
- type AzureAssignedIdentityStatus
- type AzureIdentity
- type AzureIdentityBinding
- type AzureIdentityBindingList
- type AzureIdentityBindingSpec
- type AzureIdentityBindingStatus
- type AzureIdentityList
- type AzureIdentitySpec
- type AzureIdentityStatus
- type AzurePodIdentityException
- type AzurePodIdentityExceptionList
- type AzurePodIdentityExceptionSpec
- type AzurePodIdentityExceptionStatus
- type IdentityType
- type MatchType
Constants ¶
const ( CRDGroup = "aadpodidentity.k8s.io" CRDVersion = "v1" CRDLabelKey = "aadpodidbinding" BehaviorKey = "aadpodidentity.k8s.io/Behavior" // BehaviorNamespaced ... BehaviorNamespaced = "namespaced" // AssignedIDCreated status indicates azure assigned identity is created AssignedIDCreated = "Created" // AssignedIDAssigned status indicates identity has been assigned to the node AssignedIDAssigned = "Assigned" // AssignedIDUnAssigned status indicates identity has been unassigned from the node AssignedIDUnAssigned = "Unassigned" )
const ( AzureIDResource = "azureidentities" AzureIDBindingResource = "azureidentitybindings" AzureAssignedIDResource = "azureassignedidentities" AzureIdentityExceptionResource = "azurepodidentityexceptions" )
Variables ¶
This section is empty.
Functions ¶
func ConvertV1AssignedIdentityToInternalAssignedIdentity ¶ added in v1.6.0
func ConvertV1AssignedIdentityToInternalAssignedIdentity(assignedIdentity AzureAssignedIdentity) (resAssignedIdentity aadpodid.AzureAssignedIdentity)
func ConvertV1BindingToInternalBinding ¶ added in v1.6.0
func ConvertV1BindingToInternalBinding(identityBinding AzureIdentityBinding) (resIdentityBinding aadpodid.AzureIdentityBinding)
func ConvertV1IdentityToInternalIdentity ¶ added in v1.6.0
func ConvertV1IdentityToInternalIdentity(identity AzureIdentity) (resIdentity aadpodid.AzureIdentity)
func ConvertV1PodIdentityExceptionToInternalPodIdentityException ¶ added in v1.6.0
func ConvertV1PodIdentityExceptionToInternalPodIdentityException(idException AzurePodIdentityException) (residException aadpodid.AzurePodIdentityException)
Types ¶
type AssignedIDState ¶
type AssignedIDState int
AssignedIDState - State indicator for the AssignedIdentity
const ( //Created - Default state of the assigned identity Created AssignedIDState = 0 //Assigned - When the underlying platform assignment of EMSI is complete //the state moves to assigned Assigned AssignedIDState = 1 )
type AzureAssignedIdentity ¶
type AzureAssignedIdentity struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AzureAssignedIdentitySpec `json:"spec"` Status AzureAssignedIdentityStatus `json:"status"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func ConvertInternalAssignedIdentityToV1AssignedIdentity ¶ added in v1.6.0
func ConvertInternalAssignedIdentityToV1AssignedIdentity(assignedIdentity aadpodid.AzureAssignedIdentity) (resAssignedIdentity AzureAssignedIdentity)
func (*AzureAssignedIdentity) DeepCopy ¶
func (in *AzureAssignedIdentity) DeepCopy() *AzureAssignedIdentity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureAssignedIdentity.
func (*AzureAssignedIdentity) DeepCopyInto ¶
func (in *AzureAssignedIdentity) DeepCopyInto(out *AzureAssignedIdentity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureAssignedIdentity) DeepCopyObject ¶
func (in *AzureAssignedIdentity) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureAssignedIdentityList ¶
type AzureAssignedIdentityList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AzureAssignedIdentity `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AzureAssignedIdentityList) DeepCopy ¶
func (in *AzureAssignedIdentityList) DeepCopy() *AzureAssignedIdentityList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureAssignedIdentityList.
func (*AzureAssignedIdentityList) DeepCopyInto ¶
func (in *AzureAssignedIdentityList) DeepCopyInto(out *AzureAssignedIdentityList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureAssignedIdentityList) DeepCopyObject ¶
func (in *AzureAssignedIdentityList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureAssignedIdentitySpec ¶
type AzureAssignedIdentitySpec struct { metav1.ObjectMeta `json:"metadata,omitempty"` AzureIdentityRef *AzureIdentity `json:"azureIdentityRef"` AzureBindingRef *AzureIdentityBinding `json:"azureBindingRef"` Pod string `json:"pod"` PodNamespace string `json:"podNamespace"` NodeName string `json:"nodename"` Replicas *int32 `json:"replicas"` }
AzureAssignedIdentitySpec has the contents of Azure identity<->POD
func (*AzureAssignedIdentitySpec) DeepCopy ¶
func (in *AzureAssignedIdentitySpec) DeepCopy() *AzureAssignedIdentitySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureAssignedIdentitySpec.
func (*AzureAssignedIdentitySpec) DeepCopyInto ¶
func (in *AzureAssignedIdentitySpec) DeepCopyInto(out *AzureAssignedIdentitySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureAssignedIdentityStatus ¶
type AzureAssignedIdentityStatus struct { metav1.ObjectMeta `json:"metadata,omitempty"` Status string `json:"status"` AvailableReplicas int32 `json:"availableReplicas"` }
AzureAssignedIdentityStatus has the replica status of the resource.
func (*AzureAssignedIdentityStatus) DeepCopy ¶
func (in *AzureAssignedIdentityStatus) DeepCopy() *AzureAssignedIdentityStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureAssignedIdentityStatus.
func (*AzureAssignedIdentityStatus) DeepCopyInto ¶
func (in *AzureAssignedIdentityStatus) DeepCopyInto(out *AzureAssignedIdentityStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureIdentity ¶
type AzureIdentity struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AzureIdentitySpec `json:"spec"` Status AzureIdentityStatus `json:"status"` }
AzureIdentity is the specification of the identity data structure. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func ConvertInternalIdentityToV1Identity ¶ added in v1.6.0
func ConvertInternalIdentityToV1Identity(identity aadpodid.AzureIdentity) (resIdentity AzureIdentity)
func (*AzureIdentity) DeepCopy ¶
func (in *AzureIdentity) DeepCopy() *AzureIdentity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureIdentity.
func (*AzureIdentity) DeepCopyInto ¶
func (in *AzureIdentity) DeepCopyInto(out *AzureIdentity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureIdentity) DeepCopyObject ¶
func (in *AzureIdentity) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureIdentityBinding ¶
type AzureIdentityBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AzureIdentityBindingSpec `json:"spec"` Status AzureIdentityBindingStatus `json:"status"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func ConvertInternalBindingToV1Binding ¶ added in v1.6.0
func ConvertInternalBindingToV1Binding(identityBinding aadpodid.AzureIdentityBinding) (resIdentityBinding AzureIdentityBinding)
func (*AzureIdentityBinding) DeepCopy ¶
func (in *AzureIdentityBinding) DeepCopy() *AzureIdentityBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureIdentityBinding.
func (*AzureIdentityBinding) DeepCopyInto ¶
func (in *AzureIdentityBinding) DeepCopyInto(out *AzureIdentityBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureIdentityBinding) DeepCopyObject ¶
func (in *AzureIdentityBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureIdentityBindingList ¶
type AzureIdentityBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AzureIdentityBinding `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AzureIdentityBindingList) DeepCopy ¶
func (in *AzureIdentityBindingList) DeepCopy() *AzureIdentityBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureIdentityBindingList.
func (*AzureIdentityBindingList) DeepCopyInto ¶
func (in *AzureIdentityBindingList) DeepCopyInto(out *AzureIdentityBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureIdentityBindingList) DeepCopyObject ¶
func (in *AzureIdentityBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureIdentityBindingSpec ¶
type AzureIdentityBindingSpec struct { metav1.ObjectMeta `json:"metadata,omitempty"` AzureIdentity string `json:"azureIdentity"` Selector string `json:"selector"` // Weight is used to figure out which of the matching identities would be selected. Weight int `json:"weight"` }
AzureIdentityBindingSpec matches the pod with the Identity. Used to indicate the potential matches to look for between the pod/deployment and the identities present..
func (*AzureIdentityBindingSpec) DeepCopy ¶
func (in *AzureIdentityBindingSpec) DeepCopy() *AzureIdentityBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureIdentityBindingSpec.
func (*AzureIdentityBindingSpec) DeepCopyInto ¶
func (in *AzureIdentityBindingSpec) DeepCopyInto(out *AzureIdentityBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureIdentityBindingStatus ¶
type AzureIdentityBindingStatus struct { metav1.ObjectMeta `json:"metadata,omitempty"` AvailableReplicas int32 `json:"availableReplicas"` }
func (*AzureIdentityBindingStatus) DeepCopy ¶
func (in *AzureIdentityBindingStatus) DeepCopy() *AzureIdentityBindingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureIdentityBindingStatus.
func (*AzureIdentityBindingStatus) DeepCopyInto ¶
func (in *AzureIdentityBindingStatus) DeepCopyInto(out *AzureIdentityBindingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureIdentityList ¶
type AzureIdentityList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AzureIdentity `json:"items"` }
** Lists ** +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AzureIdentityList) DeepCopy ¶
func (in *AzureIdentityList) DeepCopy() *AzureIdentityList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureIdentityList.
func (*AzureIdentityList) DeepCopyInto ¶
func (in *AzureIdentityList) DeepCopyInto(out *AzureIdentityList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzureIdentityList) DeepCopyObject ¶
func (in *AzureIdentityList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzureIdentitySpec ¶
type AzureIdentitySpec struct { metav1.ObjectMeta `json:"metadata,omitempty"` // UserAssignedMSI or Service Principal Type IdentityType `json:"type"` // User assigned MSI resource id. ResourceID string `json:"resourceID"` //Both User Assigned MSI and SP can use this field. ClientID string `json:"clientID"` //Used for service principal ClientPassword api.SecretReference `json:"clientPassword"` // Service principal tenant id. TenantID string `json:"tenantID"` // For service principal. Option param for specifying the AD details. ADResourceID string `json:"adResourceID"` ADEndpoint string `json:"adEndpoint"` Replicas *int32 `json:"replicas"` }
func (*AzureIdentitySpec) DeepCopy ¶
func (in *AzureIdentitySpec) DeepCopy() *AzureIdentitySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureIdentitySpec.
func (*AzureIdentitySpec) DeepCopyInto ¶
func (in *AzureIdentitySpec) DeepCopyInto(out *AzureIdentitySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureIdentityStatus ¶
type AzureIdentityStatus struct { metav1.ObjectMeta `json:"metadata,omitempty"` AvailableReplicas int32 `json:"availableReplicas"` }
func (*AzureIdentityStatus) DeepCopy ¶
func (in *AzureIdentityStatus) DeepCopy() *AzureIdentityStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureIdentityStatus.
func (*AzureIdentityStatus) DeepCopyInto ¶
func (in *AzureIdentityStatus) DeepCopyInto(out *AzureIdentityStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzurePodIdentityException ¶
type AzurePodIdentityException struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AzurePodIdentityExceptionSpec `json:"spec"` Status AzurePodIdentityExceptionStatus `json:"status"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AzurePodIdentityException) DeepCopy ¶
func (in *AzurePodIdentityException) DeepCopy() *AzurePodIdentityException
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzurePodIdentityException.
func (*AzurePodIdentityException) DeepCopyInto ¶
func (in *AzurePodIdentityException) DeepCopyInto(out *AzurePodIdentityException)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzurePodIdentityException) DeepCopyObject ¶
func (in *AzurePodIdentityException) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzurePodIdentityExceptionList ¶
type AzurePodIdentityExceptionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AzurePodIdentityException `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AzurePodIdentityExceptionList) DeepCopy ¶
func (in *AzurePodIdentityExceptionList) DeepCopy() *AzurePodIdentityExceptionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzurePodIdentityExceptionList.
func (*AzurePodIdentityExceptionList) DeepCopyInto ¶
func (in *AzurePodIdentityExceptionList) DeepCopyInto(out *AzurePodIdentityExceptionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AzurePodIdentityExceptionList) DeepCopyObject ¶
func (in *AzurePodIdentityExceptionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AzurePodIdentityExceptionSpec ¶
type AzurePodIdentityExceptionSpec struct { metav1.ObjectMeta `json:"metadata,omitempty"` PodLabels map[string]string `json:"podLabels"` }
AzurePodIdentityExceptionSpec matches pods with the selector defined. If request originates from a pod that matches the selector, nmi will proxy the request and send response back without any validation.
func (*AzurePodIdentityExceptionSpec) DeepCopy ¶
func (in *AzurePodIdentityExceptionSpec) DeepCopy() *AzurePodIdentityExceptionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzurePodIdentityExceptionSpec.
func (*AzurePodIdentityExceptionSpec) DeepCopyInto ¶
func (in *AzurePodIdentityExceptionSpec) DeepCopyInto(out *AzurePodIdentityExceptionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzurePodIdentityExceptionStatus ¶
type AzurePodIdentityExceptionStatus struct { metav1.ObjectMeta `json:"metadata,omitempty"` Status string `json:"status"` }
AzurePodIdentityExceptionStatus ...
func (*AzurePodIdentityExceptionStatus) DeepCopy ¶
func (in *AzurePodIdentityExceptionStatus) DeepCopy() *AzurePodIdentityExceptionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzurePodIdentityExceptionStatus.
func (*AzurePodIdentityExceptionStatus) DeepCopyInto ¶
func (in *AzurePodIdentityExceptionStatus) DeepCopyInto(out *AzurePodIdentityExceptionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IdentityType ¶
type IdentityType int
** AzureIdentity ** +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
const ( UserAssignedMSI IdentityType = 0 ServicePrincipal IdentityType = 1 )