Comments (1)
New customization hooks are available (documented in README):
--prerender-hook
: function to modify the HTML template context, e.g. to add arbitrary links. Example usage (built-in):--prerender-hook=kube_resource_report.example_hooks.prerender
.--map-node-hook
: function to map Kubernetes Node objects and enrich them (e.g. with custom pricing). Example usage (built-in):--map-node-hook=kube_resource_report.example_hooks.map_node
.--map-pod-hook
: function to map Kubernetes Pod objects and enrich them (e.g. applying a custom logic to set theapplication
). Example usage (built-in):--map-pod-hooks=kube_resource_report.example_hooks.map_pod
.
The hooks are Python functions which you need to define in a module (e.g. hooks.py
). The module can either be added to the Dockerfile or mounted as a volume.
Reference the functions via {module-name}.{function-name}
, e.g. --map-pod-hook=hooks.map_pod
if you defined the map_pod
function in hooks.py
.
See provided example hooks: https://github.com/hjacobs/kube-resource-report/blob/master/kube_resource_report/example_hooks.py
from kube-resource-report.
Related Issues (20)
- Failed to query cluster
- Support RouteGroup HOT 2
- missing dependencies for GCP suppor for pykube
- Question: alternative classification of pods HOT 1
- GKE preemptible nodes not identified HOT 2
- Sorting by column broken after 20.3.1 HOT 3
- return "" for ingress apiVersion HOT 2
- Permission Denied in nginx container HOT 3
- current gcp data does not work with parser
- add kustomize; and/or move one of the deployment/configmap out of deploy HOT 4
- Take initContainers into account
- Provide more insights on resource recommendations and histogram data
- Log level as option
- Team label issue HOT 6
- Support multiple clusters using k8s configuration files HOT 2
- price list for GCP json data is outdated? HOT 1
- Optimize pod columns on node page HOT 1
- Deprecated k8s API HOT 8
- can we use another Currency Unit HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-resource-report.