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 ¶
Types ¶
type ConfigServer ¶
func NewConfigServer ¶
func NewConfigServer(address string, prefix string) *ConfigServer
Click to show internal directories.
Click to hide internal directories.