mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
Default set ingress class as higress and enable ingress status. (#155)
This commit is contained in:
@@ -88,12 +88,20 @@ type RegistryOptions struct {
|
||||
}
|
||||
|
||||
type ServerArgs struct {
|
||||
Debug bool
|
||||
MeshId string
|
||||
RegionId string
|
||||
NativeIstio bool
|
||||
HttpAddress string
|
||||
GrpcAddress string
|
||||
Debug bool
|
||||
MeshId string
|
||||
RegionId string
|
||||
NativeIstio bool
|
||||
HttpAddress string
|
||||
GrpcAddress string
|
||||
|
||||
// IngressClass filters which ingress resources the higress controller watches.
|
||||
// The default ingress class is higress.
|
||||
// There are some special cases for special ingress class.
|
||||
// 1. When the ingress class is set as nginx, the higress controller will watch ingress
|
||||
// resources with the nginx ingress class or without any ingress class.
|
||||
// 2. When the ingress class is set empty, the higress controller will watch all ingress
|
||||
// resources in the k8s cluster.
|
||||
IngressClass string
|
||||
EnableStatus bool
|
||||
WatchNamespace string
|
||||
|
||||
17
pkg/config/constants/constants.go
Normal file
17
pkg/config/constants/constants.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright (c) 2022 Alibaba Group Holding Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package constants
|
||||
|
||||
const DefaultIngressClass = "higress"
|
||||
Reference in New Issue
Block a user