forked from GoogleCloudPlatform/cloud-foundation-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: sort the variables in the same order from input variables.tf fi…
…le. (GoogleCloudPlatform#2591) Co-authored-by: Zheng Qin <[email protected]> Co-authored-by: Andrew Peabody <[email protected]> Co-authored-by: Bharath KKB <[email protected]>
- Loading branch information
1 parent
0214cb2
commit aa020c1
Showing
7 changed files
with
364 additions
and
131 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 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,37 @@ | ||
/** | ||
* Copyright 2022 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
// This file was automatically generated from a template in ./autogen/main | ||
|
||
output "cluster_id" { | ||
description = "Cluster ID" | ||
} | ||
|
||
output "endpoint" { | ||
sensitive = true | ||
description = "Cluster endpoint" | ||
value = local.cluster_endpoint | ||
depends_on = [ | ||
/* Nominally, the endpoint is populated as soon as it is known to Terraform. | ||
* However, the cluster may not be in a usable state yet. Therefore any | ||
* resources dependent on the cluster being up will fail to deploy. With | ||
* this explicit dependency, dependent resources can wait for the cluster | ||
* to be up. | ||
*/ | ||
google_container_cluster.primary, | ||
google_container_node_pool.pools, | ||
] | ||
} |
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,34 @@ | ||
/** | ||
* Copyright 2022 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
// This file was automatically generated from a template in ./autogen/main | ||
|
||
variable "" { // Empty variable name | ||
description = "The project ID to host the cluster in" | ||
required = false | ||
} | ||
|
||
variable "description" { | ||
description = "The description of the cluster" | ||
type = string | ||
default = "some description" | ||
} | ||
|
||
variable "regional" { | ||
type = bool | ||
description = "Whether is a regional cluster" | ||
default = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Copyright 2022 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
// This file was automatically generated from a template in ./autogen/main | ||
|
||
output "cluster_id" { | ||
description = "Cluster ID" | ||
} | ||
|
||
output "endpoint" { | ||
sensitive = true | ||
description = "Cluster endpoint" | ||
value = local.cluster_endpoint | ||
depends_on = [ | ||
/* Nominally, the endpoint is populated as soon as it is known to Terraform. | ||
* However, the cluster may not be in a usable state yet. Therefore any | ||
* resources dependent on the cluster being up will fail to deploy. With | ||
* this explicit dependency, dependent resources can wait for the cluster | ||
* to be up. | ||
*/ | ||
google_container_cluster.primary, | ||
google_container_node_pool.pools, | ||
] | ||
} |
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,34 @@ | ||
/** | ||
* Copyright 2022 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
// This file was automatically generated from a template in ./autogen/main | ||
|
||
variable { // No variable name | ||
description = "The project ID to host the cluster in" | ||
required = false | ||
} | ||
|
||
variable "description" { | ||
description = "The description of the cluster" | ||
type = string | ||
default = "some description" | ||
} | ||
|
||
variable "regional" { | ||
type = bool | ||
description = "Whether is a regional cluster" | ||
default = true | ||
} |