Fix variable/output sort check
This commit is contained in:
@@ -61,19 +61,19 @@ module "binauthz" {
|
||||
|
||||
| name | description | type | required | default |
|
||||
|---|---|:---:|:---:|:---:|
|
||||
| [project_id](variables.tf#L17) | Project ID. | <code>string</code> | ✓ | |
|
||||
| [admission_whitelist_patterns](variables.tf#L28) | An image name pattern to allowlist | <code>list(string)</code> | | <code>null</code> |
|
||||
| [attestors_config](variables.tf#L58) | Attestors configuration | <code title="map(object({ note_reference = string iam = map(list(string)) pgp_public_keys = list(string) pkix_public_keys = list(object({ id = string public_key_pem = string signature_algorithm = string })) }))">map(object({…}))</code> | | <code>null</code> |
|
||||
| [cluster_admission_rules](variables.tf#L48) | Admission rules | <code title="map(object({ evaluation_mode = string enforcement_mode = string attestors = list(string) }))">map(object({…}))</code> | | <code>null</code> |
|
||||
| [default_admission_rule](variables.tf#L34) | Default admission rule | <code title="object({ evaluation_mode = string enforcement_mode = string attestors = list(string) })">object({…})</code> | | <code title="{ evaluation_mode = "ALWAYS_ALLOW" enforcement_mode = "ENFORCED_BLOCK_AND_AUDIT_LOG" attestors = null }">{…}</code> |
|
||||
| [global_policy_evaluation_mode](variables.tf#L22) | Global policy evaluation mode. | <code>string</code> | | <code>null</code> |
|
||||
| [project_id](variables.tf#L68) | Project ID. | <code>string</code> | ✓ | |
|
||||
| [admission_whitelist_patterns](variables.tf#L17) | An image name pattern to allowlist | <code>list(string)</code> | | <code>null</code> |
|
||||
| [attestors_config](variables.tf#L23) | Attestors configuration | <code title="map(object({ note_reference = string iam = map(list(string)) pgp_public_keys = list(string) pkix_public_keys = list(object({ id = string public_key_pem = string signature_algorithm = string })) }))">map(object({…}))</code> | | <code>null</code> |
|
||||
| [cluster_admission_rules](variables.tf#L38) | Admission rules | <code title="map(object({ evaluation_mode = string enforcement_mode = string attestors = list(string) }))">map(object({…}))</code> | | <code>null</code> |
|
||||
| [default_admission_rule](variables.tf#L48) | Default admission rule | <code title="object({ evaluation_mode = string enforcement_mode = string attestors = list(string) })">object({…})</code> | | <code title="{ evaluation_mode = "ALWAYS_ALLOW" enforcement_mode = "ENFORCED_BLOCK_AND_AUDIT_LOG" attestors = null }">{…}</code> |
|
||||
| [global_policy_evaluation_mode](variables.tf#L62) | Global policy evaluation mode. | <code>string</code> | | <code>null</code> |
|
||||
|
||||
## Outputs
|
||||
|
||||
| name | description | sensitive |
|
||||
|---|---|:---:|
|
||||
| [attestors](outputs.tf#L22) | Attestors. | |
|
||||
| [id](outputs.tf#L17) | Binary Authorization policy ID | |
|
||||
| [attestors](outputs.tf#L17) | Attestors. | |
|
||||
| [id](outputs.tf#L25) | Binary Authorization policy ID | |
|
||||
| [notes](outputs.tf#L30) | Notes. | |
|
||||
|
||||
<!-- END TFDOC -->
|
||||
|
||||
@@ -14,11 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
output "id" {
|
||||
description = "Binary Authorization policy ID"
|
||||
value = google_binary_authorization_policy.policy.id
|
||||
}
|
||||
|
||||
output "attestors" {
|
||||
description = "Attestors."
|
||||
value = google_binary_authorization_attestor.attestors
|
||||
@@ -27,6 +22,11 @@ output "attestors" {
|
||||
]
|
||||
}
|
||||
|
||||
output "id" {
|
||||
description = "Binary Authorization policy ID"
|
||||
value = google_binary_authorization_policy.policy.id
|
||||
}
|
||||
|
||||
output "notes" {
|
||||
description = "Notes."
|
||||
value = google_container_analysis_note.notes
|
||||
|
||||
@@ -14,47 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
variable "project_id" {
|
||||
description = "Project ID."
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "global_policy_evaluation_mode" {
|
||||
description = "Global policy evaluation mode."
|
||||
type = string
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "admission_whitelist_patterns" {
|
||||
description = "An image name pattern to allowlist"
|
||||
type = list(string)
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "default_admission_rule" {
|
||||
description = "Default admission rule"
|
||||
type = object({
|
||||
evaluation_mode = string
|
||||
enforcement_mode = string
|
||||
attestors = list(string)
|
||||
})
|
||||
default = {
|
||||
evaluation_mode = "ALWAYS_ALLOW"
|
||||
enforcement_mode = "ENFORCED_BLOCK_AND_AUDIT_LOG"
|
||||
attestors = null
|
||||
}
|
||||
}
|
||||
|
||||
variable "cluster_admission_rules" {
|
||||
description = "Admission rules"
|
||||
type = map(object({
|
||||
evaluation_mode = string
|
||||
enforcement_mode = string
|
||||
attestors = list(string)
|
||||
}))
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "attestors_config" {
|
||||
description = "Attestors configuration"
|
||||
type = map(object({
|
||||
@@ -69,3 +34,38 @@ variable "attestors_config" {
|
||||
}))
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "cluster_admission_rules" {
|
||||
description = "Admission rules"
|
||||
type = map(object({
|
||||
evaluation_mode = string
|
||||
enforcement_mode = string
|
||||
attestors = list(string)
|
||||
}))
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "default_admission_rule" {
|
||||
description = "Default admission rule"
|
||||
type = object({
|
||||
evaluation_mode = string
|
||||
enforcement_mode = string
|
||||
attestors = list(string)
|
||||
})
|
||||
default = {
|
||||
evaluation_mode = "ALWAYS_ALLOW"
|
||||
enforcement_mode = "ENFORCED_BLOCK_AND_AUDIT_LOG"
|
||||
attestors = null
|
||||
}
|
||||
}
|
||||
|
||||
variable "global_policy_evaluation_mode" {
|
||||
description = "Global policy evaluation mode."
|
||||
type = string
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "project_id" {
|
||||
description = "Project ID."
|
||||
type = string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user