Code Monkey home page Code Monkey logo

Comments (12)

marquiz avatar marquiz commented on May 24, 2024

A RFC implementation for the non-binary case is found here:
https://github.com/marquiz/node-feature-discovery/tree/feature/kconfig

from node-feature-discovery.

kad avatar kad commented on May 24, 2024

'm' in binary scenario should be treated same as 'y', as this functionality is available in the kernel.
I would suggest to represent it in two variants:

  • if 'y' or 'm' -> true, if 'n' -> false
  • for config options that are not toggle (yes/module/no), to have sanitation and then use value as is. E.g. we need to check that label's value is value acceptable by k8s API for node selection purposes (no spaces, does not have special characters etc. In k8s APIs it should be validator function for that).

from node-feature-discovery.

marquiz avatar marquiz commented on May 24, 2024

This would probably make sense (i.e. mark '=y' and '=m' as true and copy other values as is).

This would make it even possible to implement this in two phases:

  1. only support binary labels, check for '=y' and '=m', ignore other values
  2. support all kconfig flags

from node-feature-discovery.

marquiz avatar marquiz commented on May 24, 2024

PR #146 implements part 1., i.e. support for binary values

from node-feature-discovery.

marquiz avatar marquiz commented on May 24, 2024

An implementation of part 2., based on #146 found here:
https://github.com/marquiz/node-feature-discovery/tree/feature/kconfig-all

from node-feature-discovery.

marquiz avatar marquiz commented on May 24, 2024

[ I made a similar comment in #140 ]

I just started to think if it would be better to use dot (.) character instead of dash (-) in the label name to separate config option name from the label prefix?? I.e. something like

nfd-kernel-config.NO_HZ
nfd-kernel-config.NO_HZ_IDLE 

Any thoughts?

from node-feature-discovery.

marquiz avatar marquiz commented on May 24, 2024

Support for binary labels merged into master in #146

from node-feature-discovery.

fejta-bot avatar fejta-bot commented on May 24, 2024

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

from node-feature-discovery.

marquiz avatar marquiz commented on May 24, 2024

#197 is still open

/remove-lifecycle stale

from node-feature-discovery.

fejta-bot avatar fejta-bot commented on May 24, 2024

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

from node-feature-discovery.

fejta-bot avatar fejta-bot commented on May 24, 2024

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

from node-feature-discovery.

marquiz avatar marquiz commented on May 24, 2024

Closing this one-. #197 was merged already a while ago

from node-feature-discovery.

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.