Skip to content

Commit

Permalink
fix: add label policies icon, logo and font with addition instance_me…
Browse files Browse the repository at this point in the history
…mber

fix: add label policies icon, logo and font with addition instance_member
  • Loading branch information
stebenz authored Dec 23, 2022
2 parents c3e5a60 + cfbda7a commit 092a272
Show file tree
Hide file tree
Showing 21 changed files with 678 additions and 317 deletions.
20 changes: 20 additions & 0 deletions docs/resources/default_label_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ resource zitadel_default_label_policy label_policy {
font_color_dark = "#ffffff"
disable_watermark = false
set_active = true
logo_hash = filemd5("/path/to/logo.jpg")
logo_path = "/path/to/logo.jpg"
logo_dark_hash = filemd5("/path/to/logo_dark.jpg")
logo_dark_path = "/path/to/logo_dark.jpg"
icon_hash = filemd5("/path/to/icon.jpg")
icon_path = "/path/to/icon.jpg"
icon_dark_hash = filemd5("/path/to/icon_dark.jpg")
icon_dark_path = "/path/to/icon_dark.jpg"
font_hash = filemd5("/path/to/font.tff")
font_path = "/path/to/font.tff"
}
```

Expand All @@ -45,6 +55,16 @@ resource zitadel_default_label_policy label_policy {

### Optional

- `font_hash` (String)
- `font_path` (String)
- `icon_dark_hash` (String)
- `icon_dark_path` (String)
- `icon_hash` (String)
- `icon_path` (String)
- `logo_dark_hash` (String)
- `logo_dark_path` (String)
- `logo_hash` (String)
- `logo_path` (String)
- `set_active` (Boolean) set the label policy active after creating/updating

### Read-Only
Expand Down
33 changes: 33 additions & 0 deletions docs/resources/instance_member.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
page_title: "zitadel_instance_member Resource - terraform-provider-zitadel"
subcategory: ""
description: |-
Resource representing the membership of a user on an instance, defined with the given role.
---

# zitadel_instance_member (Resource)

Resource representing the membership of a user on an instance, defined with the given role.

## Example Usage

```terraform
resource zitadel_instance_member instance_member {
depends_on = [zitadel_human_user.human_user]
user_id = zitadel_human_user.human_user.id
roles = ["IAM_OWNER"]
}
```

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

### Required

- `roles` (Set of String) List of roles granted
- `user_id` (String) ID of the user

### Read-Only

- `id` (String) The ID of this resource.
20 changes: 20 additions & 0 deletions docs/resources/label_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ resource zitadel_label_policy label_policy {
font_color_dark = "#ffffff"
disable_watermark = false
set_active = true
logo_hash = filemd5("/path/to/logo.jpg")
logo_path = "/path/to/logo.jpg"
logo_dark_hash = filemd5("/path/to/logo_dark.jpg")
logo_dark_path = "/path/to/logo_dark.jpg"
icon_hash = filemd5("/path/to/icon.jpg")
icon_path = "/path/to/icon.jpg"
icon_dark_hash = filemd5("/path/to/icon_dark.jpg")
icon_dark_path = "/path/to/icon_dark.jpg"
font_hash = filemd5("/path/to/font.tff")
font_path = "/path/to/font.tff"
}
```

Expand All @@ -49,6 +59,16 @@ resource zitadel_label_policy label_policy {

### Optional

- `font_hash` (String)
- `font_path` (String)
- `icon_dark_hash` (String)
- `icon_dark_path` (String)
- `icon_hash` (String)
- `icon_path` (String)
- `logo_dark_hash` (String)
- `logo_dark_path` (String)
- `logo_hash` (String)
- `logo_path` (String)
- `set_active` (Boolean) set the label policy active after creating/updating

### Read-Only
Expand Down
10 changes: 10 additions & 0 deletions examples/provider/resources/default_label_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@ resource zitadel_default_label_policy label_policy {
font_color_dark = "#ffffff"
disable_watermark = false
set_active = true
logo_hash = filemd5("/path/to/logo.jpg")
logo_path = "/path/to/logo.jpg"
logo_dark_hash = filemd5("/path/to/logo_dark.jpg")
logo_dark_path = "/path/to/logo_dark.jpg"
icon_hash = filemd5("/path/to/icon.jpg")
icon_path = "/path/to/icon.jpg"
icon_dark_hash = filemd5("/path/to/icon_dark.jpg")
icon_dark_path = "/path/to/icon_dark.jpg"
font_hash = filemd5("/path/to/font.tff")
font_path = "/path/to/font.tff"
}
6 changes: 6 additions & 0 deletions examples/provider/resources/instance_member.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource zitadel_instance_member instance_member {
depends_on = [zitadel_human_user.human_user]

user_id = zitadel_human_user.human_user.id
roles = ["IAM_OWNER"]
}
10 changes: 10 additions & 0 deletions examples/provider/resources/label_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@ resource zitadel_label_policy label_policy {
font_color_dark = "#ffffff"
disable_watermark = false
set_active = true
logo_hash = filemd5("/path/to/logo.jpg")
logo_path = "/path/to/logo.jpg"
logo_dark_hash = filemd5("/path/to/logo_dark.jpg")
logo_dark_path = "/path/to/logo_dark.jpg"
icon_hash = filemd5("/path/to/icon.jpg")
icon_path = "/path/to/icon.jpg"
icon_dark_hash = filemd5("/path/to/icon_dark.jpg")
icon_dark_path = "/path/to/icon_dark.jpg"
font_hash = filemd5("/path/to/font.tff")
font_path = "/path/to/font.tff"
}
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.19

require (
github.com/envoyproxy/protoc-gen-validate v0.9.0
github.com/gabriel-vasile/mimetype v1.4.1
github.com/gogo/protobuf v1.3.2
github.com/grpc-ecosystem/grpc-gateway/v2 v2.14.0
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
Expand All @@ -14,6 +15,8 @@ require (
github.com/hashicorp/terraform-plugin-sdk/v2 v2.24.1
github.com/zitadel/oidc v1.11.0
github.com/zitadel/zitadel-go/v2 v2.0.2
golang.org/x/oauth2 v0.2.0
google.golang.org/grpc v1.51.0
google.golang.org/protobuf v1.28.1
)

Expand Down Expand Up @@ -52,12 +55,10 @@ require (
github.com/zclconf/go-cty v1.12.1 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/net v0.2.0 // indirect
golang.org/x/oauth2 v0.2.0 // indirect
golang.org/x/sys v0.2.0 // indirect
golang.org/x/text v0.4.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20221114212237-e4508ebdbee1 // indirect
google.golang.org/grpc v1.51.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
)
Loading

0 comments on commit 092a272

Please sign in to comment.