question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for "addon" resources in syndesis-operator

See original GitHub issue

For integrating with external systems (e.g. Prometheus, Grafana) it would be very valuable when the Syndesis operator would install arbitrary resources stored in a directory within the operator image.

A sample workflow would look like this:

  • Within the Operator image, there is a directory /addons which can contain any possible Kubernetes resource in YAML foramt. This can also be also custom resources like a ServiceMonitor for the Prometheus Operator. The syndesis-operator build process should be modified to pick up those file from somewhere and put it into this directory.
  • When the syndesis-operator is running and someone deploys a Syndesis resource, after the operator has installed syndesis, it checks this directory and for every resource found in this directory:
    • Adds an ownerReference to the Syndesis resource
    • Adds a label/annotation indicating that it has been installed on behalf of the operator (e.g. syndesis.io/addon-resource)
    • Applies this resource to the current namespace

This ensures, that when the Syndesis resources are deleted, also the addon resources are deleted.

The Installation of an Operator would do the following steps;

  • The new operator gets started. During startup, and when it detects an upgrade situation (e.g. a Syndesis resource is already installed) it checks for all resources with a label `syndesis.io/addon-resource’ and then for each delete the resource.
  • When an existing installation needs to be updated, just install the addon resources from the new operator image after the update process has finished.

@jamesnetherton @alexkieling @lgarciaaco I hope this summarizes our discussion accurately.

@heiko-braun this feature is requested by Integreatly so that Syndesis could be monitored by an external, integreatly provided Prometheus instance. Is there a way that we can schedule this work into one of our next releases ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
astefanutticommented, Feb 15, 2019

I’ve rebased the PR on top of #4460.

@heiko-braun I’ve changed the activation behaviour so that the --addons option must be explicitly set for the addons to be applied.

0reactions
chirinocommented, Jul 26, 2019

https://github.com/syndesisio/syndesis/pull/6256 Sydnesis 1.7 now changes how these addons are activated. You have to update the CR like this:

apiVersion: "syndesis.io/v1alpha1"
kind: "Syndesis"
metadata:
  name: app
spec:
  addons:
    ops:
      enabled: "true"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 3. Changing the configuration of a Fuse Online ...
After you install Fuse Online on OpenShift Container Platform (OCP) on-site, you can change its configuration to enable/disable some features or change some ......
Read more >
Installation on plain Kubernetes fails · Issue #9468 - GitHub
I get this error: error: the server doesn't have a resource type "dc" . ... requires admin privileges syndesis-operator install cluster ...
Read more >
Syndesis CLI
The Syndesis application consists of a set of Docker images OpenShift resources descriptors for installing Syndesis. For development, minishift or CodeReady ...
Read more >
Syndesis Infrastructure Operator - Go Packages
Syndesis Operator State Diagram. A summary of the states: NotInstalled: Syndesis resources that cannot be installed (e.g. two resources on ...
Read more >
How To Fix Addons/Minesanity Not Working - YouTube
How To Fix Addons /Minesanity Not Working. 41K views 1 year ago. Spyderrock. Spyderrock. 49.2K subscribers. Join. Subscribe.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found