Skip to content
Open
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: 2 additions & 0 deletions kubernetes/watch-keeper/resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NODE_EXTRA_CA_CERTS
value: /home/node/envs/watch-keeper-secret/cacerts.pem
Comment on lines +37 to +38
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with this except for the fact that there will be a warning when the file doesnt exist (which will probably be the majority of the time)

docs ref:

A message will be emitted (once) with process.emitWarning() if the file is missing or malformed, but any errors are otherwise ignored.

i think we can achieve the same result with an optional env.

Suggested change
- name: NODE_EXTRA_CA_CERTS
value: /home/node/envs/watch-keeper-secret/cacerts.pem
- name: NODE_EXTRA_CA_CERTS
valueFrom:
configMapKeyRef:
name: watch-keeper-config
key: NODE_EXTRA_CA_CERTS
optional: true

which means someone who wants to add extra certs will have to update both the watch-keeper-config with the ca certs path, as well as the watch-keeper-secret with the actual pem file.

Please make the change and test it. thanks.

- name: USER_AGENT_NAME
value: razee-io/watchkeeper
- name: USER_AGENT_VERSION
Expand Down