pipeline-validator

command module
v0.0.0-...-c36f998 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 4 Imported by: 0

README

Concourse Secrets Validator

Concourse is awesome. However validating whether a pipeline and its vars are complete is sub-awesome.

Pipeline vars can be surrounded with either brackets or curly braces. If a curly-braces var is missing from the vars file then fly set-pipeline will throw an error:

could not resolve old-style template vars: 1 error occurred:

* unbound variable in template: 'FooBar'

However if a var surrounded by brackets is undeclared then it'll just set the pipeline with the raw (bracketed) value.

There may be times when this behaviour is what you want, but most often I want to know that my vars are missing. Checking the set-pipeline output manually is difficult for complex pipelines.

This tool validates a pipeline definition against a set of vars files and will output:

  • Any vars present in the pipeline but not declared in the vars files
  • Any extra vars present in the vars files but unused in the pipeline

Usage

To download:

go get -u github.com/rcw5/pipeline-validator

To run

   pipeline-validator - Validate a Concourse pipeline and its vars

USAGE:
   pipeline-validator [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --pipeline value, -p value        Pipeline definition
   --load-vars-from value, -l value  Vars (secrets) file to load
   --help, -h                        show help
   --version, -v                     print the version

Example:

pipeline-validator --pipeline pipeline.yml --load-vars-from vars1.yml --load-vars-from vars2.yml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL