Skip to content

appctl issue

Internal Google issue for reference: b/156566075


Hi @MrTrustor and @mayanktahil:

I saw your GitLab / Anthos Application Delivery webinar -- nice work!

This is not an issue with your helloworld project here but either appears to be an issue with appctl or I am missing something when following the steps in https://cloud.google.com/kubernetes-engine/docs/how-to/add-on/application-delivery

Since I couldn't find who to contact regarding appctl so far, and since you have experience with appctl, do you have any clue why this fails? Note that it failed both with GitLab and GitHub:

# prepare a cluster
gcloud beta container clusters create kamen-app-delivery-04 --cluster-version 1.15 --addons ApplicationManager --zone us-east4-b
kubectl get pods kalm-controller-manager-0 -n kalm-system
kubectl get pods application-controller-manager-0 -n application-system

# try appctl with GitLab:
appctl init kamen-04 --app-config-repo=https://gitlab.com/ncbi/kamen-04
cd kamen-04/
# edit yaml files in config/base
kustomize build config/base/
git add .
git commit -m "Creating kamen-04"
git push origin master
appctl env add staging --cluster=kamen-app-delivery-04 --zone us-east4-b
appctl env add prod --cluster=kamen-app-delivery-04 --zone us-east4-b
git push origin master
git tag v0.1.0
git push origin  v0.1.0
appctl prepare staging

ERROR:
Sync-up the latest Refs from remote "https://gitlab.com/ncbi/kamen-04".
Error: unable to fetch tags from deployment repo "https://gitlab.com/ncbi/kamen-04-deployment": fatal: No remote repository specified.  Please, specify either a URL or a remote nam\
e from which new revisions should be fetched.

cd ..

# try appctl with GitHub
appctl init kamen-05 --app-config-repo=https://github.com/kmt/kamen-05
cp kamen-04/config/base/my.yaml kamen-05/config/base/
cp kamen-04/config/base/kustomization.yaml kamen-05/config/base/
cd kamen-05
# edit yaml files in config/base
kustomize build config/base/
git add .
git commit -m "Creating kamen-05"
git push origin master
appctl env add staging --cluster=kamen-app-delivery-04 --zone us-east4-b
appctl env add prod --cluster=kamen-app-delivery-04 --zone us-east4-b
git push origin master
git tag v0.1.0
git push origin  v0.1.0
appctl prepare staging

ERROR:
Sync-up the latest Refs from remote "https://github.com/kmt/kamen-05".
Error: unable to fetch tags from deployment repo "https://github.com/kmt/kamen-05-deployment": fatal: No remote repository specified.  Please, specify either a URL or a remote name\
 from which new revisions should be fetched.
Edited by Théo Chamley