-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run c_rehash before launching the operator
The SLE image requires that c_rehash is run before additional trusted CAs will be detected. Therefore, an entrypoint script is added to accomplish this. In addition, fsGroup is added so that c_rehash (which is run as the aks-operator user) can read the cert that is mounted.
- Loading branch information
Donnie Adams
committed
Jul 9, 2021
1 parent
8678208
commit 14f8f6d
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ -x "$(command -v c_rehash)" ]; then | ||
# c_rehash is run here instead of update-ca-certificates because the latter requires root privileges | ||
# and the aks-operator container is run as non-root user. | ||
c_rehash | ||
fi | ||
aks-operator |