Coder Social home page Coder Social logo

suse / registries-operator Goto Github PK

View Code? Open in Web Editor NEW
12.0 16.0 8.0 160 KB

A Kubernetes operator for images registries

License: Apache License 2.0

Dockerfile 1.02% Makefile 8.63% Shell 4.60% Go 85.75%
kubernetes operator registries docker containers images

registries-operator's Introduction

alpha CircleCI Go Report Card Build Status Master branch

Registry operator:

Description

A Docker registries operator for Kubernetes, developed inside the Kubic project.

features:

  • Automatic installation of registries certificates based on some CRDs.

Quick start

  • load the operator with

    kubectl apply -f https://raw.githubusercontent.com/kubic-project/registries-operator/master/deployments/registries-operator-full.yaml
    
  • once the operator is running, store the certificate for your registry in a Secret with:

    kubectl create secret generic suse-ca-crt --from-file=ca.crt=/etc/pki/trust/anchors/SUSE_CaaSP_CA.crt -n kube-system
    

    where /etc/pki/trust/anchors/SUSE_CaaSP_CA.crt is the certificate and suse-ca-crt is the Secret.

  • create a Registry object like this:

    # registry.yaml
    apiVersion: "kubic.opensuse.org/v1beta1"
    kind: Registry
    metadata:
      name: suse-registry
      namespace: kube-system
    spec:
      hostPort: "registry.suse.de:5000"
      # secret with the ca.crt used for pulling images from this registry
      certificate:
        name: suse-ca-crt
        namespace: kube-system

    then you can load it with kubectl apply -f registry.yaml.

  • once this is done, the suse-ca-crt should automatically appear in all the machines in your cluster, and all the Docker daemons in your cluster will be able to pull from that registry automatically.

Devel

Extra

registries-operator's People

Contributors

ereslibre avatar inercia avatar mallozup avatar maximilianmeister avatar mjura avatar nirmoy avatar u5surf avatar

Stargazers

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

Watchers

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

registries-operator's Issues

Building Docker image from Dockerfile fails

Running a docker build -t <label> . form the project's root directory generates the following error:

make: *** No rule to make target 'deps'. Stop.
make: Leaving directory '/go/src/github.com/kubic-project/registries-operator'
The command '/bin/sh -c make -C $BUILD_DIR clean deps' returned a non-zero code: 2

The offending command in the Dockerfile is RUN make -C $BUILD_DIR clean deps

fix golint and make golint fail to circleci

Description:

  • Fix current golint issues we have. See log here

  • Make golint fail in circleci if there an offences ( at moment make check will always succeed)

>>> Reformatting code
pkg/apis/kubic/v1beta1/register.go
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/cmd/registries-operator/main.go:1:1: package comment should not have leading space
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/cmd/registries-operator/main.go:42:1: comment on exported var Version should be of the form "Version ..."
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/cmd/registries-operator/main.go:44:5: exported var Build should have comment or be unexported
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/pkg/apis/kubic/v1beta1/registry_types.go:49:1: comment on exported type RegistryCertificateStatus should be of the form "RegistryCertificateStatus ..." (with optional leading article)
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/pkg/apis/kubic/v1beta1/registry_types.go:76:1: comment on exported method Registry.GetCertificateSecret should be of the form "GetCertificateSecret ..."
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/pkg/apis/kubic/v1beta1/registry_types.go:91:1: receiver name r should be consistent with previous receiver name registry for Registry
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/pkg/config/globals.go:21:2: comment on exported var DefaultPrefix should be of the form "DefaultPrefix ..."
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/pkg/config/globals.go:24:2: comment on exported var DefaultDeployNumReplicas should be of the form "DefaultDeployNumReplicas ..."
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/pkg/test/util.go:1:1: package comment should be of the form "Package test ..."
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/pkg/test/util.go:1:1: package comment should not have leading space
/home/dmaiocchi/go/src/github.com/kubic-project/registries-operator/pkg/util/strings.go:26:6: func SafeId should be SafeID

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.