diff --git a/pkg/apis/backendconfig/v1/zz_generated.deepcopy.go b/pkg/apis/backendconfig/v1/zz_generated.deepcopy.go index e396b8c481..15fadf9577 100644 --- a/pkg/apis/backendconfig/v1/zz_generated.deepcopy.go +++ b/pkg/apis/backendconfig/v1/zz_generated.deepcopy.go @@ -124,6 +124,11 @@ func (in *BackendConfigSpec) DeepCopyInto(out *BackendConfigSpec) { *out = new(CustomRequestHeadersConfig) (*in).DeepCopyInto(*out) } + if in.CustomResponseHeaders != nil { + in, out := &in.CustomResponseHeaders, &out.CustomResponseHeaders + *out = new(CustomResponseHeadersConfig) + (*in).DeepCopyInto(*out) + } if in.HealthCheck != nil { in, out := &in.HealthCheck, &out.HealthCheck *out = new(HealthCheckConfig) @@ -336,6 +341,27 @@ func (in *CustomRequestHeadersConfig) DeepCopy() *CustomRequestHeadersConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CustomResponseHeadersConfig) DeepCopyInto(out *CustomResponseHeadersConfig) { + *out = *in + if in.Headers != nil { + in, out := &in.Headers, &out.Headers + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResponseHeadersConfig. +func (in *CustomResponseHeadersConfig) DeepCopy() *CustomResponseHeadersConfig { + if in == nil { + return nil + } + out := new(CustomResponseHeadersConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HealthCheckConfig) DeepCopyInto(out *HealthCheckConfig) { *out = *in diff --git a/pkg/apis/backendconfig/v1/zz_generated.openapi.go b/pkg/apis/backendconfig/v1/zz_generated.openapi.go index 3763342a3a..693a2030ff 100644 --- a/pkg/apis/backendconfig/v1/zz_generated.openapi.go +++ b/pkg/apis/backendconfig/v1/zz_generated.openapi.go @@ -30,21 +30,22 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.BackendConfig": schema_pkg_apis_backendconfig_v1_BackendConfig(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.BackendConfigSpec": schema_pkg_apis_backendconfig_v1_BackendConfigSpec(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.BypassCacheOnRequestHeader": schema_pkg_apis_backendconfig_v1_BypassCacheOnRequestHeader(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CDNConfig": schema_pkg_apis_backendconfig_v1_CDNConfig(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CacheKeyPolicy": schema_pkg_apis_backendconfig_v1_CacheKeyPolicy(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.ConnectionDrainingConfig": schema_pkg_apis_backendconfig_v1_ConnectionDrainingConfig(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CustomRequestHeadersConfig": schema_pkg_apis_backendconfig_v1_CustomRequestHeadersConfig(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.HealthCheckConfig": schema_pkg_apis_backendconfig_v1_HealthCheckConfig(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.IAPConfig": schema_pkg_apis_backendconfig_v1_IAPConfig(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.LogConfig": schema_pkg_apis_backendconfig_v1_LogConfig(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.NegativeCachingPolicy": schema_pkg_apis_backendconfig_v1_NegativeCachingPolicy(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.OAuthClientCredentials": schema_pkg_apis_backendconfig_v1_OAuthClientCredentials(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SecurityPolicyConfig": schema_pkg_apis_backendconfig_v1_SecurityPolicyConfig(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SessionAffinityConfig": schema_pkg_apis_backendconfig_v1_SessionAffinityConfig(ref), - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SignedUrlKey": schema_pkg_apis_backendconfig_v1_SignedUrlKey(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.BackendConfig": schema_pkg_apis_backendconfig_v1_BackendConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.BackendConfigSpec": schema_pkg_apis_backendconfig_v1_BackendConfigSpec(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.BypassCacheOnRequestHeader": schema_pkg_apis_backendconfig_v1_BypassCacheOnRequestHeader(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CDNConfig": schema_pkg_apis_backendconfig_v1_CDNConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CacheKeyPolicy": schema_pkg_apis_backendconfig_v1_CacheKeyPolicy(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.ConnectionDrainingConfig": schema_pkg_apis_backendconfig_v1_ConnectionDrainingConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CustomRequestHeadersConfig": schema_pkg_apis_backendconfig_v1_CustomRequestHeadersConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CustomResponseHeadersConfig": schema_pkg_apis_backendconfig_v1_CustomResponseHeadersConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.HealthCheckConfig": schema_pkg_apis_backendconfig_v1_HealthCheckConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.IAPConfig": schema_pkg_apis_backendconfig_v1_IAPConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.LogConfig": schema_pkg_apis_backendconfig_v1_LogConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.NegativeCachingPolicy": schema_pkg_apis_backendconfig_v1_NegativeCachingPolicy(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.OAuthClientCredentials": schema_pkg_apis_backendconfig_v1_OAuthClientCredentials(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SecurityPolicyConfig": schema_pkg_apis_backendconfig_v1_SecurityPolicyConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SessionAffinityConfig": schema_pkg_apis_backendconfig_v1_SessionAffinityConfig(ref), + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SignedUrlKey": schema_pkg_apis_backendconfig_v1_SignedUrlKey(ref), } } @@ -137,6 +138,11 @@ func schema_pkg_apis_backendconfig_v1_BackendConfigSpec(ref common.ReferenceCall Ref: ref("k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CustomRequestHeadersConfig"), }, }, + "customResponseHeaders": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CustomResponseHeadersConfig"), + }, + }, "healthCheck": { SchemaProps: spec.SchemaProps{ Ref: ref("k8s.io/ingress-gce/pkg/apis/backendconfig/v1.HealthCheckConfig"), @@ -152,7 +158,7 @@ func schema_pkg_apis_backendconfig_v1_BackendConfigSpec(ref common.ReferenceCall }, }, Dependencies: []string{ - "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CDNConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.ConnectionDrainingConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CustomRequestHeadersConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.HealthCheckConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.IAPConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.LogConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SecurityPolicyConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SessionAffinityConfig"}, + "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CDNConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.ConnectionDrainingConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CustomRequestHeadersConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.CustomResponseHeadersConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.HealthCheckConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.IAPConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.LogConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SecurityPolicyConfig", "k8s.io/ingress-gce/pkg/apis/backendconfig/v1.SessionAffinityConfig"}, } } @@ -399,6 +405,33 @@ func schema_pkg_apis_backendconfig_v1_CustomRequestHeadersConfig(ref common.Refe } } +func schema_pkg_apis_backendconfig_v1_CustomResponseHeadersConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "CustomResponseHeadersConfig contains configuration for custom response headers", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "headers": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_backendconfig_v1_HealthCheckConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{