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

Add SUC variables from file #204

Conversation

jakefhyde
Copy link
Collaborator

rancher/rancher#48382

Should be reviewed in conjunction with rancher/rancher#48569.

@@ -5,6 +5,26 @@ set -x -e
CATTLE_AGENT_VAR_DIR=${CATTLE_AGENT_VAR_DIR:-/var/lib/rancher/agent}
TMPDIRBASE=${CATTLE_AGENT_VAR_DIR}/tmp

if [ -f /host${CATTLE_AGENT_VAR_DIR}/env/CATTLE_CACERTS_VALID ]; then
export CATTLE_CACERTS_VALID="$(cat /host${CATTLE_AGENT_VAR_DIR}/env/CATTLE_CACERTS_VALID)"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The path has to match with https://github.com/rancher/rancher/pull/48569/files#diff-2d6a56c7215bb70f2f4af658fd18d81ccf71dd7774f92c37d987a608703515cfR286, so let me know if this needs to be changed.

Also I can remove the logging, but I did use it to verify that the code was working.

@jakefhyde
Copy link
Collaborator Author

Closing as not needed

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.

1 participant