kubevela / kube-trigger Goto Github PK
View Code? Open in Web Editor NEWkube-trigger watches events and triggers actions in a programmable way.
License: Apache License 2.0
kube-trigger watches events and triggers actions in a programmable way.
License: Apache License 2.0
Let's refactor the schema to be:
triggers:
- k8s-resource-watcher:
apiVersion: v1
kind: ConfigMap
namespace: default
# Only watch update event.
events:
- update
filters:
# Filter the events above.
- cue-validator:
template: |
metadata: name: =~"this-will-trigger-update-.*"
actions:
- bump-application-revision:
namespace: default
labelSelectors:
my-label: my-value
It can be more convenient as trigger config.
Describe the bug
Getting the error
The ClusterRole "kube-trigger-manager-role" is invalid: rules[0].apiGroups: Required value: resource rules must supply at least one api group
when applying config/manager/role.yaml
file.
To Reproduce
Steps to reproduce the behavior:
config/crd
, config/definition
, and config/manager
respectively.kubectl apply -f
will throw the error when trying to apply role.yaml
.Expected behavior
Successful creation of ClusterRole
kube-trigger-manager-role
Kube Trigger Version
1.0.0
(kube-trigger addon)Cluster information
v1.30.1
v1.24.13
v1.8.1
Additional context
I enabled the kube-trigger
addon after installing kubevela
.
Real scenario: kubevela/kubevela#1365
Is your feature request related to a problem? Please describe.
Support more unit tests to make the test coverage to 60%
Describe the solution you'd like
Describe alternatives you've considered
Additional context
Is your feature request related to a problem? Please describe.
And please also add badges into README Including :
refer to the kubevela repo for details.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
app: xxx
to instance: xxx
There is the following task - need to create a kubernetes job (or triger it from a cronjob) or execute a kubectl command at a certain Kubernetes event.
I couldn't find such functionality (v0.1.1).
Please tell me if such functionality is available now or these are plans for the future.
Where can I view all possible "actions"?
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.