Skip to content

Conversation

@anshukaira
Copy link
Member

Created a standalone workflow sub module for Cloud Workflows, as the root required workflow_trigger, which essentially created either pub/sub or cloud scheduler job resources as well. The simple workflows aims to create standalone workflow as per now.

PR includes

  • Simple_workflows modules
  • Simple_workflow examples
  • Metadata display YAML file
  • Added validations for the required inputs

@anshukaira anshukaira requested review from a team and anaik91 as code owners October 16, 2025 07:31
@anshukaira
Copy link
Member Author

@bharathkkb @anaik91 @q2w

Requesting to review this PR.

@anshukaira anshukaira changed the title chore : Adding Sub-module for Standalone Workflow for ADC chore: Adding Sub-module for Standalone Workflow for ADC Oct 17, 2025
@anshukaira anshukaira changed the title chore: Adding Sub-module for Standalone Workflow for ADC chore: Adding Submodule for Standalone Workflow for ADC Oct 17, 2025
@anshukaira anshukaira force-pushed the simple-workflow branch 3 times, most recently from a56480a to 3b177bf Compare October 17, 2025 05:29
- Added Submodule for Standalone workflow
- Added Validations and metadata.display.yaml file for making submodule ADC compliant
- Added relevant examples and test
@anshukaira
Copy link
Member Author

/gcbrun

type = string
}

variable "workflow_description" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be marked as level 1 as it doesn't seem an advanced field.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

variable "workflow_description" {
description = "Description for the cloud workflow"
type = string
default = "Sample workflow Description"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the default value to null.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 49 to 59
variable "service_account_email" {
description = "Service account email. Unused if service account is auto-created."
type = string
default = null
}

variable "service_account_create" {
description = "Auto-create service account."
type = bool
default = false
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think one of this at least should be a level1 field.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed service account create option itself, we will be using the SA component in ADC itself

workflow_name = "standalone-workflow"
region = "us-central1"
service_account_email = module.service_account.email
service_account_create = true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test/example should be renamed to something like with_service_account_auto_create and we should add more test to cover other scenarios related to service_account input.
Tests can be added later also.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as we have removed autocreate SA logic, this will be not required

dir: /modules/simple-workflow
ui:
input:
variables:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if we want to mark any optional input as level 1 if we want to show it along the required values in the ADC UI.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added optional input as level1

@anshukaira anshukaira force-pushed the simple-workflow branch 2 times, most recently from ceaa610 to e14c5fe Compare October 29, 2025 15:28
Copy link
Collaborator

@anaik91 anaik91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

* limitations under the License.
*/

terraform {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can omit this for examples

Comment on lines 27 to 30
output "project_id" {
description = "Google Cloud project in which the workflow is deployed"
value = var.project_id
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is for use in test, lets use GetTFSetupStringOutput("project_id") to retrieve it rather than redirecting inputs as outputs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is for use in test, lets use GetTFSetupStringOutput("project_id") to retrieve it rather than redirecting inputs as outputs

updated to use GetTFSetupStringOutput

@bharathkkb bharathkkb changed the title chore: Adding Submodule for Standalone Workflow for ADC feat: Adding Submodule for Standalone Workflow for ADC Nov 3, 2025
@anshukaira anshukaira force-pushed the simple-workflow branch 5 times, most recently from 249f4c3 to 798148c Compare November 4, 2025 18:47
@anshukaira
Copy link
Member Author

/gcbrun

@anshukaira
Copy link
Member Author

/gcbrun

@anshukaira anshukaira force-pushed the simple-workflow branch 2 times, most recently from 981ee1e to d4e1f27 Compare November 6, 2025 13:20
@anshukaira anshukaira force-pushed the simple-workflow branch 10 times, most recently from 82cff5a to 07bd36a Compare November 10, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants