kubebb / core

A declarative component lifecycle management platform
https://kubebb.github.io/website
Apache License 2.0
8 stars 9 forks source link

add displayName in component #300

Closed bjwswang closed 1 year ago

bjwswang commented 1 year ago

To support 中文名称,we can add a annotation in Chart.yaml like

apiVersion: v2
name: core
annotations:
  core.kubebb.k8s.com.cn/displayname: "内核"
description: Kubebb Core provides core implementations on Component Lifecycle Management.Our design and development follows operator pattern which extends kubernetes APIs.
type: application
version: v0.1.12
appVersion: v0.1.4
icon: https://avatars.githubusercontent.com/u/85277200
keywords:
  - repository
  - helm
  - lifecycle-management
sources:
  - https://github.com/kubebb/core
maintainers:
  - name: bjwswang
    url: https://github.com/bjwswang
  - name: Abirdcfly
    url: https://github.com/Abirdcfly
  - name: 0xff-dev
    url: https://github.com/0xff-dev

When repository controller sync the components, we extract the annotation to component.

bjwswang commented 1 year ago

When pushed a new version with different displayname in annotation,we keep the latest one