Giter VIP home page Giter VIP logo

addon-contrib's Introduction

Addon-Contrib

This repository hosts a collection of Open Cluster Management (OCM) addons for staging and testing Proof of Concept (PoC) purposes.

Overview

OCM is a project that provides a unified way to manage multiple Kubernetes clusters. This repository is intended for the development, staging, and testing of various OCM addons.

Addons in this repository are designed to extend the capabilities of the OCM deployment, allowing for enhanced AI integration, IoT layer, cluster proxy, telemetry, resource usage collection and more.

Repository Structure

The repository is organized into directories, each containing the source code and configuration files for a specific addon.

addon-contrib's People

Contributors

aii-nozomu-oki avatar haoqing0110 avatar mikeshng avatar nitishchauhan0022 avatar qiujian16 avatar skeeey avatar z1ens avatar zhujian7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

addon-contrib's Issues

resource-usage-collect-addon: CPU millicores are rounded to integers

Value() returns the unscaled value of q rounded up to the nearest integer away from 0.
https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity.Value

Here is the code to understand this behavior:

package main

import (
	"fmt"

	v1 "k8s.io/api/core/v1"
	"k8s.io/apimachinery/pkg/api/resource"
)

func main() {
	requests := v1.ResourceList{
		v1.ResourceCPU: resource.MustParse("100m"),
	}
	// prints 1
	fmt.Println(requests.Cpu().Value())
}

This is causing incorrect cpuUsage to be reported in my environment.

I propose using AsApproximateFloat64.
https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity.AsApproximateFloat64

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.