cdk8s-plus icon indicating copy to clipboard operation
cdk8s-plus copied to clipboard

Unable to create a custom ApiResource with a resource name

Open iliapolo opened this issue 2 years ago • 2 comments

It should be possible to do the following:

const role = new kplus.Role(this, 'Role');

// custom ApiResource that references a specific resource
role.allowGet(kplus.ApiResource.custom({
  apiGroup: '',
  resourceType: 'configmaps',
  resourceNames: ['ingress-controller-leader']
}));

iliapolo avatar Dec 15 '22 14:12 iliapolo