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

Modify clusterRole in ICluster or apply k8s manifest in imported Cluster(ICluster) #27086

Closed
2 tasks done
oliverdavidnoguerasanmartin opened this issue Sep 10, 2023 · 2 comments
Labels
@aws-cdk/cloud-assembly-schema feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@oliverdavidnoguerasanmartin

Describe the feature

I want to modify clusterRole of existing imported Cluster, so ICluster.
ICluster doesn't have any way to make this and apply "

Use Case

 KubernetesManifest(
            scope,
            id,
            KubernetesManifestProps
                    .builder()
                    .cluster(eksCluster)
                    .manifest(listOf(manifestMap))
                    .build()

Proposed Solution

No response

Other Information

I think i have this error "Exception in thread "main" software.amazon.jsii.JsiiError: "kubectlRole" is not defined, cannot issue kubectl commands against this cluster" by this reason.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.90.0

Environment details (OS name and version, etc.)

github actions

@oliverdavidnoguerasanmartin oliverdavidnoguerasanmartin added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Sep 10, 2023
@oliverdavidnoguerasanmartin oliverdavidnoguerasanmartin changed the title Modify clusterRole in ClusterRole Modify clusterRole in ICluster or apply k8s manifest in imported Cluster(ICluster) Sep 10, 2023
@indrora
Copy link
Contributor

indrora commented Sep 11, 2023

Imported resources cannot be modified in CDK, only referenced, except where there is a means to do so in CloudFormation.

@indrora indrora closed this as completed Sep 11, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/cloud-assembly-schema feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants