Socket
Socket
Sign inDemoInstall

github.com/aws/aws-k8s-tester/k8s-tester/kubecost

Package Overview
Dependencies
12
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/aws/aws-k8s-tester/k8s-tester/kubecost

package kubecost installs Kubecost OS helm chart. ref. https://www.kubecost.com/


Version published

Readme

Source

How we added/built stand-alone tests for Kubecost

  • git clone
  • mkdir/kubecost
  • cd kubecost/
  • go mod init github.com/aws/aws-k8s-tester/k8s-tester/kubecost
  • Create a file to implement the Tester Interface. touch tester.go
  • copy a vend file from another package cp ../vend.sh .
  • Write tests
  • run ./vend.sh
  • run go mod tidy -v

Test/Run singe test stand-alone

go run cmd/k8s-tester-kubecost/main.go apply \
    --kubectl-path="/usr/local/bin/kubectl" \
    --kubeconfig-path="/Users/Username/.kube/config" \
    --log-outputs="kubecost.log"


## Delete
go run cmd/k8s-tester-kubecost/main.go delete \
    --kubectl-path="/usr/local/bin/kubectl" \
    --kubeconfig-path="/Users/Username/.kube/config" \
    --log-outputs="kubecost.log"

This test is equivilant to running this set of commands

kubectl create namespace kubecost helm repo add https://kubecost.github.io/cost-analyzer/ helm install kubecost cost-analyzer --namespace kubecost --set --set persistentVolume.enabled="false" --set prometheus.server.persistentVolume.enabled=false

After running apply how to check kubecost

kubectl port-forward --namespace kubecost deployment/cost-analyzer 9090

FAQs

Last updated on 30 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc