Skip to content

Commit c1da4c1

Browse files
authored
Bring back webhook port (open-telemetry#2973)
* add back webhook port * chlog
1 parent ddd9f34 commit c1da4c1

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.chloggen/bring-back-wh-port.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: bug_fix
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
5+
component: operator
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: Fixes an issue where the user can no longer set the webhook port
9+
10+
# One or more tracking issues related to the change
11+
issues: [2923]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext:

main.go

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ func main() {
172172
pflag.StringVar(&encodeLevelKey, "zap-level-key", "level", "The level key to be used in the customized Log Encoder")
173173
pflag.StringVar(&encodeTimeKey, "zap-time-key", "timestamp", "The time key to be used in the customized Log Encoder")
174174
pflag.StringVar(&encodeLevelFormat, "zap-level-format", "uppercase", "The level format to be used in the customized Log Encoder")
175+
pflag.IntVar(&webhookPort, "webhook-port", 9443, "The port the webhook endpoint binds to.")
175176
pflag.Parse()
176177

177178
opts.EncoderConfigOptions = append(opts.EncoderConfigOptions, func(ec *zapcore.EncoderConfig) {

0 commit comments

Comments
 (0)