Skip to content

Commit

Permalink
feat: upgrade to kubecost v2
Browse files Browse the repository at this point in the history
Signed-off-by: Tarun Gupta Akirala <[email protected]>
  • Loading branch information
takirala committed Dec 22, 2024
1 parent fad9ae9 commit adfdd5e
Show file tree
Hide file tree
Showing 31 changed files with 878 additions and 532 deletions.
10 changes: 10 additions & 0 deletions common/helm-repositories/kubecost.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: kubecost
namespace: kommander-flux
spec:
interval: 10m
timeout: 1m
url: "${helmMirrorURL:=https://kubecost.github.io/cost-analyzer/}"
1 change: 1 addition & 0 deletions common/helm-repositories/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ resources:
- kommander-ui.yaml
- kommander.yaml
- kube-logging.yaml
- kubecost.yaml
- kubefed.yaml
- kubetunnel.yaml
- mesosphere-repos.yaml
Expand Down
1 change: 1 addition & 0 deletions hack/list-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ declare -rx releaseNamespace=unused \
tfaName=unused \
notPopulatedAnywhereAsThisIsOnlyForAirgappedBundle=unused \
caIssuerName=unused \
CLUSTER_ID=unused \
kommanderChartVersion="${kommanderChartVersion:-}"

IMAGES_FILE="$(realpath "$(mktemp .helm-list-images-XXXXXX)")"
Expand Down
8 changes: 4 additions & 4 deletions licenses.d2iq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -572,15 +572,15 @@ resources:
- url: https://github.com/mirror/busybox
ref: master
license_path: LICENSE
- container_image: gcr.io/kubecost1/cost-model:prod-1.108.1
- container_image: gcr.io/kubecost1/cost-model:prod-2.5.0
sources:
- url: https://github.com/opencost/opencost
ref: v${image_tag#prod-}
ref: v1.112.1
license_path: LICENSE
- container_image: ghcr.io/mesosphere/dkp-container-images/gcr.io/kubecost1/frontend:prod-1.108.1-d2iq.0
- container_image: gcr.io/kubecost1/frontend:prod-2.5.0
sources:
- url: https://github.com/opencost/opencost
ref: v1.108.1
ref: v1.112.1
license_path: LICENSE
- container_image: registry.k8s.io/pause:3.10
sources:
Expand Down
153 changes: 0 additions & 153 deletions services/centralized-kubecost/0.37.8/defaults/cm.yaml

This file was deleted.

156 changes: 0 additions & 156 deletions services/centralized-kubecost/0.37.8/release/release.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions services/centralized-kubecost/2.5.0/cosi-storage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: kubecost-cosi-storage
namespace: ${releaseNamespace}
spec:
force: true
prune: true
wait: true
interval: 6h
retryInterval: 1m
path: ./services/centralized-kubecost/2.5.0/cosi-storage
sourceRef:
kind: GitRepository
name: management
namespace: kommander-flux
timeout: 1m
dependsOn:
- name: todo-move-to-konvoy
namespace: ${releaseNamespace}
postBuild:
substitute:
releaseNamespace: ${releaseNamespace}
Loading

0 comments on commit adfdd5e

Please sign in to comment.