Giter VIP home page Giter VIP logo

oc-plugins's Introduction

oc-plugins

Travis CI container-oc Build

A collection of plugins for the OKD / Kubernetes CLI client.

  1. cleanup: Clean up excessive (stale) resources

Usage

oc plugin <plugin-name> --help

cleanup

Cleanup removes stale image stream tags that are tagged with a commit SHA of a specific repository (e.g. when you automatically tag built images with the related Git commit hash). Due to a bug you have to explicitly specify the local Git repository with an absolute path.

oc plugin cleanup my-image -p /path/to/git-repository/

Example: (using Docker)

$ docker run --rm -it -v $(pwd):/app appuio/oc:v3.9 oc plugin cleanup --help
Clean up excessive (stale) image tags, images and related resources.

Usage:
  oc plugin cleanup [options]

Examples:
  oc plugin cleanup IMAGE --git-repo-path $PWD

Options:
  -f, --force='n': don't ask for confirmation to delete image tags (use: y)
  -l, --git-commit-limit='100': only look at the first <n> commits to compare with tags
  -p, --git-repo-path='': absolute path to Git repository (for current dir use: $PWD)
  -k, --keep='10': keep most current <n> images

Use "oc options" for a list of global command-line options (applies to all commands).

Installation

See Installing Plug-ins in the official documentation.

Prerequisites

The image or infrastructure using this plugin collection must meet the following requirements for the commands to work.

cleanup

  1. Bash v4+
  2. Git

Development

# configure plugins path for development
export KUBECTL_PLUGINS_PATH=$(pwd)

# list all plugins, print usage
oc plugin

oc-plugins's People

Contributors

anothertobi avatar bittner avatar ccremer avatar srueg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ffacp

oc-plugins's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.