Code Monkey home page Code Monkey logo

namespace-operator's People

Contributors

jefedavis avatar scottd018 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

namespace-operator's Issues

Finish RBAC Deployment from TanzuNamespace

Currently, RBAC deployment is in place, however, there is not a sane manner in which RBAC is assigned. To do such a thing would require significant elevated privileges for the namespace-operator.

  1. Is there a better way to do this, and to restrict the ability for the namespace-operator to elevate its privileges?

  2. Need to implement agreed upon solution

Add proper unit tests

Add proper unit tests to the Go code. Currently, we are not unit testing anything.

Add ability to inject an ImagePullSecret in a namespace

This would allow the ability to inject a secret for the purposes of allowing workloads within a namespace/tenant to pull images from a private repository without having to manually copy the secret into said namespace.

Error when namespace exists

We shouldn't error out on an existing namespace. Instead, we should:

  1. Skip namespace creation or update if the ownerref does not match the expected value

-OR-

  1. Continue with appropriate updates when the ownerref does match the expected value
2021-02-03T22:10:44.098Z        ERROR   controller-runtime.controller   Reconciler error        {"controller": "tanzunamespace", "request": "/namespace-30", "error": "namespaces \"namespace-30\" already exists"}
github.com/go-logr/zapr.(*zapLogger).Error
        /Users/sdustin/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /Users/sdustin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:258
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /Users/sdustin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:232
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
        /Users/sdustin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:211
k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1
        /Users/sdustin/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:152
k8s.io/apimachinery/pkg/util/wait.JitterUntil
        /Users/sdustin/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:153
k8s.io/apimachinery/pkg/util/wait.Until
        /Users/sdustin/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:88

v1alpha2 API Version

Currently, the v1alpha1 API version (flat structure) is mixed together with nested structures. Users should be able to use v1alpha1 (flat) or the new version (nested) via independent API versions.

NOTE: currently working in the current state. Is it actually time for a new API version?

CI/CD with Github Actions

For now, simply building, spinning up a KIND cluster, and testing against said KIND cluster would be sufficient.

Update CRD to include kubectl explain

Update the custom resource definition for a TanzuNamespace to include all requirements to allow users to kubectl explain tanzunamespace.* the resource.

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.