Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM provider #627

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

ARM provider #627

wants to merge 25 commits into from

Conversation

Haishi2016
Copy link
Contributor

No description provided.

}

if config.ClientID != "" && config.ClientSecret != "" && config.TenantID != "" {
cred, err := azidentity.NewClientSecretCredential(config.TenantID, config.ClientID, config.ClientSecret, nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we expect the users to input the plain secret in target spec? Should we use $secret to refer the plain text secret?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This would be typically from a $secret reference.

Copy link
Contributor

Choose a reason for hiding this comment

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

But we won't parse expression in target config? Will we do that? @iwangjintian

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think when the host loads the api config it parses the configuration expressions (so that we don't have to parse at lower levels)

if err != nil {
return ret, err
}
err = r.analyzeDeployment(ctx, deploymentName, deploymentProp)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please explain how can we implement Get method for arm deployment? Seems we will validate whether new component change will bring new changes or not. Per my understanding, the return component spec reflects current arm resources status, can we get these statuses?

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems whatif check with return error if the new component spec makes changes, but we just return ret(which stores all unchanged component), is this enough for solution-manager to judge the current state?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Basically, we do a what-if analysis to see if ANYTHING needs to be done. If nothing needs to be done, we can return the original spec. Otherwise we'll error out to indicate some changes are needed. We don't know about what changes to make. We just know some changes are needed.

@@ -180,7 +188,11 @@ <h1 class="mb-3">404</h1>
<div class="col-md-3 col-sm-6 mb-5">
<a class="d-block h3 mb-3" href="http://localhost:1313/symphony/">

Copy link
Contributor

Choose a reason for hiding this comment

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

These doc files have conflicts. Seems these are not related to this PR, can you please revert it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note landing/public should be a submodule. I've restored it to be a submodule in this PR. Not sure how it was lost.

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.

2 participants