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

Added changes to support non admin users #32

Merged
merged 9 commits into from
Jun 22, 2021

Conversation

Ganeshrockz
Copy link
Contributor

Fixes #25

@thesattiraju
Copy link
Contributor

Add tests as well

@thesattiraju
Copy link
Contributor

Paging @Ganeshrockz to take this forward

lib/login.js Outdated
@@ -17,10 +17,12 @@ const auth_1 = require("@azure-actions/auth");
function getAKSKubeconfig(azureSessionToken, subscriptionId, managementEndpointUrl) {
let resourceGroupName = core.getInput('resource-group', { required: true });
let clusterName = core.getInput('cluster-name', { required: true });
let useClusterAdminRole = core.getInput('admin', { required: false }).toLowerCase() === "true";
let roleName = useClusterAdminRole ? "clusterAdmin" : "clusterUser";
Copy link
Contributor

Choose a reason for hiding this comment

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

Revert this to the new APIs you were using

@Ganeshrockz Ganeshrockz merged commit dbc911e into releases/v1 Jun 22, 2021
@OliverMKing OliverMKing deleted the ganeshrockz/addUserRoleInput branch February 3, 2022 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to use AAD Cluster with non-admin users
2 participants