mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Removing ConfigMap as suggestion for IngressClass parameters
As this is a a local object reference from a global object, referencing a ConfigMap would not be possible. Controller specific custom resources are a much better fit here, allowing for better validation.
This commit is contained in:
parent
55bb72b774
commit
a68d712f12
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
@ -11883,7 +11883,7 @@
|
||||
},
|
||||
"parameters": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference",
|
||||
"description": "Parameters is a link to a resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. Example configuration resources include `core.ConfigMap` or a controller specific Custom Resource."
|
||||
"description": "Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
@ -297,10 +297,9 @@ type IngressClassSpec struct {
|
||||
// "acme.io/ingress-controller". This field is immutable.
|
||||
Controller string
|
||||
|
||||
// Parameters is a link to a resource containing additional configuration
|
||||
// for the controller. This is optional if the controller does not require
|
||||
// extra parameters. Example configuration resources include
|
||||
// `core.ConfigMap` or a controller specific Custom Resource.
|
||||
// Parameters is a link to a custom resource containing additional
|
||||
// configuration for the controller. This is optional if the controller does
|
||||
// not require extra parameters.
|
||||
// +optional
|
||||
Parameters *api.TypedLocalObjectReference
|
||||
}
|
||||
|
@ -148,10 +148,9 @@ message IngressClassSpec {
|
||||
// "acme.io/ingress-controller". This field is immutable.
|
||||
optional string controller = 1;
|
||||
|
||||
// Parameters is a link to a resource containing additional configuration
|
||||
// for the controller. This is optional if the controller does not require
|
||||
// extra parameters. Example configuration resources include
|
||||
// `core.ConfigMap` or a controller specific Custom Resource.
|
||||
// Parameters is a link to a custom resource containing additional
|
||||
// configuration for the controller. This is optional if the controller does
|
||||
// not require extra parameters.
|
||||
// +optional
|
||||
optional k8s.io.api.core.v1.TypedLocalObjectReference parameters = 2;
|
||||
}
|
||||
|
@ -298,10 +298,9 @@ type IngressClassSpec struct {
|
||||
// "acme.io/ingress-controller". This field is immutable.
|
||||
Controller string `json:"controller,omitempty" protobuf:"bytes,1,opt,name=controller"`
|
||||
|
||||
// Parameters is a link to a resource containing additional configuration
|
||||
// for the controller. This is optional if the controller does not require
|
||||
// extra parameters. Example configuration resources include
|
||||
// `core.ConfigMap` or a controller specific Custom Resource.
|
||||
// Parameters is a link to a custom resource containing additional
|
||||
// configuration for the controller. This is optional if the controller does
|
||||
// not require extra parameters.
|
||||
// +optional
|
||||
Parameters *v1.TypedLocalObjectReference `json:"parameters,omitempty" protobuf:"bytes,2,opt,name=parameters"`
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ func (IngressClassList) SwaggerDoc() map[string]string {
|
||||
var map_IngressClassSpec = map[string]string{
|
||||
"": "IngressClassSpec provides information about the class of an Ingress.",
|
||||
"controller": "Controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.",
|
||||
"parameters": "Parameters is a link to a resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. Example configuration resources include `core.ConfigMap` or a controller specific Custom Resource.",
|
||||
"parameters": "Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.",
|
||||
}
|
||||
|
||||
func (IngressClassSpec) SwaggerDoc() map[string]string {
|
||||
|
Loading…
Reference in New Issue
Block a user