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

Fixing TLS copy error #390

Merged
merged 1 commit into from
Oct 9, 2017

Conversation

heschlie
Copy link
Contributor

@heschlie heschlie commented Oct 9, 2017

Description

Now that we have added set -e we have hit a couple errors. The option -e when we checked if the TLS assests dir existed was only checking that the dir existed, but not if it had any contents. When empty (which it is sometimes) the following cp call would fail. I've added a check to see if the dir exists and has something in it.

There is a similar fix in the sleep loop at the end checking to see if we need to update the secrets.

Todos

  • Tests
  • Documentation
  • Release note

Release Note

None required

The option `-e` was only checking that the tls dir existed, but not if
it had any contents. When empty (which it is sometimes) the following
`cp` call would fail. I've added a check to see if the dir exists and
has something in it.

There is a similar fix in the sleep loop at the end checking to see if
we need to update the secrets.
@heschlie heschlie self-assigned this Oct 9, 2017
@caseydavenport caseydavenport merged commit 7f506c3 into projectcalico:master Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants