-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refectoring from the Povider Interface. (#4)
Define the first "Stable" Version from the base provider configuration, use the original ids for the terraform state, and add import methode for some methodes.
- Loading branch information
Showing
37 changed files
with
937 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
linters: | ||
enable-all: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.wy-nav-content { | ||
background: white; | ||
max-width: 100%; | ||
height: 100vh; | ||
margin: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Data Source: harbor_label | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "harbor_label" "label_1" { | ||
name = "main" | ||
scope = "g" | ||
} | ||
data "harbor_label" "label_2" { | ||
id = 4 | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `id` - (Optional, int) ID of the label. | ||
- `name` - (Optional, string) Name of the label. | ||
- `scope` - (Optional, string) Scope of the label. | ||
|
||
## Attributes Reference | ||
|
||
- `id` - (int) Unique ID of the label. | ||
- `name` - (string) Name of the label. | ||
- `description` - (Optional) The description of the label account will be displayed in harbor. | ||
- `color` - (Optional) The color the label. | ||
- `scope` - (Optional) The scope the label, `p` for project and `g` for global. | ||
- `project_id` - (Optional) The ID of project that the label belongs to. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,24 @@ | ||
--- | ||
subcategory: "project" | ||
page_title: "Harbor: harbor_project" | ||
description: |- | ||
Get information on a Harbor Project | ||
--- | ||
|
||
# Data Source: harbor_project | ||
|
||
Use this data source to get the ARN of a certificate in AWS Certificate | ||
Manager (ACM), you can reference | ||
it by domain without having to hard code the ARNs as input. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
# Find a certificate that is issued | ||
data "aws_acm_certificate" "example" { | ||
domain = "tf.example.com" | ||
statuses = ["ISSUED"] | ||
data "harbor_project" "project_1" { | ||
name = "main" | ||
} | ||
# Find a certificate issued by (not imported into) ACM | ||
data "aws_acm_certificate" "example" { | ||
domain = "tf.example.com" | ||
types = ["AMAZON_ISSUED"] | ||
most_recent = true | ||
data "harbor_project" "project_2" { | ||
id = 4 | ||
} | ||
# Find a RSA 4096 bit certificate | ||
data "aws_acm_certificate" "example" { | ||
domain = "tf.example.com" | ||
key_types = ["RSA_4096"] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `domain` - (Required) The domain of the certificate to look up. If no certificate is found with this name, an error will be returned. | ||
* `key_types` - (Optional) A list of key algorithms to filter certificates. By default, ACM does not return all certificate types when searching. Valid values are `RSA_1024`, `RSA_2048`, `RSA_4096`, `EC_prime256v1`, `EC_secp384r1`, and `EC_secp521r1`. | ||
* `statuses` - (Optional) A list of statuses on which to filter the returned list. Valid values are `PENDING_VALIDATION`, `ISSUED`, | ||
`INACTIVE`, `EXPIRED`, `VALIDATION_TIMED_OUT`, `REVOKED` and `FAILED`. If no value is specified, only certificates in the `ISSUED` state | ||
are returned. | ||
* `types` - (Optional) A list of types on which to filter the returned list. Valid values are `AMAZON_ISSUED` and `IMPORTED`. | ||
* `most_recent` - (Optional) If set to true, it sorts the certificates matched by previous criteria by the NotBefore field, returning only the most recent one. If set to false, it returns an error if more than one certificate is found. Defaults to false. | ||
- `id` - (Optional, int) ID of the project. | ||
- `name` - (Optional, string) Name of the project. | ||
|
||
## Attributes Reference | ||
|
||
* `arn` - Set to the ARN of the found certificate, suitable for referencing in other resources that support ACM certificates. | ||
* `tags` - A mapping of tags for the resource. | ||
|
||
- `id` - (int) Unique ID of the project. | ||
- `name` - (string) Name of the project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Data Source: harbor_registry | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "harbor_registry" "registry_1" { | ||
name = "main" | ||
} | ||
data "harbor_registry" "registry_2" { | ||
id = 4 | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
- `id` - (Optional, string) ID of the registry. | ||
- `name` - (Optional, string) Name of the registry. | ||
|
||
## Attributes Reference | ||
|
||
- `id` - (int) Unique ID of the registry. | ||
- `name` - (string) Name of the registry. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
document.addEventListener("DOMContentLoaded", function() { | ||
document.querySelectorAll("table").forEach(function(table) { | ||
table.classList.add("docutils"); | ||
}); | ||
}); |
Oops, something went wrong.