Skip to content

craftech-io/argocd-gitops-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing ArgoCD

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
# or locally:
kubectl port-forward svc/argocd-server -n argocd 8082:443
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
argocd login <ARGOCD_SERVER>  
argocd account update-password

Contributing to Charts - This is just an Example!

Here is an example of how you could ensure quality in your Helm Charts prior being merged.

Example Instructions

This repository has multiple Github Actions to ensure quality is high, these include:

All chart README.md files are generated from a template. This ensures all values are documented and that formatting is consistent. See here about how the table of values is produced and how to add descriptions to your chart values.

Running CI tests locally

All commands to be run from the root of this repo.

chart-testing:

brew install chart-testing
pip3 install yamale yamllint
ct lint --charts charts/<chart>

markdown-lint:

docker run --rm -v "$PWD:/charts" avtodev/markdown-lint:v1.5.0 --config /helm-charts/ci-charts/markdown-lint.yaml /charts/charts/**/*.md

helm-docs:

To generate chart README.md files from the template:

docker run --rm -v "$PWD:/helm-docs" jnorwood/helm-docs:v1.5.0 --template-files ./ci-charts/README.md.gotmpl

helm-conftest:

brew tap instrumenta/instrumenta
brew install conftest
helm template charts/<chart> | conftest -p ci-charts/helm-conftest-policies test - && echo "OK"

License

Contents of this repository and any charts without a specific license are licensed under the Apache-2.0 License. Some charts may have their own respective license at <chart>/LICENSE. When adding a new chart to this repository and the chart is copied from another repository then include the license from the source if is not Apache-2.0 and include a link to the source under the sources section in <chart>/Chart.yaml.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 40.0%
  • Open Policy Agent 33.7%
  • Smarty 17.7%
  • Shell 8.6%