Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Making sure service-account-private-key-file arg is available in kube…
Browse files Browse the repository at this point in the history
…-controller-manager (#25)
  • Loading branch information
ktsakalozos authored and hyperbolic2346 committed Jun 18, 2018
1 parent f5c46cf commit dd9238e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion snap/kube-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,21 @@ parts:
cp $KUBE_SNAP_ROOT/kube-controller-manager/kube-controller-manager-wrapper .
$KUBE_SNAP_ROOT/shared/generate-configure-hook kube-controller-manager
snapcraftctl build
# By mistake --service-account-private-key-file was marked as deprecated
# https://github.com/kubernetes/kubernetes/pull/62722
# Should be fixed soon by https://github.com/kubernetes/kubernetes/pull/60270/files#diff-fc9db90cc6b68d7c3ca838a8512447e9R61
# But until then, we need to do 1.11 testing
ensure_arg() {
type="$1"
config="$2"
if ! grep "^config-arg.* $config\$" meta/hooks/configure > /dev/null; then
if [ "$type" = "bool" ]; then
echo "config-arg-bool $config" >> meta/hooks/configure
else
echo "config-arg $config" >> meta/hooks/configure
fi
fi
}
ensure_arg string service-account-private-key-file
snapcraftctl build

0 comments on commit dd9238e

Please sign in to comment.