Giter Club home page Giter Club logo

kpt-functions's Introduction

kpt-functions

My own kpt-functions, developed for the Nephio R3 Observability POC.

Getting started

Head over to the /smf-package to view the SMF Free5GC package. Then, run kpt eval to run the kpt package declarative pipeline, and observe the OpenTelemetry Operator annotations appearing in the Network Function yaml definition.

Running the functions

Use kpt fn eval ./testdata/test1/resources.yaml --image marcinziolkowski/orange-otel-annotate:1.0.0 -- by-path='spec.**.containerPort' to run the kpt functions. The values to pass should be as follow: "First annotation" "Second annotation"

Or use kpt fn eval ./test-deploy/deploy.yaml --image gcr.io/kpt-fn/set-annotations:v0.1.4 -- instrumentation.opentelemetry.io/inject-go=true instrumentation.opentelemetry.io/otel-go-auto-target-exe=/free5gc/amf/amf to run the Google kpt function.

Or use kpt fn render to run the Kptfile pipeline.

Rebuilding docker images for functions

Use ./build-and-push-images.sh to re-build the images and push them to a registry of your choice.

Re-fetching Nephio packages

kpt packages for Nephio are fetched from Nephio catalog repo, via kpt pkg get https://github.com/nephio-project/catalog/workloads/free5gc/pkg-example-amf-bp@main

kpt-functions's People

Contributors

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