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(security): Add waitFor subcommand for security-bootstrapper #3101

Merged

Conversation

jim-wang-intel
Copy link
Contributor

@jim-wang-intel jim-wang-intel commented Jan 29, 2021

  • New subcommand waitFor is added and it replaces the functionality of the former dockerize
  • Add waitForInfo for the toml configuration (Timeout and RetryInterval)
  • Building related to dockerize in Dockerfile is removed

Fixes: #3100

Signed-off-by: Jim Wang yutsung.jim.wang@intel.com

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x ] Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/master/.github/Contributing.md.

What is the current behavior?

Currently we are using dockerize 3rd party lib to do the waiting for other services.

Issue Number: #3100

What is the new behavior?

Replacing the dockerize with internal implemented waitFor as part of security-bootstrapper subcommand.

Does this PR introduce a breaking change?

  • Yes
  • [x ] No

New Imports

  • Yes
  • [x ] No

Specific Instructions

Are there any specific instructions or things that should be known prior to reviewing?

Other information

After this merged, need to update the developer-script compose files to include newly added env var. overrides used in waitFor.
Update PR created: edgexfoundry/developer-scripts#399

New subcommand waitFor is added and it replaces the functionality of dockerize
Add waitForInfo for the toml configuration
Building of dockerize in Dockerfile is removed

Fixes: edgexfoundry#3100

Signed-off-by: Jim Wang <yutsung.jim.wang@intel.com>
@jim-wang-intel jim-wang-intel added enhancement New feature or request security-services 3-high priority denoting release-blocking issues ireland labels Jan 29, 2021
@jim-wang-intel jim-wang-intel added this to the Ireland milestone Jan 29, 2021
@jim-wang-intel jim-wang-intel self-assigned this Jan 29, 2021
Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

Nice job! Couple small things.

Address Lenny's PR feedback.

Signed-off-by: Jim Wang <yutsung.jim.wang@intel.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.5% 0.5% Duplication

Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

LGTM

@jim-wang-intel jim-wang-intel merged commit f32f419 into edgexfoundry:master Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3-high priority denoting release-blocking issues enhancement New feature or request ireland security-services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement alternative to [dockerize] 3rd party lib for security-bootstrapper
2 participants