Giter Club home page Giter Club logo

Comments (4)

mmuzikar avatar mmuzikar commented on September 27, 2024

ahh maybe I don't understand the setting correctly - is it like a filter for which labels and annotations from the Hawtio CR to propagate?

from hawtio-operator.

phantomjinx avatar phantomjinx commented on September 27, 2024

Looking at the code, I believe you can add Annotations and Labels to the Hawtio CR. By default, all of these will be propogated to the operand resources. The metadataPropagation filters the propogation by pattern matching. Not sure why this function is part of the operator as does not appear massively useful to me but maybe users require it??

from hawtio-operator.

tadayosi avatar tadayosi commented on September 27, 2024

yes it's requested by a user. if you dig into the code history you'll find the ticket number.

from hawtio-operator.

phantomjinx avatar phantomjinx commented on September 27, 2024

@mmuzikar

This is working correctly and functions by propogating labels / annotations that are added to the CR via the propogation filtering.

apiVersion: v1
items:
- apiVersion: hawt.io/v1
  kind: Hawtio
  metadata:
    annotations:
      awesome.com/env: dev
      awesome.com/param1: value1
      awesome.com/param2: value2
      noprop.com/noprop: nothing
    labels:
      env: dev
      param1: value1
      param2: value2
    name: hawtio-online
  spec:
    auth:
      clientCertCheckSchedule: '* */12 * * *'
      clientCertExpirationPeriod: 24
    config:
      metadataPropagation:
        annotations:
        - awesome.com/*
        labels:
        - env
        - param*
...

So the annotations and labels added to the metadata section of the CR above are propogated to the resources of the hawtio-online operand, with the exception of noprop.com/noprop which is not included in the metadataPropogation property.

from hawtio-operator.

Related Issues (20)

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.