Skip to content

verification repository for Pull Request Generator of Argo CD ApplicationSet

Notifications You must be signed in to change notification settings

cloudnativedaysjp/verification-argocd-appset-prgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

verification-argocd-appset-prgen

Argo CD ApplicationSet の PullRequest Generator 機能の検証用リポジトリ

検証環境の構築

  • Argo CD 用の secret を用意
read -s ARGOCD_ADMIN_PASSWORD
kubectl create secret generic argocd-secret -oyaml --dry-run=client \
  --from-literal=admin.password=$ARGOCD_ADMIN_PASSWORD | kubectl neat \
  > argocd/overlays/dev-with-secrets/secret-argocd.yaml
read -s GITHUB_TOKEN
kubectl create secret generic github-token -oyaml --dry-run=client \
  --from-literal=token=$GITHUB_TOKEN  | kubectl neat \
  > argocd/overlays/dev-with-secrets/secret-github-token.yaml
  • Argo CD のインストール
kustomize build argocd/overlays/dev-with-secrets | kubectl apply -f-

検証

kubectl apply -f reviewapps/dreamkast-dk.yaml
  • Application が生えていることの確認
    • HEALTH STATUS が Progressing のままであることは意図通り (検証環境には Ingress controller が存在しないため)
$ kubectl get app -n argocd
NAME                SYNC STATUS   HEALTH STATUS
dreamkast-dk-1207   Synced        Progressing
dreamkast-dk-1235   Synced        Progressing
dreamkast-dk-1237   Synced        Progressing
  • Review Apps 環境に Deployment, Service, Ingress が存在することの確認
$ kubectl get deployment,svc,ing -n dreamkast-dk-1207
NAME                    READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/nginx   3/3     3            3           10m

NAME            TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE
service/nginx   ClusterIP   10.96.122.221   <none>        80/TCP    10m

NAME                              CLASS    HOSTS                                  ADDRESS   PORTS   AGE
ingress.networking.k8s.io/nginx   <none>   dreamkast-dk-1207.cloudnativedays.jp             80      10m

About

verification repository for Pull Request Generator of Argo CD ApplicationSet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages