Change API code for CustomResponseHeaders
@@ -43,6 +43,7 @@ type BackendConfigSpec struct {
ConnectionDraining *ConnectionDrainingConfig `json:"connectionDraining,omitempty"`
SessionAffinity *SessionAffinityConfig `json:"sessionAffinity,omitempty"`
CustomRequestHeaders *CustomRequestHeadersConfig `json:"customRequestHeaders,omitempty"`
+ CustomResponseHeaders *CustomResponseHeadersConfig `json:"customResponseHeaders,omitempty"`
HealthCheck *HealthCheckConfig `json:"healthCheck,omitempty"`
// Logging specifies the configuration for access logs.
Logging *LogConfig `json:"logging,omitempty"`
@@ -197,6 +198,12 @@ type CustomRequestHeadersConfig struct {
Headers []string `json:"headers,omitempty"`
}
+// CustomResponseHeadersConfig contains configuration for custom response headers
+// +k8s:openapi-gen=true
+type CustomResponseHeadersConfig struct {
+ Headers []string `json:"headers,omitempty"`
+}
+
// HealthCheckConfig contains configuration for the health check.
// +k8s:openapi-gen=true
type HealthCheckConfig struct {
