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

fix: rotate certs script breaks on Ubuntu 20.04 #5055

Merged
merged 1 commit into from Jan 26, 2023

Conversation

christinalau0
Copy link
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
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jadarsie 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 jadarsie self-requested a review January 25, 2023 19:49
@jadarsie jadarsie enabled auto-merge (squash) January 25, 2023 20:03
@jadarsie jadarsie merged commit 5a6ad49 into Azure:master Jan 26, 2023
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.

None yet

2 participants