common

package
v0.0.0-...-9be0976 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BaseServiceStoreageNamespace User/Role/Department data store namespace
	BaseServiceStoreageNamespace = "kube-system"
	// NamespaceLabelForDepartment  eg: fuxi.kubernetes.io/department: dxp
	NamespaceLabelForDepartment = "fuxi.kubernetes.io/department"

	// NamespaceLabelForDepartment  eg: fuxi.kubernetes.io/namespce: dxp
	// the dxp is user allow access namespaces
	DeployResourceLabelForNamespace = "fuxi.kubernetes.io/namespce"
	DepartmentBindingSecret         = "fuxi.kubernetes.io/departments"
)

fuxi label

View Source
const (
	// NamespaceAnnotationForNodeResource
	// eg: nuwa.kubernetes.io/default_resource_limit: '[{"zone":"A","rack":"W-01","host":"node1"},{"zone":"A","rack":"W-02","host":"node2"}]'
	// the identified by the operation and maintenance, and the release resources are limited to these areas
	NamespaceAnnotationForNodeResource = nuwav1.NuwaLimitFlag

	// NamespaceAnnotationForNodeResource
	// eg: nuwa.kubernetes.io/default_storage_limit: '["a","b","c"]'
	NamespaceAnnotationForStorageClass = "fuxi.kubernetes.io/default_storage_limit"
	// eg: k8s.v1.cni.cncf.io/namespaces: macvlan-class
	NamespaceAnnotationForNetworkAttach = "k8s.v1.cni.cncf.io/namespaces"
)

nuwa annotations

View Source
const (
	HttpRequestUserHeaderKey = `x-auth-username`
	MicroSaltUserHeader      = `go.micro.gateway.login`
)
View Source
const (
	Major        = "0.1"
	Minor        = "0.1"
	ConfigPrefix = "/go/micro"
)
View Source
const (
	WorkloadsDeployTemplateNamespace = "fuxi"
)

Variables

View Source
var DeployInCluster bool = false

Functions

func Version

func Version(appVer string) string

Types

type ConfigServer

type ConfigServer struct {
	source.Source
}

func NewConfigServer

func NewConfigServer(address string, prefix string) *ConfigServer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL