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

update dependency and sdk to us TF provider v1.5.1 #25

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

## v0.9.3

- Allow creating `chronosphere_slack_notifier` with actions without `action_confirm_text`.
- Fix `chronosphere_rollup_rule` and `chronosphere_mapping_rule` diff after applying a rule without an interval or storage policy.

## v0.9.2

### Features
Expand Down
5 changes: 3 additions & 2 deletions provider/cmd/pulumi-resource-chronosphere/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3343,6 +3343,7 @@
},
"required": [
"filter",
"interval",
"name",
"slug"
],
Expand Down Expand Up @@ -4390,10 +4391,10 @@
},
"required": [
"filter",
"interval",
"metricType",
"name",
"slug",
"storagePolicies"
"slug"
],
"inputProperties": {
"aggregation": {
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ require (
github.com/charmbracelet/bubbletea v0.24.2 // indirect
github.com/charmbracelet/lipgloss v0.7.1 // indirect
github.com/cheggaaa/pb v1.0.29 // indirect
github.com/chronosphereio/terraform-provider-chronosphere v1.5.0 // indirect
github.com/chronosphereio/terraform-provider-chronosphere v1.5.1 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,8 @@ github.com/checkpoint-restore/go-criu/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAc
github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=
github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo=
github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30=
github.com/chronosphereio/terraform-provider-chronosphere v1.5.0 h1:XLodvwC62c4yEVYVa/WQgDIeyDiOvj8l0ONh+69PF5M=
github.com/chronosphereio/terraform-provider-chronosphere v1.5.0/go.mod h1:Aj+ZF3Ncra9gNWU96t3Fk4KghEMv3h8bW8gyeWXZaSo=
github.com/chronosphereio/terraform-provider-chronosphere v1.5.1 h1:PBIeQv7w6FE0pywpeduYpEwDSmhx8JsxPWodx5UBzDs=
github.com/chronosphereio/terraform-provider-chronosphere v1.5.1/go.mod h1:Aj+ZF3Ncra9gNWU96t3Fk4KghEMv3h8bW8gyeWXZaSo=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/MappingRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public partial class MappingRule : global::Pulumi.CustomResource
public Output<string> Filter { get; private set; } = null!;

[Output("interval")]
public Output<string?> Interval { get; private set; } = null!;
public Output<string> Interval { get; private set; } = null!;

[Output("mode")]
public Output<string?> Mode { get; private set; } = null!;
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/RollupRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public partial class RollupRule : global::Pulumi.CustomResource
public Output<ImmutableArray<string>> GroupBies { get; private set; } = null!;

[Output("interval")]
public Output<string?> Interval { get; private set; } = null!;
public Output<string> Interval { get; private set; } = null!;

[Output("metricType")]
public Output<string> MetricType { get; private set; } = null!;
Expand All @@ -59,7 +59,7 @@ public partial class RollupRule : global::Pulumi.CustomResource
public Output<string> Slug { get; private set; } = null!;

[Output("storagePolicies")]
public Output<Outputs.RollupRuleStoragePolicies> StoragePolicies { get; private set; } = null!;
public Output<Outputs.RollupRuleStoragePolicies?> StoragePolicies { get; private set; } = null!;


/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions sdk/go/chronosphere/mappingRule.go

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

12 changes: 6 additions & 6 deletions sdk/go/chronosphere/rollupRule.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public Output<String> filter() {
return this.filter;
}
@Export(name="interval", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> interval;
private Output<String> interval;

public Output<Optional<String>> interval() {
return Codegen.optional(this.interval);
public Output<String> interval() {
return this.interval;
}
@Export(name="mode", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> mode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ public Output<Optional<List<String>>> groupBies() {
return Codegen.optional(this.groupBies);
}
@Export(name="interval", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> interval;
private Output<String> interval;

public Output<Optional<String>> interval() {
return Codegen.optional(this.interval);
public Output<String> interval() {
return this.interval;
}
@Export(name="metricType", refs={String.class}, tree="[0]")
private Output<String> metricType;
Expand Down Expand Up @@ -117,10 +117,10 @@ public Output<String> slug() {
*/
@Deprecated /* use `interval` instead */
@Export(name="storagePolicies", refs={RollupRuleStoragePolicies.class}, tree="[0]")
private Output<RollupRuleStoragePolicies> storagePolicies;
private Output</* @Nullable */ RollupRuleStoragePolicies> storagePolicies;

public Output<RollupRuleStoragePolicies> storagePolicies() {
return this.storagePolicies;
public Output<Optional<RollupRuleStoragePolicies>> storagePolicies() {
return Codegen.optional(this.storagePolicies);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/mappingRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class MappingRule extends pulumi.CustomResource {
*/
public readonly dropTimestamp!: pulumi.Output<boolean | undefined>;
public readonly filter!: pulumi.Output<string>;
public readonly interval!: pulumi.Output<string | undefined>;
public readonly interval!: pulumi.Output<string>;
public readonly mode!: pulumi.Output<string | undefined>;
public readonly name!: pulumi.Output<string>;
public readonly slug!: pulumi.Output<string>;
Expand Down
4 changes: 2 additions & 2 deletions sdk/nodejs/rollupRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class RollupRule extends pulumi.CustomResource {
public readonly filter!: pulumi.Output<string>;
public readonly graphiteLabelPolicy!: pulumi.Output<outputs.RollupRuleGraphiteLabelPolicy | undefined>;
public readonly groupBies!: pulumi.Output<string[] | undefined>;
public readonly interval!: pulumi.Output<string | undefined>;
public readonly interval!: pulumi.Output<string>;
public readonly metricType!: pulumi.Output<string>;
public readonly metricTypeTag!: pulumi.Output<boolean | undefined>;
public readonly mode!: pulumi.Output<string | undefined>;
Expand All @@ -52,7 +52,7 @@ export class RollupRule extends pulumi.CustomResource {
/**
* @deprecated use `interval` instead
*/
public readonly storagePolicies!: pulumi.Output<outputs.RollupRuleStoragePolicies>;
public readonly storagePolicies!: pulumi.Output<outputs.RollupRuleStoragePolicies | undefined>;

/**
* Create a RollupRule resource with the given unique name, arguments, and options.
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/pulumi_chronosphere/mapping_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def filter(self) -> pulumi.Output[str]:

@property
@pulumi.getter
def interval(self) -> pulumi.Output[Optional[str]]:
def interval(self) -> pulumi.Output[str]:
return pulumi.get(self, "interval")

@property
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/pulumi_chronosphere/rollup_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def group_bies(self) -> pulumi.Output[Optional[Sequence[str]]]:

@property
@pulumi.getter
def interval(self) -> pulumi.Output[Optional[str]]:
def interval(self) -> pulumi.Output[str]:
return pulumi.get(self, "interval")

@property
Expand Down Expand Up @@ -653,7 +653,7 @@ def slug(self) -> pulumi.Output[str]:

@property
@pulumi.getter(name="storagePolicies")
def storage_policies(self) -> pulumi.Output['outputs.RollupRuleStoragePolicies']:
def storage_policies(self) -> pulumi.Output[Optional['outputs.RollupRuleStoragePolicies']]:
warnings.warn("""use `interval` instead""", DeprecationWarning)
pulumi.log.warn("""storage_policies is deprecated: use `interval` instead""")

Expand Down
Loading