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

feat: mgmt plane release tool update #16238

Merged
merged 4 commits into from
Nov 25, 2021
Merged

Conversation

tadelesh
Copy link
Member

@tadelesh tadelesh commented Nov 22, 2021

  • The purpose of this PR is explained in this or a referenced issue.
  • The PR does not update generated files.
  • Tests are included and/or updated for code changes.
  • Updates to CHANGELOG.md are included.
  • MIT license headers are included in each file.
  1. change second generate cmd to version replacement for update release
  2. refine changelog file content set based on new changelog format
  3. add refresh-v2 cmd for convenience
  4. add package config support for muliti-package rp onboard

@tadelesh tadelesh requested review from benbp and a team as code owners November 22, 2021 14:58
Copy link
Member

@ArcturusZhang ArcturusZhang left a comment

Choose a reason for hiding this comment

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

Some minor comments

}

log.Printf("Release generation for rp: %s, namespace: %s", c.rpName, c.namespaceName)
generateCtx := common.GenerateContext{
SDKPath: sdkRepo.Root(),
SDKRepo: &sdkRepo,
SDKPath: (*sdkRepo).Root(),
Copy link
Member

Choose a reason for hiding this comment

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

Why we have to dereference this variable? this looks weird

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed.

commitIDRegex = regexp.MustCompile("^[0-9a-f]{40}$")
)

func GetSDKRepo(sdkRepoParam, sdkRepoURL string) (*repo.SDKRepository, error) {
Copy link
Member

Choose a reason for hiding this comment

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

If I did not remember wrong, repo.SDKRepository is an interface, therefore we did not need to return pointer here

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed.

@tadelesh tadelesh changed the title mgmt plane release tool update feat: mgmt plane release tool update Nov 24, 2021
@@ -9,4 +9,5 @@ require:
- https://github.com/Azure/azure-rest-api-specs/blob/{{commitID}}/specification/{{rpName}}/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
module-version: 0.1.0
{{packageConfig}}
Copy link
Member

Choose a reason for hiding this comment

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

What does this mean?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have added a config param to release-v2 for multi-package RP's onboard which can be used to add config like package-singleservers: true. Also, package config will be extracted from swagger config yaml annotation for SDK automation onboard.

@tadelesh tadelesh merged commit 25a06d4 into Azure:main Nov 25, 2021
@tadelesh tadelesh deleted the generator_fix branch December 20, 2021 05:47
jhendrixMSFT pushed a commit to jhendrixMSFT/azure-sdk-for-go that referenced this pull request Jan 12, 2022
* feat: change second generate cmd to version replacement, refine changelog file content set based on new changelog format

* feat: add refresh-v2 cmd

* fix: add package config support for muliti-package rp onboard
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