Code Monkey home page Code Monkey logo

repo-operator's Introduction

repo-operator

repo-operator provides easy life cycle management of a package repository and it's associated objects.

repo-operator is an attempt to automate creation of package repository of particular type and manage through the namespace using it.

The operator watches for an object of particular type "Repository" in the namespaces and as soon as it finds it or observes changes to existing, it will reconcile to create required repositories based on specified field values.

๐Ÿธ NOTE : This Operator does not manage/Upgrade any artifact repository manager (like Artifactory..) but instead it manages/upgrades repository resources like package repositories, user permission etc.

๐Ÿ“ข Currently, repo-operator supports - Jfrog Artifactory which is widely used with-in industry as universal artifact repository manager.

What is an Operator?

Operators are software extensions to Kubernetes that make use of custom resources to manage applications and their components. Operators follow Kubernetes principles, notably the control loop. Read more about it here

Motivation

Almost all projects now-a-days uses an artifact repository manager to resolve application dependencies or store release artifacts/images. If also building and deploying their images on a managed kubernetes cluster then it is a good idea to keep those repositories somehow connected to the namespaces to keep track and manage everything at one place.

With this approach user can treat their repository as a kubernetes object in their namespace and make changes. This automation also removes man in the middle and helps to standardize. It also provides required wiring when images need to be pushed to external registry.

How it is built?

  • The boiler-plate code for this operator is generated through the kubebuilder framework.
  • It uses go modules.
  • It relies on artifactory rest api to create required objects.
  • The idea is to keep it generic so that it can support other repository managers like nexus, pulp etc going forward.

CustomResourceDefinitions

The Operator acts on the Repository custom resource definitions (CRDs): The Operator ensures all the time that repository of particular type exists in the Artifactory, it also allow you modify Permission object by add/remove user.

Getting started

๐Ÿ‘‰ Get started with repo-operator

Contributing

Please read more about "How to contribute"

repo-operator's People

Contributors

chetansha256 avatar ikke-t avatar msjostrom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

repo-operator's Issues

non-docker support - buildah and skopeo or just podman

Hi,

congrats and thanks for opening this operator for public! I took a quick look and would like to grab the honor of doing the very first request for enhancement (RFE).

I quickly took a look how you build the operator. I see this is still bound to Docker. I'd like to raise a use case:

"As a RHEL8 or OCP4 user, I want to be able to build the operator without Docker."

Neither systems won't utilise Docker any more, but have moved further to libpod components buildah, podman and skopeo (https://github.com/containers/libpod).

This would require small changes. The Makefile uses docker to do the build, as well as for the image push. There should be:

  1. check if system has libpod tools (podman) or docker
  2. put the tool names into variables. If using just podman, the existing arguments should be compatible.

Podman utilises the other libpod tools in background, so likely no reason to use buildah or skopeo directly. Only if one would want to drop the whole Dockerfile concept and go fully to buildah. For compatibility, probably better to not go that far at first.

Here is quick tutorial how to use podman: https://developers.redhat.com/blog/2019/02/21/podman-and-buildah-for-docker-users/

BR,
Ilkka Tengvall

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.