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

Make TLS certificate management work for multiple OSs #48745

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ayushpatil2122
Copy link
Contributor

Description

TLS certificate management task assumes Linux-style base64 command
added a tabs for the Linux, macOS and Windows

Issue

#48586

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language labels Nov 17, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign natalisucks for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 17, 2024
Copy link

netlify bot commented Nov 17, 2024

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit d61fc20
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/6740929928435a0008d75ef7
😎 Deploy Preview https://deploy-preview-48745--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

ayushpatil2122 and others added 2 commits November 18, 2024 11:32
Co-authored-by: Utkarsh Singh <96516301+utkarsh-singh1@users.noreply.github.com>
Co-authored-by: Utkarsh Singh <96516301+utkarsh-singh1@users.noreply.github.com>
@jihoon-seo
Copy link
Member

/label tide/merge-method-squash

@k8s-ci-robot k8s-ci-robot added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Nov 18, 2024
@sftim
Copy link
Contributor

sftim commented Nov 18, 2024

/retitle Make TLS certificate management work for multiple OSs

@k8s-ci-robot k8s-ci-robot changed the title added a tabs for the Linux, macOS and Windows Make TLS certificate management work for multiple OSs Nov 18, 2024
Comment on lines +275 to +277
kubectl get csr my-svc.my-namespace -o json | \
jq '.status.certificate = "'$(base64 ca-signed-server.pem | tr -d '\n')'"' | \
kubectl replace --raw /apis/certificates.k8s.io/v1/certificatesigningrequests/my-svc.my-namespace/status -f -
Copy link
Contributor

Choose a reason for hiding this comment

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

bash isn't commonly available on Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants