Skip to content

Commit

Permalink
change initial_metadata type
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Burn <[email protected]>
  • Loading branch information
rnburn committed Aug 3, 2021
1 parent b54b695 commit c0c61cd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ spec:
type: object
initial_metadata:
additionalProperties:
description: BoolOrString is a type that can hold a Boolean or a string.
oneOf:
- type: string
- type: boolean
type: string
type: object
path_prefix:
type: string
Expand Down
5 changes: 1 addition & 4 deletions manifests/emissary/ambassador-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ spec:
type: object
initial_metadata:
additionalProperties:
description: BoolOrString is a type that can hold a Boolean or a string.
oneOf:
- type: string
- type: boolean
type: string
type: object
path_prefix:
type: string
Expand Down
5 changes: 1 addition & 4 deletions manifests/emissary/emissary-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ spec:
type: object
initial_metadata:
additionalProperties:
description: BoolOrString is a type that can hold a Boolean or a string.
oneOf:
- type: string
- type: boolean
type: string
type: object
path_prefix:
type: string
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/getambassador.io/v2/authservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type AuthServiceSpec struct {
AllowedRequestHeaders []string `json:"allowed_request_headers,omitempty"`
AllowedAuthorizationHeaders []string `json:"allowed_authorization_headers,omitempty"`
AddAuthHeaders map[string]BoolOrString `json:"add_auth_headers,omitempty"`
InitialMetadata map[string]BoolOrString `json:"initial_metadata,omitempty"`
InitialMetadata map[string]string `json:"initial_metadata,omitempty"`
AllowRequestBody *bool `json:"allow_request_body,omitempty"`
AddLinkerdHeaders *bool `json:"add_linkerd_headers,omitempty"`
FailureModeAllow *bool `json:"failure_mode_allow,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/getambassador.io/v2/zz_generated.deepcopy.go

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

2 changes: 1 addition & 1 deletion python/schemas/v2/AuthService.schema
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"initial_metadata": {
"type": "object",
"additionalProperties": { "type": [ "string", "boolean" ] }
"additionalProperties": { "type": "string" }
},
"allow_request_body": { "type": "boolean" },
"add_linkerd_headers": { "type": "boolean" },
Expand Down

0 comments on commit c0c61cd

Please sign in to comment.