Giter Club home page Giter Club logo

kube-trigger's Issues

make kind name "KubeTriggerConfig" to be "TriggerService"

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.

Add api group to clusterrole's first rule in config/manager

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:

  1. Follow the Quick Start guide.
  2. Apply all the files in config/crd, config/definition, and config/manager respectively.
  3. 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

  • kube-trigger version: 1.0.0 (kube-trigger addon)

Cluster information

  • Minikube version: v1.30.1
  • Kuberentes version: v1.24.13
  • Kubevela version: v1.8.1

Additional context
I enabled the kube-trigger addon after installing kubevela .

support collecting event of pods in vela application

  1. vela ql can get the pods from application, with resource topology featrues.
  2. kube-trigger could watch and filter events from pods.
  3. kube-trigger could send the event to loki/clickhouse or other storage for log.
  4. o11y addon can read that events.
  5. we can also add vector addon for transform logs.

Real scenario: kubevela/kubevela#1365

User experience enhancements

  • Start a default TriggerInstance once controller is deployed, named default (optionally this feature can be disabled)
  • TriggerService without selectors automatically uses the default instance
  • change label app: xxx to instance: xxx

[Question] Execute kubectl command / create k8s resource

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!

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.