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

Added workflow client to connect to tink. Boots issue #35 #200

Merged
merged 2 commits into from
Jul 6, 2020

Conversation

Cbkhare
Copy link
Contributor

@Cbkhare Cbkhare commented Jul 1, 2020

Description

Added method which interfaces a client to work with workflows in tink.

Why is this needed

Boots needs to connect to tink to get details for the workflow.

Testing completed.

Cross tested cli with PR tinkerbell/smee@96bb35d

@Cbkhare Cbkhare added kind/feature Categorizes issue or PR as related to a new feature. fix-required labels Jul 1, 2020
@Cbkhare Cbkhare self-assigned this Jul 1, 2020
@Cbkhare Cbkhare added this to In Progress in Issues List via automation Jul 1, 2020
@Cbkhare Cbkhare marked this pull request as ready for review July 2, 2020 13:17
@Cbkhare
Copy link
Contributor Author

Cbkhare commented Jul 2, 2020

Testing completed with tinkerbell/smee@96bb35d

Moving PR for review.

Copy link
Contributor

@gauravgahlot gauravgahlot left a comment

Choose a reason for hiding this comment

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

LGTM

@gauravgahlot gauravgahlot added the ready-to-merge Signal to Mergify to merge the PR. label Jul 6, 2020
@Cbkhare
Copy link
Contributor Author

Cbkhare commented Jul 6, 2020

couple of changes, during this Fix were identified related to naming of some methods,

since those methods were not part of the workflow, separate issue is created #206 .

@gauravgahlot gauravgahlot merged commit f1617bd into tinkerbell:master Jul 6, 2020
Issues List automation moved this from In Progress to Just shipped Jul 6, 2020
mergify bot added a commit to tinkerbell/smee that referenced this pull request Jul 17, 2020
## Details 
No pxe boot is to be supported if there are no active workflow for a worker/hardware. 

## Changes
Added endpoint to fetch active workflow for a hardware
Added logic to translate hardware id to active worker id
Added logic to stop pxe boot if not active workflow is present. 

## Testing
Tested with client added via tinkerbell/tink#200. 

happy path testing completed. 

`{"level":"info","ts":1593695857.2480636,"caller":"job/job.go:55","msg":"found active workflow for hardware 0eba0bf8-3772-4b4a-ab9f-6ebe93b90a94 with workflow id d0f730bc-894d-42de-8c37-9e423f5c761d","service":"github.com/tinkerbell/boots","pkg":"http","dhcp":"0eba0bf8-3772-4b4a-ab9f-6ebe93b90a94"}`

Need to do testing with new tink after the merge of above mentioned PR. 

Negative testing pending.
@mmlb mmlb removed the ready-to-merge Signal to Mergify to merge the PR. label Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
No open projects
Issues List
  
Just shipped
Development

Successfully merging this pull request may close these issues.

None yet

3 participants