Giter VIP home page Giter VIP logo

provider-pizza's Introduction

๐Ÿ• provider-pizza

I was disappointed to learn Crossplane doesn't support my favorite flavor of the cloud - pizza. So I had to build a Domino's Pizza provider to make the cloud-native community's universal cloud API complete.

Requirements

  • Crossplane v0.14+
  • Crossplane CLI v0.14+

Usage

First, we need to configure the provider:

kubectl apply -f examples/provider/pizza-config.yaml

To create an order:

kubectl apply -f examples/order/order.yaml

Which should show you something like:

NAME            ORDER STATUS   PRICE   STORE ADDRESS                                 MANAGER   AGE
example-order   Bad            3.29    2320 B North 45th Street Seattle, WA 98103    Sarah     2m48s

Demo gif

Limitations

Credit card payments aren't yet working. I'll be adding support soon. You'll store credit card details as a K8s secret and specify Type: CreditCard in the secret. See examples/secret-example.yaml for details.

Developing

Run against a Kubernetes cluster:

make run

Install latest into Kubernetes cluster where Crossplane is installed:

make install

Install local build into Kind cluster where Crossplane is installed:

make install-local

Build, push, and install:

make all

Build image:

make image

Push image:

make push

Build binary:

make build

Credit

Having never written Go before, and being very unfamiliar with Kubernetes controllers, I had a ton of inspiration from https://github.com/rudoi/cruster-api. This provider is basically just a wrapper around https://github.com/rudoi/pizza-go.

provider-pizza's People

Contributors

grantgumina avatar

Stargazers

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

Watchers

 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.