Releases: intuit/intuit-spring-cloud-config-validator
Releases · intuit/intuit-spring-cloud-config-validator
Bugfixes for validating config repos with nested directories
More Powerful YAML validation: Duplicate Keys
- Find duplicate keys in the yml files
- Validates all
- Updated Production Deployment Docs: README
- All the process to get new Docker Environment tested/deployed in DEV and PROD
Example
$ git push origin master
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 319 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote: validate_config_files.py: failed with exit status 1
remote: ##################################################
remote: ###### Spring Cloud Config Validator 1.1.0 #######
remote: ##################################################
remote: Processing commit=5b2e697fc94139bf8074808918a843d5a46f7e8e ref=refs/heads/master
remote: => Validating cb60bd394cd632e2c5bd4a1f35dc672d3310ef63..5b2e697fc94139bf8074808918a843d5a46f7e8e
remote: (x) File application-e2e.yml is invalid: [2:1: duplication of key "endpoints"
in mapping (key-duplicates), 9:1: duplication of key "endpoints" in mapping (key-duplicates)]
To github.intuit.com:services-configuration/spring-cloud-config-reference-service-config.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.intuit.com:services-configuration/spring-cloud-config-reference-service-config.git'
- Test data
$ cat application-e2e.yml
endpoints: "Narcello"
endpoints:
cors:
allowed-methods: "*"
allowed-origins: "https://devinternal.intuit.com,https://github.intuit.com,https://dev.intuit.com,http://localhost:3000"
exposed-headers: "*"
max-age: 0
endpoints: 12
Official Release: Production-ready version
Features
- Validates all major config files
.json
,.properties
,.yaml
,.yml
for the Config Server. - Validates in the Command-line during
git push
operations. - Validates while Saving commits in the UI.
- Validates while Merging Pull Requests in the UI.
Documentation
- We have created the Wiki page at https://github.com/intuit/intuit-spring-cloud-config-validator/wiki
Planned Features
- User-defined validation on:
- Key data type
- Value data range
- Value data regular expressions