Skip to content

Output resources in azure.yaml after app init#4

Merged
saragluna merged 1 commit into
azure-javaee:feature/sjadfrom
saragluna:xiada/output-azureyaml-from-appinit
Nov 5, 2024
Merged

Output resources in azure.yaml after app init#4
saragluna merged 1 commit into
azure-javaee:feature/sjadfrom
saragluna:xiada/output-azureyaml-from-appinit

Conversation

@saragluna

Copy link
Copy Markdown

This PR will output the resources detected from app init to azure.yaml.

err := marshalRawProps(raw.Props.(MySQLProps))
if err != nil {
return nil, err
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is it necessary to add other resource type like: ResourceTypeDbRedis, ResourceTypeDbPostgres, ResourceTypeDbMong?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could you please add unit test for MarshalYAML and UnmarshalYAML?

if err := unmarshalProps(&mp); err != nil {
return err
}
raw.Props = mp

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same here: Is it necessary to add other resource type like: ResourceTypeDbRedis, ResourceTypeDbPostgres, ResourceTypeDbMong?

err := marshalRawProps(raw.Props.(MySQLProps))
if err != nil {
return nil, err
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could you please add unit test for MarshalYAML and UnmarshalYAML?

haoozhang pushed a commit to haoozhang/azure-dev that referenced this pull request Oct 30, 2024
Use passwordless to connect to PostgreSQL in Azure Container Apps
@saragluna saragluna merged commit 41331c0 into azure-javaee:feature/sjad Nov 5, 2024
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.

3 participants