-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Data Source: harbor_project | ||
|
||
## Example Usage | ||
```hcl | ||
data "haror_project" "main" { | ||
name = "library" | ||
} | ||
output "project_id" { | ||
value = data.harbor_project.main.id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
The following arguments are supported: | ||
|
||
* **name** - (Required) The of the project that will be created in harbor. | ||
|
||
## Attributes Reference | ||
In addition to all argument, the folloing attributes are exported: | ||
|
||
* **project_id** - The id of the project within harbor. | ||
|
||
* **public** - If the project will be public accessibility. | ||
|
||
* **vulnerability_scanning** - If the images will be scanned for vulnerabilities when push to harbor. |
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,33 @@ | ||
# Data Source: harbor_registry | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "harbor_registry" "main" { | ||
name = "test_docker_harbor" | ||
} | ||
output "harbor_registry_id" { | ||
value = data.harbor_registry.main.id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
The following arguments are supported: | ||
|
||
* **name** - (Required) The name of the register. | ||
|
||
## Attributes Reference | ||
In addition to all argument, the folloing attributes are exported: | ||
|
||
* **registry_id** - The id of the register within harbor. | ||
|
||
* **status** - The health status of the external container register | ||
|
||
* **endpoint_url** - The url endpoint for the external container register | ||
|
||
* **description** - The description of the external container register. | ||
|
||
* **insecure** - If the certificate of the external container register can be verified. | ||
|
||
* **type** - The type of the provider type. |