Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aks: add pod identity profile spec #11366

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2469,6 +2469,10 @@
},
"description": "Profile of managed cluster add-on."
},
"podIdentityProfile": {
"$ref": "#/definitions/ManagedClusterPodIdentityProfile",
"description": "Profile of managed cluster pod identity."
},
"nodeResourceGroup": {
"type": "string",
"description": "Name of the resource group containing agent pool nodes."
Expand Down Expand Up @@ -2828,6 +2832,93 @@
],
"description": "A Kubernetes add-on profile for a managed cluster."
},
"ManagedClusterPodIdentity": {
"properties": {
"name": {
"type": "string",
"description": "Name of the pod identity."
},
"namespace": {
"type": "string",
"description": "Namespace of the pod identity."
},
"identity": {
"$ref": "#/definitions/UserAssignedIdentity",
"description": "Information of the user assigned identity."
},
"provisioningState": {
"type": "string",
"readOnly": true,
"description": "The current provisioning state of the pod identity.",
"enum": [
"Assigned",
"Updating",
"Deleting",
"Failed"
],
"x-ms-enum": {
"name": "ManagedClusterPodIdentityProvisioningState",
"modelAsString": true
}
},
"provisioningInfo": {
bcho marked this conversation as resolved.
Show resolved Hide resolved
"readOnly": true,
"properties": {
"error": {
"$ref": "#/definitions/CloudError",
"description": "Pod identity assignment error (if any)."
}
}
}
},
"required": [
"name",
"namespace",
"identity"
]
},
"ManagedClusterPodIdentityException": {
"properties": {
"name": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this readyonly?

Copy link
Member Author

@bcho bcho Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name / namespace / podLabels are expected to set by the user, so they're not readonly

"type": "string",
"description": "Name of the pod identity exception."
},
"namespace": {
"type": "string",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this readyonly?

"description": "Namespace of the pod identity exception."
},
"podLabels": {
"type": "object",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this readyonly?

"description": "Pod labels to match.",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"name",
"namespace",
"podLabels"
]
},
"ManagedClusterPodIdentityProfile": {
"properties": {
"userAssignedPodIdentities": {
"description": "User assigned pod identity settings.",
"type": "array",
"items": {
"$ref": "#/definitions/ManagedClusterPodIdentity"
}
},
"userAssignedPodIdentityExceptions": {
"description": "User assigned pod identity exception settings.",
"type": "array",
"items": {
"$ref": "#/definitions/ManagedClusterPodIdentityException"
}
}
}
},
"ManagedClusterUpgradeProfile": {
"properties": {
"id": {
Expand Down