Skip to content

Commit

Permalink
chore: upgrade provider from 2.8.0 to version 2.9.0 (#864)
Browse files Browse the repository at this point in the history
This PR upgrades provider to version 2.9.0
  • Loading branch information
team-tf-cdk authored Feb 15, 2023
1 parent bc9cfc4 commit a66a9c3
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 25 additions & 1 deletion src/data-helm-template/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export interface DataHelmTemplateConfig extends cdktf.TerraformMetaArguments {
*/
readonly chart: string;
/**
* List of rendered CRDs from the chart.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/helm/d/template#crds DataHelmTemplate#crds}
*/
readonly crds?: string[];
/**
* Create the namespace if it does not exist
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/helm/d/template#create_namespace DataHelmTemplate#create_namespace}
Expand Down Expand Up @@ -766,7 +772,7 @@ export class DataHelmTemplate extends cdktf.TerraformDataSource {
terraformResourceType: 'helm_template',
terraformGeneratorMetadata: {
providerName: 'helm',
providerVersion: '2.8.0',
providerVersion: '2.9.0',
providerVersionConstraint: '~> 2.3'
},
provider: config.provider,
Expand All @@ -780,6 +786,7 @@ export class DataHelmTemplate extends cdktf.TerraformDataSource {
this._apiVersions = config.apiVersions;
this._atomic = config.atomic;
this._chart = config.chart;
this._crds = config.crds;
this._createNamespace = config.createNamespace;
this._dependencyUpdate = config.dependencyUpdate;
this._description = config.description;
Expand Down Expand Up @@ -871,6 +878,22 @@ export class DataHelmTemplate extends cdktf.TerraformDataSource {
return this._chart;
}

// crds - computed: true, optional: true, required: false
private _crds?: string[];
public get crds() {
return this.getListAttribute('crds');
}
public set crds(value: string[]) {
this._crds = value;
}
public resetCrds() {
this._crds = undefined;
}
// Temporarily expose input value. Use with caution.
public get crdsInput() {
return this._crds;
}

// create_namespace - computed: false, optional: true, required: false
private _createNamespace?: boolean | cdktf.IResolvable;
public get createNamespace() {
Expand Down Expand Up @@ -1517,6 +1540,7 @@ export class DataHelmTemplate extends cdktf.TerraformDataSource {
api_versions: cdktf.listMapper(cdktf.stringToTerraform, false)(this._apiVersions),
atomic: cdktf.booleanToTerraform(this._atomic),
chart: cdktf.stringToTerraform(this._chart),
crds: cdktf.listMapper(cdktf.stringToTerraform, false)(this._crds),
create_namespace: cdktf.booleanToTerraform(this._createNamespace),
dependency_update: cdktf.booleanToTerraform(this._dependencyUpdate),
description: cdktf.stringToTerraform(this._description),
Expand Down
26 changes: 25 additions & 1 deletion src/provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ import * as cdktf from 'cdktf';
// Configuration

export interface HelmProviderConfig {
/**
* Helm burst limit. Increase this if you have a cluster with many CRDs
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/helm#burst_limit HelmProvider#burst_limit}
*/
readonly burstLimit?: number;
/**
* Debug indicates whether or not Helm is running in Debug mode.
*
Expand Down Expand Up @@ -290,11 +296,12 @@ export class HelmProvider extends cdktf.TerraformProvider {
terraformResourceType: 'helm',
terraformGeneratorMetadata: {
providerName: 'helm',
providerVersion: '2.8.0',
providerVersion: '2.9.0',
providerVersionConstraint: '~> 2.3'
},
terraformProviderSource: 'helm'
});
this._burstLimit = config.burstLimit;
this._debug = config.debug;
this._helmDriver = config.helmDriver;
this._pluginsPath = config.pluginsPath;
Expand All @@ -311,6 +318,22 @@ export class HelmProvider extends cdktf.TerraformProvider {
// ATTRIBUTES
// ==========

// burst_limit - computed: false, optional: true, required: false
private _burstLimit?: number;
public get burstLimit() {
return this._burstLimit;
}
public set burstLimit(value: number | undefined) {
this._burstLimit = value;
}
public resetBurstLimit() {
this._burstLimit = undefined;
}
// Temporarily expose input value. Use with caution.
public get burstLimitInput() {
return this._burstLimit;
}

// debug - computed: false, optional: true, required: false
private _debug?: boolean | cdktf.IResolvable;
public get debug() {
Expand Down Expand Up @@ -477,6 +500,7 @@ export class HelmProvider extends cdktf.TerraformProvider {

protected synthesizeAttributes(): { [name: string]: any } {
return {
burst_limit: cdktf.numberToTerraform(this._burstLimit),
debug: cdktf.booleanToTerraform(this._debug),
helm_driver: cdktf.stringToTerraform(this._helmDriver),
plugins_path: cdktf.stringToTerraform(this._pluginsPath),
Expand Down
2 changes: 1 addition & 1 deletion src/release/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ export class Release extends cdktf.TerraformResource {
terraformResourceType: 'helm_release',
terraformGeneratorMetadata: {
providerName: 'helm',
providerVersion: '2.8.0',
providerVersion: '2.9.0',
providerVersionConstraint: '~> 2.3'
},
provider: config.provider,
Expand Down
2 changes: 1 addition & 1 deletion src/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"registry.terraform.io/hashicorp/helm": "2.8.0"
"registry.terraform.io/hashicorp/helm": "2.9.0"
}

0 comments on commit a66a9c3

Please sign in to comment.