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

Skaffold API docs #3068

Merged
merged 9 commits into from
Nov 1, 2019
Merged

Conversation

tejal29
Copy link
Contributor

@tejal29 tejal29 commented Oct 16, 2019

Relates to #3023

Should merge after : #3065, #3067

Description

Organizing event api docs.

User facing changes

yes

Before

After

Next PRs.
n/a

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Mentions any output changes.
  • Adds documentation as needed: user docs, YAML reference, CLI reference.
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit test added.
  • User facing changes look good.

Release Notes

@tejal29 tejal29 added the docs-modifications runs the docs preview service on the given PR label Oct 16, 2019
@container-tools-bot
Copy link

Please visit http://35.236.0.111:1313 to view changes to the docs.

@container-tools-bot container-tools-bot removed the docs-modifications runs the docs preview service on the given PR label Oct 16, 2019
@tejal29 tejal29 closed this Oct 16, 2019
@tejal29 tejal29 deleted the events_api_docs branch October 16, 2019 18:38
@tejal29 tejal29 restored the events_api_docs branch October 16, 2019 18:39
@tejal29 tejal29 reopened this Oct 16, 2019
@tejal29 tejal29 marked this pull request as ready for review October 16, 2019 18:40
@tejal29 tejal29 changed the title draft pages for Events API docs Skaffold API docs Oct 16, 2019
@codecov
Copy link

codecov bot commented Oct 16, 2019

Codecov Report

Merging #3068 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted Files Coverage Δ
pkg/skaffold/docker/remote.go 12.96% <0%> (-1.04%) ⬇️
cmd/skaffold/app/cmd/credits_dummy.go 0% <0%> (ø)
...ck/tools/vendor/github.com/rakyll/statik/statik.go 100% <0%> (ø)
cmd/skaffold/app/cmd/credits.go 100% <0%> (ø)
cmd/skaffold/app/cmd/cmd.go 67.18% <0%> (+0.25%) ⬆️

Copy link
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together! Left some suggestions (mostly wording)

@balopat balopat added docs-modifications runs the docs preview service on the given PR needs-rebase labels Oct 17, 2019
@container-tools-bot
Copy link

Error creating deployment, please see controller logs for details.

@container-tools-bot container-tools-bot removed the docs-modifications runs the docs preview service on the given PR label Oct 17, 2019
@container-tools-bot
Copy link

Please visit http://35.236.87.39:1313 to view changes to the docs.

@container-tools-bot
Copy link

Error creating deployment, please see controller logs for details.

Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

Added some more notes.
I would recommend the following renames for the titles:

background info -- same as you have it

## Connecting to the Skaffold API 
### HTTP server
... try it out ... 

describe the HTTP port setting 

### gRPC server
... 

## API structure 

### Event stream 

### Retrieve State 

### Controlling Build/Sync/Deploy 

Added proto description and code snippets
@tejal29 tejal29 added docs-modifications runs the docs preview service on the given PR and removed needs-rebase labels Oct 31, 2019
@container-tools-bot
Copy link

Please visit http://34.94.43.151:1313 to view changes to the docs.

@container-tools-bot container-tools-bot removed the docs-modifications runs the docs preview service on the given PR label Oct 31, 2019

To retrieve information of the Skaffold pipeline, the Skaffold API provides two main functionalities:

* A [streaming event log]({{< relref "/docs/concepts/api#events-api">}}) created from the different phases in a pipeline run and
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* A [streaming event log]({{< relref "/docs/concepts/api#events-api">}}) created from the different phases in a pipeline run and
* A [streaming event log]({{< relref "/docs/concepts/api#events-api">}}) created from the different phases in a pipeline run, and

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is usually no comma before and right?

Copy link
Contributor

Choose a reason for hiding this comment

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

in this case since these are numbered items in a list, i think there should be one there. its nitpicky though

* A snapshot of the [overall state]({{< relref "/docs/concepts/api#state-api" >}}) of the pipeline at any given time during the run.

To control the individual phases of the Skaffold, the Skaffold API provides [fine grained control over]({{< relref "/docs/concepts/api#controlling-build-sync-deploy" >}})
the individual phases of the pipeline (build, deploy and sync).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
the individual phases of the pipeline (build, deploy and sync).
the individual phases of the pipeline (sync, build, and deploy).

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 will keep this as build, deploy and sync.

@balopat balopat dismissed dgageot’s stale review November 1, 2019 20:52

comments addressed

@balopat balopat merged commit 78e4b4a into GoogleContainerTools:master Nov 1, 2019
@tejal29 tejal29 deleted the events_api_docs branch April 15, 2021 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants