Coder Social home page Coder Social logo

ibolton336 / cpma Goto Github PK

View Code? Open in Web Editor NEW

This project forked from migtools/cpma

0.0 3.0 0.0 269 KB

Control Plane Migration Assistance: Intended to help migration cluster configuration of a OCP 3.x cluster to OCP 4.x

License: Apache License 2.0

Makefile 1.46% Go 98.54%

cpma's Introduction

cpma Build Status Maintainability

Control Plane Migration Assistance: Intended to help migration cluster configuration of a OCP 3.x cluster to OCP 4.x

Build

Tested on go 1.12.4

This project is Go Modules for managing dependencies. This means it can be cloned and compiled outside of GOPATH.

$ git checkout https://github.com/fusor/cpma.git
$ cd cpma
$ make
$ ./bin/cpma

Usage

Flags:

--config string           config file (default is $HOME/.cpma.yaml)
--debug                   show debug output
-h, --help                help for cpma
-o, --output-dir string   set the directory to store extracted configuration.

You can find example config in examples/

Example:

$ ./bin/cpma --config /path/to/config/.yml --debug

IO

The data file structure looks like the following tree structure example. The cluster endpoints subfolders contain the configuration files retrieved and to process. The manifests directory contains the generated CRDs.

data
├── manifests
├── master-0.example.com
|   └── etc
|       └── origin
|           ├── master
|               ├── htpasswd
|               └── master-config.yaml
└── node-1.example.com
    └── etc
        └── origin
            └── node
                └── node-config.yaml

The configuration files are retrieved from local disk (outputDir/<Hostname>/), If a file is not available it's retrieved from <Hostname> and stored on local disk.

To trigger a total or partial network file fetch, remove any prior data from <Hostname> sub directory.

Unit tests

In order to add new unit test bundle create *_test.go file in package you want to test(ex: foo.go, foo_test.go). To execute tests run make test.

https://golang.org/pkg/testing/

cpma's People

Contributors

arapov avatar danil-grigorev avatar gildub avatar jmontleon avatar jmrodri avatar jwmatthews avatar

Watchers

 avatar  avatar  avatar

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.