Skip to content

Commit

Permalink
fix: correct spelling for encryptRootBlockDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
metral committed Nov 4, 2020
1 parent 7a08c92 commit c97e251
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

### Improvements

- fix: correct spelling for encryptRootBlockDevice
[#450](https://github.com/pulumi/pulumi-eks/pull/450)

## 0.20.0 (Released September 3, 2020)

### Improvements
Expand Down
10 changes: 9 additions & 1 deletion nodejs/eks/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export function createCore(name: string, args: ClusterOptions, parent: pulumi.Co
nodeAssociatePublicIpAddress: args.nodeAssociatePublicIpAddress,
instanceType: args.instanceType,
nodePublicKey: args.nodePublicKey,
encryptRootBockDevice: args.encryptRootBockDevice,
encryptRootBlockDevice: args.encryptRootBlockDevice || args.encryptRootBockDevice,
nodeRootVolumeSize: args.nodeRootVolumeSize,
nodeUserData: args.nodeUserData,
minSize: args.minSize,
Expand Down Expand Up @@ -1003,9 +1003,17 @@ export interface ClusterOptions {

/**
* Encrypt the root block device of the nodes in the node group.
*
* @deprecated This option has been deprecated due to a misspelling.
* Use the correct encryptRootBlockDevice option instead.
*/
encryptRootBockDevice?: pulumi.Input<boolean>;

/**
* Encrypt the root block device of the nodes in the node group.
*/
encryptRootBlockDevice?: pulumi.Input<boolean>;

/**
* The tags to apply to the default `nodeSecurityGroup` created by the cluster.
*
Expand Down
10 changes: 9 additions & 1 deletion nodejs/eks/nodegroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,17 @@ export interface NodeGroupBaseOptions {

/**
* Encrypt the root block device of the nodes in the node group.
*
* @deprecated This option has been deprecated due to a misspelling.
* Use the correct encryptRootBlockDevice option instead.
*/
encryptRootBockDevice?: pulumi.Input<boolean>;

/**
* Encrypt the root block device of the nodes in the node group.
*/
encryptRootBlockDevice?: pulumi.Input<boolean>;

/**
* Public key material for SSH access to worker nodes. See allowed formats at:
* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
Expand Down Expand Up @@ -486,7 +494,7 @@ ${customUserData}
securityGroups: [nodeSecurityGroupId, ...extraNodeSecurityGroupIds],
spotPrice: args.spotPrice,
rootBlockDevice: {
encrypted: args.encryptRootBockDevice,
encrypted: args.encryptRootBlockDevice || args.encryptRootBockDevice,
volumeSize: args.nodeRootVolumeSize || 20, // GiB
volumeType: "gp2", // default is "standard"
deleteOnTermination: true,
Expand Down

0 comments on commit c97e251

Please sign in to comment.