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

refactor: update variable configuration for consistency #48

Merged
merged 2 commits into from
Dec 7, 2020

Conversation

jbrockopp
Copy link
Contributor

The first part of this PR is modifying the environment variables and file path arguments we support for the plugin.

The idea is to introduce one consistent standard that all plugins should be able to support 👍

For environment variables, this pattern will be:

  • PARAMETER_<parameter_name>
  • <plugin_name>_<parameter_name>

Using the ref parameter for this plugin as an example:

  • PARAMETER_REF
  • GIT_REF

For file path arguments, this pattern will be:

  • /vela/parameters/<plugin_name>/<parameter_name>
  • /vela/secrets/<plugin_name>/<parameter_name>

Using the ref parameter again for this plugin as an example:

  • /vela/parameters/git/ref
  • /vela/secrets/git/ref

The second part of this PR is modifying the DOCS.md file in the root of the repository to more accurately reflect what we have provided on our external doc site:

https://go-vela.github.io/docs/plugins/pipeline/registry/git/

You'll also notice that I added the supported environment variables to those docs for all the parameters we support 👍

@jbrockopp jbrockopp added the enhancement Indicates an improvement to a feature label Dec 7, 2020
@jbrockopp jbrockopp requested a review from a team as a code owner December 7, 2020 13:46
@jbrockopp jbrockopp self-assigned this Dec 7, 2020
@codecov
Copy link

codecov bot commented Dec 7, 2020

Codecov Report

Merging #48 (977d3ec) into master (687ff02) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #48   +/-   ##
=======================================
  Coverage   45.48%   45.48%           
=======================================
  Files           6        6           
  Lines         266      266           
=======================================
  Hits          121      121           
  Misses        135      135           
  Partials       10       10           
Impacted Files Coverage Δ
cmd/vela-git/main.go 0.00% <0.00%> (ø)

Copy link

@kneal kneal left a comment

Choose a reason for hiding this comment

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

LGTM 🐬

Copy link
Contributor

@KellyMerrick KellyMerrick left a comment

Choose a reason for hiding this comment

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

lgtm

@jbrockopp jbrockopp merged commit 9b0f92f into master Dec 7, 2020
@jbrockopp jbrockopp deleted the refactor/variable/configuration branch December 7, 2020 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates an improvement to a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants