Skip to content

Commit

Permalink
tco-policy to plugin framework (#123)
Browse files Browse the repository at this point in the history
* minor - moving tco-policy to framework-plugin and rename it to tco_policy_logs
  • Loading branch information
OrNovo authored Aug 13, 2023
1 parent db1f8c8 commit 4f86094
Show file tree
Hide file tree
Showing 48 changed files with 7,060 additions and 903 deletions.
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

0 comments on commit 4f86094

Please sign in to comment.