Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

fix: rotate certs script breaks on Ubuntu 20.04 - #5055

Merged
Javier Darsie (jadarsie) merged 1 commit into
Azure:masterfrom
christinalau0:rotate-certs-cpcerts
Jan 26, 2023
Merged

fix: rotate certs script breaks on Ubuntu 20.04#5055
Javier Darsie (jadarsie) merged 1 commit into
Azure:masterfrom
christinalau0:rotate-certs-cpcerts

Conversation

@christinalau0

Copy link
Copy Markdown
Contributor

Reason for Change:

The rotate certs command was failing on 20.04 environments, Output:

cp -p /etc/kubernetes/rotate-certs/certs/kubeconfig /root/.kube/config 
cp: cannot create regular file '/root/.kube/config': No such file or directory

The fix specifies the user instead of using ~, works on both 20.04 and 18.04

Issue Fixed:

Credit Where Due:

Does this change contain code from or inspired by another project?

  • No
  • Yes

If "Yes," did you notify that project's maintainers and provide attribution?

  • No
  • Yes

Requirements:

Notes:

The rotate certs command was failing on 20.04 environments, output:
+ cp -p /etc/kubernetes/rotate-certs/certs/kubeconfig /root/.kube/config
cp: cannot create regular file '/root/.kube/config': No such file or directory

The fix specifies the user instead of using ~, works on both 20.04 and 18.04
@jadarsie

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@jadarsie Javier Darsie (jadarsie) changed the title fix: rotate certs cp_certs on 20.04 fix: rotate certs script breaks on Ubuntu 20.04 Jan 25, 2023
@jadarsie
Javier Darsie (jadarsie) enabled auto-merge (squash) January 25, 2023 20:03
@jadarsie
Javier Darsie (jadarsie) merged commit 5a6ad49 into Azure:master Jan 26, 2023
Javier Darsie (jadarsie) pushed a commit that referenced this pull request Jan 26, 2023
The rotate certs command was failing on 20.04 environments, output:
+ cp -p /etc/kubernetes/rotate-certs/certs/kubeconfig /root/.kube/config
cp: cannot create regular file '/root/.kube/config': No such file or directory

The fix specifies the user instead of using ~, works on both 20.04 and 18.04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants