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

tco-policy to plugin framework #123

Merged
merged 15 commits into from
Aug 13, 2023
29 changes: 28 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,31 @@ BUG FIXING:

## Release 1.6.5
INTERNAL CHANGES:
* `tco_policy` and `tco_policy_override` endpoints were changed.
#### resource/coralogix_tco_policy
* `tco_policy` and `tco_policy_override` endpoints were changed.

## Release 1.7.0
Breaking Changes:
#### resource/coralogix_tco_policy was changed to coralogix_tco_policy_logs and contains the next changes:
* `subsystem_name` was changed to `subsystems` and have different structure e.g. -
`subsystem_name {
is = true
rules = ["mobile", "web"]
}` => `subsystems = {
rule_type = "is"
names = ["mobile", "web"]
}`
* `application_name` was changed to `applications` and have different structure e.g. - `application_name {
starts_with = true
rule = "prod"
}` => `applications = {
rule_type = "starts_with"
names = ["prod"]
}`

**Please note** - this version contains a [State Upgrader](https://developer.hashicorp.com/terraform/plugin/framework/migrating/resources/state-upgrade#framework). It will upgrade the state to the new schema. Please make sure to back up your state before upgrading.
(for upgrading the schemas the resource names have to be change manually to coralogix_tco_policy_logs before upgrading)
DEVELOPERS:
#### resource/coralogix_tco_policy
* using grpc endpoint instead of the REST endpoint.
* moved to `plugin-framework`.
4 changes: 2 additions & 2 deletions coralogix/clientset/clientset.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type ClientSet struct {
grafanaDashboards *GrafanaDashboardClient
actions *ActionsClient
recordingRuleGroups *RecordingRulesGroupsSetsClient
tcoPolicies *TCOPolicies
tcoPolicies *TCOPoliciesClient
tcoPoliciesOverrides *TCOPoliciesOverrides
webhooks *WebhooksClient
events2Metrics *Events2MetricsClient
Expand Down Expand Up @@ -47,7 +47,7 @@ func (c *ClientSet) RecordingRuleGroupsSets() *RecordingRulesGroupsSetsClient {
return c.recordingRuleGroups
}

func (c *ClientSet) TCOPolicies() *TCOPolicies {
func (c *ClientSet) TCOPolicies() *TCOPoliciesClient {
return c.tcoPolicies
}

Expand Down
151 changes: 151 additions & 0 deletions coralogix/clientset/grpc/tco-policies/archive_retention.pb.go

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

180 changes: 180 additions & 0 deletions coralogix/clientset/grpc/tco-policies/audit_log.pb.go

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

Loading
Loading