Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename codec_type to codecType #1087

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apis/ingress/v1/pomerium_types.go
Original file line number Diff line number Diff line change
@@ -288,7 +288,7 @@ type PomeriumSpec struct {
//
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Enum=auto;http1;http2;http3
CodecType *string `json:"codec_type,omitempty"`
CodecType *string `json:"codecType,omitempty"`
}

// Timeouts allows to configure global timeouts for all routes.
2 changes: 1 addition & 1 deletion config/crd/bases/ingress.pomerium.io_pomerium.yaml
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ spec:
items:
type: string
type: array
codec_type:
codecType:
description: CodecType sets the <a href="https://www.pomerium.com/docs/reference/codec-type">Codec
Type</a>.
enum:
2 changes: 1 addition & 1 deletion deployment.yaml
Original file line number Diff line number Diff line change
@@ -237,7 +237,7 @@ spec:
items:
type: string
type: array
codec_type:
codecType:
description: CodecType sets the <a href="https://www.pomerium.com/docs/reference/codec-type">Codec
Type</a>.
enum:
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ require (
github.com/iancoleman/strcase v0.3.0
github.com/martinlindhe/base36 v1.1.1
github.com/open-policy-agent/opa v1.0.0
github.com/pomerium/csrf v1.7.0
github.com/pomerium/pomerium v0.28.1-0.20250108215757-21b9e7890c75
github.com/rs/zerolog v1.33.0
github.com/sergi/go-diff v1.3.1
@@ -164,7 +165,6 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/pomerium/csrf v1.7.0 // indirect
github.com/pomerium/datasource v0.18.2-0.20221108160055-c6134b5ed524 // indirect
github.com/pomerium/protoutil v0.0.0-20240813175624-47b7ac43ff46 // indirect
github.com/pomerium/webauthn v0.0.0-20240603205124-0428df511172 // indirect
2 changes: 1 addition & 1 deletion pomerium/config.go
Original file line number Diff line number Diff line change
@@ -114,7 +114,7 @@ func applySetOtherOptions(_ context.Context, p *pb.Config, c *model.Config) erro
case "http3":
p.Settings.CodecType = http_connection_managerv3.HttpConnectionManager_HTTP3.Enum()
default:
return fmt.Errorf("unknown codec_type %s", *c.Spec.CodecType)
return fmt.Errorf("unknown codecType %s", *c.Spec.CodecType)
}
}
if c.Spec.AccessLogFields != nil {
32 changes: 32 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
@@ -107,6 +107,22 @@ PomeriumSpec defines Pomerium-specific configuration parameters.
</td>
</tr>

<tr>
<td>
<p>
<code>codecType</code>&#160;&#160;

<strong>string</strong>&#160;

</p>
<p>

CodecType sets the <a href="https://www.pomerium.com/docs/reference/codec-type">Codec Type</a>.
</p>

</td>
</tr>

<tr>
<td>
<p>
@@ -189,6 +205,22 @@ PomeriumSpec defines Pomerium-specific configuration parameters.
</td>
</tr>

<tr>
<td>
<p>
<code>runtimeFlags</code>&#160;&#160;

<strong>map[string]boolean</strong>

</p>
<p>

RuntimeFlags sets the <a href="https://www.pomerium.com/docs/reference/runtime-flags">runtime flags</a> to enable/disable certain features.
</p>

</td>
</tr>

<tr>
<td>
<p>