kustomize-lint

command module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

kustomize-lint

This tool helps you to validate tag in ci Please post issues if you need more options

In this kind of architecture below, you have to check whether yamls in production directory has sentences related to staging or development by code review. If you use this lint, ci exit with code 1 when production or staging has mistaken sentences.

├── user
│   ├── base
│   │   ├── deployment.yaml
│   │   ├── kustomization.yaml
│   │   └── service.yaml
│   └── overlays
│       ├── development
│       │   ├── deployment.yaml
│       │   ├── kustomization.yaml
│       │   ├── service.yaml
│       ├── production
│       │   ├── deployment.yaml
│       │   ├── kustomization.yaml
│       │   ├── service.yaml
│       └── staging
│           ├── deployment.yaml
│           ├── kustomization.yaml
│           ├── service.yaml

note

functions

  • if newTag section in production/kustomization.yaml is productionXX or latest
  • if newTag section in staging/kustomization.yaml is stagingXX or latest

usage

  1. go get -u github.com/0daryo/kustomize-lint
  2. write kustomize-lint.yaml following the rule in example.
  3. run kustomize-lint run with a directory where target yamls are.

Documentation

Overview

Copyright © 2019 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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