Skip to content

Commit

Permalink
Closes #65 that adds support for Azure DevOps git repos in flux until…
Browse files Browse the repository at this point in the history
… it natively supports with a outcome of #81 (#87)
  • Loading branch information
sarath-p authored and andrebriggs committed Feb 12, 2019
1 parent 70b7050 commit b94e99c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cluster/templates/azure/aks-flux/deploy_flux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ REPO_DIR="flux"
FLUX_CHART_DIR="flux/chart/flux"
FLUX_MANIFESTS="manifests"

GIT_KNOWN_HOSTS="`ssh-keyscan github.com gitlab.com bitbucket.org ssh.dev.azure.com`"

echo "known_hosts $GIT_KNOWN_HOSTS"

echo "cloning $FLUX_REPO_URL"
rm -rf $REPO_DIR

Expand All @@ -36,7 +40,7 @@ fi
# git url: where flux monitors for manifests
# git ssh secret: kubernetes secret object for flux to read/write access to manifests repo
echo "generating flux manifests with helm template"
if ! helm template . --name $RELEASE_NAME --namespace $KUBE_NAMESPACE --values values.yaml --output-dir ./$FLUX_MANIFESTS --set git.url=$GITOPS_URL --set git.secretName=$KUBE_SECRET_NAME; then
if ! helm template . --name $RELEASE_NAME --namespace $KUBE_NAMESPACE --values values.yaml --output-dir ./$FLUX_MANIFESTS --set git.url=$GITOPS_URL --set git.secretName=$KUBE_SECRET_NAME --set ssh.known_hosts="$GIT_KNOWN_HOSTS"; then
echo "ERROR: failed to helm template"
exit 1
fi
Expand Down

0 comments on commit b94e99c

Please sign in to comment.