Coder Social home page Coder Social logo

notificationplugin's Introduction

CI Latest Kork Latest Echo

NotificationAgent Extension Point

Spinnaker allows users to configure notifications regarding the state of their deployment workflows. This is one of Spinnaker’s key features. You can ask, for example, to be notified via email or Slack about the failure of an individual stage or the success of a pipeline.

In the past, adding a new notification type required changes to Spinnaker’s open source repositories. This could be challenging or even impossible. Each new notification type required handcrafted UI code; organizations that wanted to send notifications via custom or internal services had few options.

With the NotificationAgent extension point, you can add new notification types to Spinnaker without touching its core codebase.

The NotificationAgent interface is a new Spinnaker extension point. The interface and the changes it relies on will not be available until Spinnaker 1.22.0 has been released. If you want to install a plugin that uses the NotificationAgent extension point, you can use master-latest-unvalidated, Spinnaker's nightly build.

You can develop a NotificationAgent-based plugin using [email protected] or later.

HTTP Notification Plugin

This repo contains an example HTTP notification plugin for developers to modify and extend. It's not meant for production use.

Configuration

To install and configure the HTTP notification plugin you'll need to include this snippet in your Spinnaker config:

spinnaker:
  extensibility:
    plugins:
      Armory.NotificationAgent:
        enabled: true
        extensions:
          armory.httpNotificationService:
            enabled: true
            config:
              url: <fill-me-in>
    repositories:
      examplePluginRepository:
        url: https://raw.githubusercontent.com/spinnaker-plugin-examples/examplePluginRepository/master/repositories.json

This snippet needs to be accessible by Echo. Your exact path for configuring this plugin depends on the Spinnaker configuration tool you're using (Halyard, the operator, Kleat, etc.). Please see the plugin installation guides on spinnaker.io.

Known bugs

The NotificationAgent interface handles most pipeline notifications. However, it does not handle notifications configured in Manual Judgment stages.

Future work

Echo passes Spinnaker events to NotificationAgent#sendNotifications. Plugin developers are responsible for mapping these events into messages understandable by their target notification system (and end-users!).

There are lots of notification event types (pipeline.failed, stage.succeeded, etc.), and they aren't well typed.

Ideally this repo would include a test harness that tested each event type such that developers could easily validate their plugin.

notificationplugin's People

Contributors

actions-user avatar danielpeach avatar dependabot[bot] avatar

Watchers

 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.