Giter Club home page Giter Club logo

Comments (4)

tadayosi avatar tadayosi commented on May 28, 2024

@phantomjinx I found that there is online.consoleLink option in hawtconfig.json for hawtio-operator, which is not present in hawtio/react. Do you know if it's used in hawtio-online? If it's not dead code but isn't utilised in hawtio-online, it might be something we miss.

// The configuration for the OpenShift Web console link.
// A link is added to the application menu when the Hawtio deployment is equal to 'cluster'.
// Otherwise, a link is added to the Hawtio project dashboard.
ConsoleLink HawtioConsoleLink `json:"consoleLink,omitempty"`
}
// The configuration for the OpenShift Web console link
type HawtioConsoleLink struct {
// The text display for the link
Text string `json:"text,omitempty"`
// The section of the application menu in which the link should appear.
//It is only applicable when the Hawtio deployment type is equal to 'cluster'.
// +optional
Section string `json:"section,omitempty"`
// The path, relative to the Hawtio status URL, for the icon used in front of the link in the application menu.
// It is only applicable when the Hawtio deployment type is equal to 'cluster'.
// The image should be square and will be shown at 24x24 pixels.
// +optional
ImageRelativePath string `json:"imageRelativePath,omitempty"`
}

from hawtio-operator.

tadayosi avatar tadayosi commented on May 28, 2024

OK, I learned hard that the HawtioConfig type here doesn't necessarily reflect the type definition provided by @hawtio/react. HawtioConfig generally only needs type definitions for what the operater uses. Ultimately, what is really needed is the online.consoleLink for the operator, and the rest (even About and Branding) are not really needed here.
(@phantomjinx That answers my own question above. It's ok that we don't observe the usages of online.consoleLink anywhere else, since hawtio-operator is where the option is consumed.)

That concludes this task of syncing the definitions between @hawtio/react and hawtio-operator is not needed.

from hawtio-operator.

tadayosi avatar tadayosi commented on May 28, 2024

In addition, the recent changes I added to hawtconfig.json at @hawtio/react hawtio/hawtio-next#646 uses union type boolean | string[]. JS/TS is fine to handle union types but Go isn't. That makes it really hard to encode the type definitions in the operator, so ultimately we should avoid using union types.

But for now, I don't think the operator will use the newly added option jmx.workspace, and it really shouldn't as the operator should be agnostic to the configurations of specific Hawtio plugins, even if it's as basic as JMX.

from hawtio-operator.

tadayosi avatar tadayosi commented on May 28, 2024

I'm closing it as 'Wont Do'.

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.