-
Notifications
You must be signed in to change notification settings - Fork 29
Add tls secret option #131
Conversation
@@ -147,6 +147,7 @@ spec: | |||
| --- | --- | --- | --- | | |||
| `enable` | `boolean` | Enable Prometheus metrics. | Yes | | |||
| `port` | `int` | Sets the port where the Prometheus metrics are exposed. Default is 9113. Format is `1023 - 65535`. | No | | |||
| `secret` | `string` | Sets the namespace/name of a TLS Secret Resource to use to enable TLS for the Prometheus endpoint. | No | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think need to add arg above line 76 too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the example if that's what you mean? I don't see anywhere else to add it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep that was it
@@ -197,6 +197,13 @@ spec: | |||
minimum: 1023 | |||
nullable: true | |||
type: integer | |||
secret: | |||
description: A Secret with a TLS certificate and key for TLS termination |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description (and the one in bundle) doesn't match the comment in types
. I think you need to run make bundle
again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I didn't realise it was generated. I ran make bundle
and got the following error:
make bundle
/Users/soneill/go/src/github.com/nginxinc/nginx-ingress-operator/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
operator-sdk generate kustomize manifests -q
FATA[0000] failed to read config: error unmarshalling project configuration: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal array into Go struct field Config.layout of type string
make: *** [bundle] Error 1
I've update this PR anyway with he generated changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The files in bundle are auto-generated too.
f22ac6b
to
574a2e6
Compare
Approved by other reviewers, merge is blocked with timezone difference
Proposed changes
Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue here in this description (not in the title of the PR).
Checklist
Before creating a PR, run through this checklist and mark each as complete.