Coder Social home page Coder Social logo

payu / k8s-s3-operator Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 2.0 52.76 MB

Kubernetes operator which will dynamically or statically provision AWS S3 Bucket storage and access.

License: MIT License

Dockerfile 1.58% Makefile 9.06% Starlark 1.32% Go 78.02% Shell 2.75% JavaScript 7.28%

k8s-s3-operator's People

Contributors

nivr4 avatar shaimoria avatar shyimo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

k8s-s3-operator's Issues

Add support for adding new service account to auth service

In order to support security requirements, we need to make sure that when we create new service account we add this new service account that match to app and gives permission to bucket ,to the auth service (admission control)
Supported flows:

Create a new service account , authentication against the auth server, send post request with modify body define by configMap that will add the new service account to the auth serve

Build local setup environment & define the CRD API

In order to ensure a quick development life cycle, we need to build a proper local setup that must include the following:

The second part should be defined the right api for the s3 bucker CRD. The api should be as payU domain:
apiVersion: payu.com/v1

Add support for service account for pod application

In order to support security requirements, we need to make sure that only the specific pod application can reach he's bucket and no other application. in order to do that we need to create/update the pod service account and attache it to the IAM role.

Supported flows:

  1. Create a new service account for the application pod and attache it to the desired IAM role
  2. Expand an existing service account and attache it to the desired IAM role.

Add bucket creation logic

  • Add encryption option for bucket (optional, default is false)
  • Create bucket if crd if not exists
  • Update bucket props if changed
  • Delete bucket (from aws) when s3-bucker crd is deleted

Add Ci for testing

add ci workflow using github action,
the workflow will upload local env on the runner and run system and integration tests

Borken deploy local environment scripts

When running

sh ./hack/scripts/runLocalEnv.sh

sh can't Interrupt the IMG & NAMESPACE variables because of spaces. need to use the sh script without spaces

Add system tests

Add system tests for happy flows:

  1. Create bucket
  2. put bucket data
  3. fetch bucket data
  4. delete bucket
  5. update bucket

Update the README on how to run system tests locally

Add support for reflecting bucket status

today status k8s bucket resource create even if the bucket didnt created at amazon.
future status - k8s bucket resource will reflect the status of the bucket in amazon

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.