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

docs: Fix TLS secret name ConfigMap update example #260

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

njhill
Copy link
Member

@njhill njhill commented Oct 11, 2022

Motivation

The script snippet in our TLS docs for creating a configmap with the TLS secret name parameter included incorrect yaml which would not result in TLS being enabled. It should be:

        data:
          config.yaml: |
            tls:
              secretName: ${SECRET_NAME}

instead of

        data:
          config.yaml: |
            tls.secretName: ${SECRET_NAME}

Modification

  • Fix the config yaml
  • Change kubectl apply to kubectl create to avoid overwriting existing config
  • Add > ca.crt to the cert retrieval command
  • Replace oc with kubectl in Certificate CR example

Result

Correct docs.

Signed-off-by: Nick Hill [email protected]

Motivation

The script snippet in our TLS docs for creating a configmap with the TLS secret name parameter included incorrect yaml which would not result in TLS being enabled. It should be:

        data:
          config.yaml: |
            tls:
              secretName: ${SECRET_NAME}

instead of

        data:
          config.yaml: |
            tls.secretName: ${SECRET_NAME}

Modification

- Fix the config yaml
- Change kubectl appy to kubectl create to avoid overwriting existing config
- Add "> ca.crt" to the cert retrieval command
- Replace oc with kubectl in Certificate CR example

Result

Correct docs.

Signed-off-by: Nick Hill <[email protected]>
@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: njhill

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@njhill njhill marked this pull request as ready for review October 11, 2022 17:58
@rafvasq rafvasq self-requested a review October 12, 2022 19:04
@rafvasq
Copy link
Member

rafvasq commented Oct 12, 2022

/lgtm

@kserve-oss-bot kserve-oss-bot merged commit 10b5f8f into main Oct 12, 2022
@njhill njhill deleted the ks-tls-doc-fix branch October 13, 2022 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants