Skip to content

Commit

Permalink
add type to type_ingress.go & make update
Browse files Browse the repository at this point in the history
Signed-off-by: xiayu.lyt <xiayu.lyt@alibaba-inc.com>
  • Loading branch information
Lyt99 committed Sep 7, 2021
1 parent 6774fb2 commit e57b88c
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 23 deletions.
20 changes: 16 additions & 4 deletions config/v1/0000_10_config-operator_01_infrastructure.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,22 +179,34 @@ spec:
type: object
properties:
region:
description: region specifics the Alibaba Cloud region where the cluster in.
description: region specifies the region for Alibaba Cloud resources created for the cluster.
type: string
resourceGroupID:
description: resourceGroupID is the ID of the resource group for the cluster.
type: string
resourceTags:
description: resourceTags is a list of additional tags to apply to Alibaba Cloud resources created for the cluster.
type: array
maxItems: 20
items:
description: AlibabaCloudResourceTag is the set of tags to add to apply to resources
description: AlibabaCloudResourceTag is the set of tags to add to apply to resources.
type: object
required:
- Key
- Value
properties:
key:
Key:
description: key is the key of the tag.
type: string
value:
maxLength: 128
minLength: 1
pattern: ^(?!aliyun)(?!acs:)(?!(.*https://.*))(?!(.*http://.*)).*$
Value:
description: value is the value of the tag.
type: string
maxLength: 128
minLength: 1
pattern: ^(?!aliyun)(?!acs:)(?!(.*https://.*))(?!(.*http://.*)).*$
aws:
description: AWS contains settings specific to the Amazon Web Services infrastructure provider.
type: object
Expand Down
6 changes: 4 additions & 2 deletions config/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@ spec:
description: "endpointPublishingStrategy is used to publish the ingress
controller endpoints to other networks, enable load balancer integrations,
etc. \n If unset, the default is based on infrastructure.config.openshift.io/cluster
.status.platform: \n AWS: LoadBalancerService (with External
scope) Azure: LoadBalancerService (with External scope) GCP:
\ LoadBalancerService (with External scope) IBMCloud: LoadBalancerService
(with External scope) Libvirt: HostNetwork \n Any other platform
.status.platform: \n AWS: LoadBalancerService (with External
scope) Azure: LoadBalancerService (with External scope)
\ GCP: LoadBalancerService (with External scope) IBMCloud:
\ LoadBalancerService (with External scope) AlibabaCloud: LoadBalancerService
(with External scope) Libvirt: HostNetwork \n Any other platform
types (including None) default to HostNetwork. \n endpointPublishingStrategy
cannot be updated."
properties:
Expand Down
26 changes: 14 additions & 12 deletions operator/v1/types_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ type IngressControllerSpec struct {
// If unset, the default is based on
// infrastructure.config.openshift.io/cluster .status.platform:
//
// AWS: LoadBalancerService (with External scope)
// Azure: LoadBalancerService (with External scope)
// GCP: LoadBalancerService (with External scope)
// IBMCloud: LoadBalancerService (with External scope)
// Libvirt: HostNetwork
// AWS: LoadBalancerService (with External scope)
// Azure: LoadBalancerService (with External scope)
// GCP: LoadBalancerService (with External scope)
// IBMCloud: LoadBalancerService (with External scope)
// AlibabaCloud: LoadBalancerService (with External scope)
// Libvirt: HostNetwork
//
// Any other platform types (including None) default to HostNetwork.
//
Expand Down Expand Up @@ -356,13 +357,14 @@ type ProviderLoadBalancerParameters struct {
type LoadBalancerProviderType string

const (
AWSLoadBalancerProvider LoadBalancerProviderType = "AWS"
AzureLoadBalancerProvider LoadBalancerProviderType = "Azure"
GCPLoadBalancerProvider LoadBalancerProviderType = "GCP"
OpenStackLoadBalancerProvider LoadBalancerProviderType = "OpenStack"
VSphereLoadBalancerProvider LoadBalancerProviderType = "VSphere"
IBMLoadBalancerProvider LoadBalancerProviderType = "IBM"
BareMetalLoadBalancerProvider LoadBalancerProviderType = "BareMetal"
AWSLoadBalancerProvider LoadBalancerProviderType = "AWS"
AzureLoadBalancerProvider LoadBalancerProviderType = "Azure"
GCPLoadBalancerProvider LoadBalancerProviderType = "GCP"
OpenStackLoadBalancerProvider LoadBalancerProviderType = "OpenStack"
VSphereLoadBalancerProvider LoadBalancerProviderType = "VSphere"
IBMLoadBalancerProvider LoadBalancerProviderType = "IBM"
BareMetalLoadBalancerProvider LoadBalancerProviderType = "BareMetal"
AlibabaCloudLoadBalancerProvider LoadBalancerProviderType = "AlibabaCloud"
)

// AWSLoadBalancerParameters provides configuration settings that are
Expand Down
2 changes: 1 addition & 1 deletion operator/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e57b88c

Please sign in to comment.