Skip to content

Commit

Permalink
Cut Release 'v0.8.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
opslevel-ops committed Sep 15, 2023
1 parent 357494c commit a055327
Show file tree
Hide file tree
Showing 50 changed files with 436 additions and 281 deletions.
3 changes: 0 additions & 3 deletions .changes/unreleased/Feature-20230831-112138.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions .changes/unreleased/Feature-20230912-152914.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions .changes/unreleased/Feature-20230912-153021.yaml

This file was deleted.

5 changes: 5 additions & 0 deletions .changes/v0.8.9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## [September 15, 2023](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v0.8.8...v0.8.9)
### Feature
- add datasource for scorecards
- add webhook action data source
- add extendedTeamAccess field to trigger definitions
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and is generated by [Changie](https://github.com/miniscruff/changie).## [August 28, 2023](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v0.8.7...v0.8.8)
and is generated by [Changie](https://github.com/miniscruff/changie).## [September 15, 2023](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v0.8.8...v0.8.9)
### Feature
- add datasource for scorecards
- add webhook action data source
- add extendedTeamAccess field to trigger definitions## [August 28, 2023](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v0.8.7...v0.8.8)
### Feature
- add support for scorecards (no datasource)## [August 15, 2023](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v0.8.6...v0.8.7)
### Bugfix
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ description: |-

```terraform
data "opslevel_group" "foo" {
identifier = "foo"
identifier = "foo"
}
data "opslevel_group" "bar" {
identifier = "Z2lkOi8vb3BzbGV2ZWwvTmFtZXNwYWNlczo6R3JvdXAvNTI"
identifier = "Z2lkOi8vb3BzbGV2ZWwvTmFtZXNwYWNlczo6R3JvdXAvNTI"
}
```

Expand Down
8 changes: 4 additions & 4 deletions docs/data-sources/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ description: |-

```terraform
data "opslevel_integration" "deploy" {
filter {
field = "name"
value = "deploy"
}
filter {
field = "name"
value = "deploy"
}
}
```

Expand Down
16 changes: 8 additions & 8 deletions docs/data-sources/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ description: |-

```terraform
data "opslevel_lifecycle" "beta" {
filter {
field = "alias"
value = "beta"
}
filter {
field = "alias"
value = "beta"
}
}
data "opslevel_lifecycle" "pre-alpha" {
filter {
field = "index"
value = "0"
}
filter {
field = "index"
value = "0"
}
}
```

Expand Down
8 changes: 4 additions & 4 deletions docs/data-sources/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ description: |-

```terraform
data "opslevel_tier" "tier2" {
filter {
field = "alias"
value = "tier_2"
}
filter {
field = "alias"
value = "tier_2"
}
}
data "opslevel_repositories" "all" {
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ description: |-

```terraform
data "opslevel_repository" "foo" {
alias = "github.com:organization/example"
alias = "github.com:organization/example"
}
data "opslevel_repository" "bar" {
id = "Z2lkOi8vb3BzbGV2ZWwvUmVwb3NpdG9yaWVzOjpHaXRodWIvMjY1MTk"
id = "Z2lkOi8vb3BzbGV2ZWwvUmVwb3NpdG9yaWVzOjpHaXRodWIvMjY1MTk"
}
```

Expand Down
16 changes: 8 additions & 8 deletions docs/data-sources/rubric_category.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ description: |-

```terraform
data "opslevel_rubric_category" "security" {
filter {
field = "name"
value = "Security"
}
filter {
field = "name"
value = "Security"
}
}
data "opslevel_rubric_category" "Observability" {
filter {
field = "id"
value = "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA3"
}
filter {
field = "id"
value = "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA3"
}
}
```

Expand Down
16 changes: 8 additions & 8 deletions docs/data-sources/rubric_level.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ description: |-

```terraform
data "opslevel_rubric_level" "bronze" {
filter {
field = "alias"
value = "bronze"
}
filter {
field = "alias"
value = "bronze"
}
}
data "opslevel_rubric_level" "gold" {
filter {
field = "id"
value = "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE5"
}
filter {
field = "id"
value = "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE5"
}
}
```

Expand Down
34 changes: 34 additions & 0 deletions docs/data-sources/scorecard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "opslevel_scorecard Data Source - terraform-provider-opslevel"
subcategory: ""
description: |-
---

# opslevel_scorecard (Data Source)





<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `identifier` (String) The id or alias of the scorecard to find.

### Read-Only

- `aliases` (List of String) The scorecard's aliases.
- `description` (String) The scorecard's description.
- `filter_id` (String) The scorecard's filter.
- `id` (String) The ID of this resource.
- `name` (String) The scorecard's name.
- `owner_id` (String) The scorecard's owner.
- `passing_checks` (Number) The scorecard's number of checks that are passing.
- `service_count` (Number) The scorecard's number of services matched.
- `total_checks` (Number) The scorecard's total number of checks.


31 changes: 31 additions & 0 deletions docs/data-sources/scorecards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "opslevel_scorecards Data Source - terraform-provider-opslevel"
subcategory: ""
description: |-
---

# opslevel_scorecards (Data Source)





<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `aliases` (List of List of String)
- `descriptions` (List of String)
- `filter_ids` (List of String)
- `id` (String) The ID of this resource.
- `ids` (List of String)
- `names` (List of String)
- `owner_ids` (List of String)
- `passing_checks` (List of Number)
- `service_counts` (List of Number)
- `total_checks` (List of Number)


8 changes: 4 additions & 4 deletions docs/data-sources/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ description: |-

```terraform
data "opslevel_tier" "tier1" {
filter {
field = "alias"
value = "tier_1"
}
filter {
field = "alias"
value = "tier_1"
}
}
data "opslevel_services" "all" {
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/team.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ description: |-

```terraform
data "opslevel_team" "devs" {
alias = "developers"
alias = "developers"
}
data "opslevel_team" "devs" {
id = "Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS83NzQ0"
id = "Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS83NzQ0"
}
```

Expand Down
16 changes: 8 additions & 8 deletions docs/data-sources/tier.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ description: |-

```terraform
data "opslevel_tier" "tier1" {
filter {
field = "alias"
value = "tier_1"
}
filter {
field = "alias"
value = "tier_1"
}
}
data "opslevel_tier" "tier3" {
filter {
field = "index"
value = "3"
}
filter {
field = "index"
value = "3"
}
}
```

Expand Down
24 changes: 12 additions & 12 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ provider "opslevel" {
}
resource "opslevel_team" "foo" {
name = "foo"
manager_email = "[email protected]"
name = "foo"
manager_email = "[email protected]"
responsibilities = "Responsible for foo frontend and backend"
}
Expand All @@ -33,8 +33,8 @@ resource "opslevel_service" "foo-frontend" {
language = "ruby"
lifecycle_alias = "beta"
tier_alias = "tier_3"
owner_alias = opslevel_team.foo.alias
tier_alias = "tier_3"
owner_alias = opslevel_team.foo.alias
tags = [
"environment:production",
Expand All @@ -58,21 +58,21 @@ data "opslevel_rubric_level" "bronze" {
resource "opslevel_filter" "filter" {
name = "foo"
predicate {
key = "tier_index"
type = "equals"
key = "tier_index"
type = "equals"
value = "tier_3"
}
connective = "and"
}
resource "opslevel_check_repository_integrated" "foo" {
name = "foo"
enabled = true
name = "foo"
enabled = true
category = data.opslevel_rubric_category.security.id
level = data.opslevel_rubric_level.bronze.id
owner = opslevel_team.foo.id
filter = opslevel_filter.filter.id
notes = "Optional additional info on why this check is run or how to fix it"
level = data.opslevel_rubric_level.bronze.id
owner = opslevel_team.foo.id
filter = opslevel_filter.filter.id
notes = "Optional additional info on why this check is run or how to fix it"
}
```

Expand Down
26 changes: 13 additions & 13 deletions docs/resources/check_custom_event.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,25 @@ data "opslevel_filter" "tier1" {
}
data "opslevel_integration" "kubernetes" {
filter {
field = "name"
value = "Kubernetes"
}
filter {
field = "name"
value = "Kubernetes"
}
}
resource "opslevel_check_custom_event" "example" {
name = "foo"
name = "foo"
enabled = true
# To set a future enable date remove field 'enabled' and use 'enable_on'
# enable_on = "2022-05-23T14:14:18.782000Z"
category = data.opslevel_rubric_category.security.id
level = data.opslevel_rubric_level.bronze.id
owner = data.opslevel_team.devs.id
filter = data.opslevel_filter.tier1.id
integration = data.opslevel_integration.kubernetes.id
service_selector = ".messages[] | .incident.service.id"
category = data.opslevel_rubric_category.security.id
level = data.opslevel_rubric_level.bronze.id
owner = data.opslevel_team.devs.id
filter = data.opslevel_filter.tier1.id
integration = data.opslevel_integration.kubernetes.id
service_selector = ".messages[] | .incident.service.id"
success_condition = ".messages[] | select(.incident.service.id == $ctx.alias) | .incident.status == \"resolved\""
message = <<-EOT
message = <<-EOT
{% if check.passed %}
### Check passed
{% else %}
Expand All @@ -66,7 +66,7 @@ resource "opslevel_check_custom_event" "example" {
{% endif %}
OpsLevel note: here you can fill in more details about this check. You can even include `data` from the payload, `params` specified in the URL and context `ctx` such as the service alias for the current evaluation.
EOT
notes = "Optional additional info on why this check is run or how to fix it"
notes = "Optional additional info on why this check is run or how to fix it"
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/check_has_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ data "opslevel_filter" "tier1" {
}
resource "opslevel_check_has_documentation" "has_docs" {
name = "foo"
enabled = true
name = "foo"
enabled = true
# To set a future enable date remove field 'enabled' and use 'enable_on'
# enable_on = "2022-05-23T14:14:18.782000Z"
category = data.opslevel_rubric_category.security.id
Expand Down
Loading

0 comments on commit a055327

Please sign in to comment.