Skip to content

Commit

Permalink
Cut Release 'v1.2.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
opslevel-ops committed Aug 16, 2024
1 parent bdced22 commit 7c09950
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .changes/unreleased/Feature-20240808-161107.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions .changes/unreleased/Feature-20240815-220023.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions .changes/v1.2.6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## [August 16, 2024](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v1.2.3...v1.2.6)
### Feature
- add opslevel_service_dependencies datasource
- opslevel_users datasource can filter out deactivated users
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
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 02, 2024](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v1.2.2...v1.2.3)## [August 01, 2024](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v1.2.1...v1.2.2)
and is generated by [Changie](https://github.com/miniscruff/changie).## [August 16, 2024](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v1.2.3...v1.2.6)
### Feature
- add opslevel_service_dependencies datasource
- opslevel_users datasource can filter out deactivated users## [August 02, 2024](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v1.2.2...v1.2.3)## [August 01, 2024](https://github.com/OpsLevel/terraform-provider-opslevel/compare/v1.2.1...v1.2.2)
### Bugfix
- fix state import of opslevel_check_repository_search
- correctly handle validating fields set by variables or for loops during 'terraform validate'
Expand Down
70 changes: 70 additions & 0 deletions docs/data-sources/service_dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "opslevel_service_dependencies Data Source - terraform-provider-opslevel"
subcategory: ""
description: |-
Service Dependencies data source
---

# opslevel_service_dependencies (Data Source)

Service Dependencies data source

## Example Usage

```terraform
data "opslevel_service" "foo" {
alias = "foo"
}
data "opslevel_service" "bar" {
id = "Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS84Njcw"
}
data "opslevel_service_dependencies" "by_alias" {
service = data.opslevel_service.foo.alias
}
data "opslevel_service_dependencies" "by_id" {
service = data.opslevel_service.bar.id
}
```

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

### Required

- `service` (String) The ID or alias of the service with the dependency.

### Read-Only

- `dependencies` (Attributes List) List of Service Dependencies of a service (see [below for nested schema](#nestedatt--dependencies))
- `dependents` (Attributes List) List of Service Dependents of a service (see [below for nested schema](#nestedatt--dependents))

<a id="nestedatt--dependencies"></a>
### Nested Schema for `dependencies`

Optional:

- `notes` (String) Notes for service dependency.

Read-Only:

- `id` (String) The ID of the service dependency.
- `locked` (Boolean) Is the dependency locked by a service config?


<a id="nestedatt--dependents"></a>
### Nested Schema for `dependents`

Optional:

- `notes` (String) Notes for service dependency.

Read-Only:

- `id` (String) The ID of the service dependency.
- `locked` (Boolean) Is the dependency locked by a service config?


12 changes: 12 additions & 0 deletions docs/data-sources/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ List of all User data sources
```terraform
data "opslevel_users" "all" {}
data "opslevel_users" "only_active" {
ignore_deactivated = true
}
output "all" {
value = data.opslevel_users.all.users
}
output "only_active" {
value = data.opslevel_users.only_active.users
}
output "user_emails" {
value = sort(data.opslevel_users.all.users[*].email)
}
Expand All @@ -31,6 +39,10 @@ output "user_names" {
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `ignore_deactivated` (Boolean) Do not list deactivated users if set.

### Read-Only

- `users` (Attributes List) List of user data sources (see [below for nested schema](#nestedatt--users))
Expand Down
66 changes: 66 additions & 0 deletions docs/resources/integration_google_cloud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "opslevel_integration_google_cloud Resource - terraform-provider-opslevel"
subcategory: ""
description: |-
Google Cloud Integration resource
---

# opslevel_integration_google_cloud (Resource)

Google Cloud Integration resource

## Example Usage

```terraform
resource "opslevel_integration_google_cloud" "dev" {
client_email = "hello-world-tf@powerful-surf-427415-v1.iam.gserviceaccount.com"
name = "GCP Dev Integration"
ownership_tag_keys = ["opslevel_team", "team", "owner"]
ownership_tag_overrides = true
private_key = <<EOH
-----BEGIN PRIVATE KEY-----
<private key body here>
-----END PRIVATE KEY-----
EOH
}
```

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

### Required

- `client_email` (String) The service account email OpsLevel uses to access the Google Cloud account.
- `name` (String) The name of the integration.
- `private_key` (String, Sensitive) The private key for the service account that OpsLevel uses to access the Google Cloud account.

### Optional

- `ownership_tag_keys` (List of String) An Array of tag keys used to associate ownership from an integration. Max 5 (default = ["owner"])
- `ownership_tag_overrides` (Boolean) Allow tags imported from Google Cloud to override ownership set in OpsLevel directly. (default = true)

### Read-Only

- `aliases` (List of String) All of the aliases attached to the integration.
- `created_at` (String) The time this integration was created.
- `id` (String) The ID of the integration.
- `installed_at` (String) The time that this integration was successfully installed, if null, this indicates the integration was not completely installed.
- `projects` (List of Object) A list of the Google Cloud projects that were imported by the integration. (see [below for nested schema](#nestedatt--projects))

<a id="nestedatt--projects"></a>
### Nested Schema for `projects`

Read-Only:

- `id` (String)
- `name` (String)
- `url` (String)

## Import

Import is supported using the following syntax:

```shell
terraform import opslevel_integration_google_cloud.example Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS82MDI0
```
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ github.com/opslevel/moredefaults v0.0.0-20240529152742-17d1318a3c12 h1:OQZ3W8kby
github.com/opslevel/moredefaults v0.0.0-20240529152742-17d1318a3c12/go.mod h1:g2GSXVP6LO+5+AIsnMRPN+BeV86OXuFRTX7HXCDtYeI=
github.com/opslevel/opslevel-go/v2024 v2024.8.16 h1:wFBDdx0i8+WyKKyA9G6QNKfuLIxfKLgmEp0Qsq/dMmE=
github.com/opslevel/opslevel-go/v2024 v2024.8.16/go.mod h1:Im05vD4br6u/FihTXSYW77E+8mKc5BJMQ9N8sH3ljRI=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down

0 comments on commit 7c09950

Please sign in to comment.