-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate / script Helm chart releases (#205)
- Loading branch information
1 parent
8a11366
commit f567f0c
Showing
3 changed files
with
72 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: "XXVERSIONXX" | ||
description: Use Azure Application Gateway as the ingress for an Azure Kubernetes Service cluster. | ||
name: ingress-azure | ||
version: XXVERSIONXX |
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,46 @@ | ||
replicaCount: 1 | ||
|
||
image: | ||
repository: mcr.microsoft.com/azure-application-gateway/kubernetes-ingress | ||
tag: XXVERSIONXX | ||
pullPolicy: Always | ||
|
||
################################################################################ | ||
# Specify which kubernetes namespace the ingress controller will watch | ||
# | ||
kubernetes: | ||
watchNamespace: default | ||
|
||
################################################################################ | ||
# Specify which application gateway the ingress controller will manage | ||
# | ||
# appgw: | ||
# subscriptionId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | ||
# resourceGroup: myResourceGroup | ||
# name: myApplicationGateway | ||
|
||
################################################################################ | ||
# Specify the authentication with Azure Resource Manager | ||
# | ||
# Two authentication methods are available: | ||
# - Option 1: AAD-Pod-Identity (https://github.com/Azure/aad-pod-identity) | ||
# armAuth: | ||
# type: aadPodIdentity | ||
# identityResourceID: <> | ||
# identityClientID: <> | ||
# | ||
# - Option 2: ServicePrincipal as a kubernetes secret | ||
# armAuth: | ||
# type: servicePrincipal | ||
# secretName: networking-appgw-k8s-azure-service-principal | ||
# secretKey: ServicePrincipal.json | ||
|
||
################################################################################ | ||
# Specify if the cluster is RBAC enabled or not | ||
# rbac: | ||
# enabled: false # true/false | ||
|
||
################################################################################ | ||
# Specify if the cluster is RBAC enabled or not | ||
# aksClusterConfiguration: | ||
# apiServerAddress: <> |
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 |
---|---|---|
@@ -1,7 +1,25 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
set -eauo pipefail | ||
|
||
GIT_TAG=$(git describe --abbrev=0 --tags) | ||
|
||
TGZ_FILE=(ingress-azure-$GIT_TAG.tgz) | ||
|
||
if [ -f $TGZ_FILE ]; then | ||
echo "File $TGZ_FILE already exists!" | ||
exit 0 | ||
fi | ||
|
||
echo " - update helm templates" | ||
cat ingress-azure/Chart-template.yaml | sed "s/XXVERSIONXX/$GIT_TAG/g" > ingress-azure/Chart.yaml | ||
cat ingress-azure/values-template.yaml | sed "s/XXVERSIONXX/$GIT_TAG/g" > ingress-azure/values.yaml | ||
|
||
echo " - running helm package" | ||
helm package ingress-azure --version 0.4.0 | ||
helm package ingress-azure --version "$GIT_TAG" | ||
|
||
echo " - updating helm repo index" | ||
helm repo index . --url https://azure.github.io/application-gateway-kubernetes-ingress/helm | ||
echo " - done!" | ||
|
||
|
||
echo " - done!" |