Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
feat: AwsLoadBalancePolicy class & fix role type
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkuan committed Oct 25, 2020
1 parent 5e8f392 commit 0b779c5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ new AwsLoadBalancePolicy()


```ts
static addPolicy(version: string, role: Role): any
static addPolicy(version: string, role: any): any
```

* **version** (<code>string</code>) *No description*
* **role** (<code>[Role](#aws-cdk-aws-iam-role)</code>) *No description*
* **role** (<code>any</code>) *No description*

__Returns__:
* <code>any</code>
Expand Down
7 changes: 0 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.15](https://github.com/guan840912/cdk8s-aws-alb-ingress-controller/compare/v0.0.12...v0.0.15) (2020-10-25)


### Features

* AwsLoadBalancePolicy class ([8f8ae6a](https://github.com/guan840912/cdk8s-aws-alb-ingress-controller/commit/8f8ae6a9947c371ebb90db957ce94899cf81c5f9))

### 0.0.14 (2020-10-22)

### 0.0.13 (2020-10-21)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"category": 2
}
},
"version": "0.0.15",
"version": "0.0.14",
"types": "lib/index.d.ts",
"jest": {
"clearMocks": true,
Expand Down
2 changes: 1 addition & 1 deletion src/alb-controller-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const awsLoadBalancerControllerPolicyV2 = [
* awsLoadBalancePolicy class ,help you add policy to your Iam Role for service account.
*/
export class AwsLoadBalancePolicy {
public static addPolicy(version: string, role: iam.Role) :any {
public static addPolicy(version: string, role: any) :any {
if (version == 'v1') {
role.addToPolicy(new iam.PolicyStatement( awsLoadBalancerControllerPolicyV1 ));
return role;
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.0.15"
"version": "0.0.14"
}

0 comments on commit 0b779c5

Please sign in to comment.