Giter VIP home page Giter VIP logo

smoketest-operator's Introduction

SMOKETEST OPERATOR

Running the app

kubectl apply -f smoketest.yaml -n default
➜ kubectl tree smoketest.katapult.org carvel-test -n default                                                                                                   
NAMESPACE  NAME                                      READY  REASON  AGE
default    SmokeTest/carvel-test                     -              6s
default    └─Job/job-smoke-test-carvel-test          -              6s
default      └─Pod/job-smoke-test-carvel-test-7mz2h  True           6s
➜ kubectl get smoketest.katapult.org carvel-test -n default                                                                                                    
NAME          ATTEMPTS   STATUS   STARTTIME   COMPLETIONTIME   MESSAGE                              READY
carvel-test   1          Ready    40s         27s              'https://carvel.dev/' is available   True

Install the operator

Repository install with Internet connectivity

First, let's add a new repository:

tanzu package repository add smoketest-operator-repo --url ghcr.io/bmoussaud/smoketest-operator-repo:latest -n tanzu-package-repo-global 

Wait a few minutes until the repository gets reconciled. Use this command to get reconciliation status:

tanzu package repository list -n tanzu-package-repo-global
tanzu package repository get smoketest-operator-repo -n tanzu-package-repo-global

Package install

Check that this app is available as a package:

tanzu package available list smoketest-operator.bmoussaud.github.com -n tanzu-package-repo-global
- Retrieving package versions for smoketest-operator.bmoussaud.github.com...
  NAME                                     VERSION    RELEASED-AT
  smoketest-operator.bmoussaud.github.com  0.2.0-dev  2022-04-24 15:47:19 +0200 CEST

Keep the package version handy - you'll need it when it comes to package deployment.

Create file my-values.yaml:

#! Set target namespace.
NAMESPACE: smoketest-operator

Edit this file accordingly.

Deploy the package, using the version you have installed:

tanzu package install smoketest-operator --package-name smoketest-operator.bmoussaud.github.com --version 0.2.0-dev  -n tanzu-package-repo-global -f my-values.yaml

Check the status of the deployed package

tanzu package installed get smoketest-operator -n tanzu-package-repo-global

When the package install is done, note there's a new namespace accordingly to the my-values.yaml file

Package uninstall

tanzu package installed delete smoketest-operator -n tanzu-package-repo-global -y
tanzu package repository delete smoketest-operator-repo -n tanzu-package-repo-global -y

Resources

Links

https://github.com/gbaeke/kopf-example https://blog.baeke.info/2020/01/26/writing-a-kubernetes-operator-with-kopf/ https://kopf.readthedocs.io/ https://github.com/nolar/kopf

https://pykube.readthedocs.io/en/latest/index.html

VIDEO

https://www.youtube.com/watch?v=vkhTdaAtcRE

smoketest-operator's People

Contributors

bmoussaud avatar

Watchers

 avatar  avatar  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.