Skip to content

CIAM-2206: CLI List roles command should return Ksql and SR roles with Stage 3 flag#1378

Merged
Akshay Ben (aben) (dragonmushu) merged 10 commits intomainfrom
aben/updateCLIForKsqlAndSRRoles
Aug 4, 2022
Merged

CIAM-2206: CLI List roles command should return Ksql and SR roles with Stage 3 flag#1378
Akshay Ben (aben) (dragonmushu) merged 10 commits intomainfrom
aben/updateCLIForKsqlAndSRRoles

Conversation

@dragonmushu
Copy link
Contributor

Checklist

  1. YES

What

Allow sr and ksql roles to be listed with stage 3 flag present.

@tadsul
Copy link
Contributor

tadsul commented Jul 28, 2022

Changes Look Good .. Can we please add Unit Test in https://github.com/confluentinc/cli/blob/main/test/iam_test.go

dataplaneRoles, _, _ := c.MDSv2Client.RBACRoleDefinitionsApi.Roles(c.createContext(), opts)
roles := append(publicRoles, dataplaneRoles...)
// add ksql and datagovernance roles
if os.Getenv("XX_DATAPLANE_3_ENABLE") != "" {

Choose a reason for hiding this comment

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

FYI, we have a feature flag framework that you can use in the future, it would give you some more flexibility over these features.

Copy link
Contributor

@tadsul tadsul left a comment

Choose a reason for hiding this comment

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

LGTM -> merge after fixing the comments

@dragonmushu Akshay Ben (aben) (dragonmushu) deleted the aben/updateCLIForKsqlAndSRRoles branch August 4, 2022 23:42
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.

3 participants