Skip to content

Commit

Permalink
Fix helm relase and set explicit name
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentBaer authored and Vincent Baer committed Feb 16, 2024
1 parent 3ac50c9 commit 96da9f2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "osc-cost"
version = "0.5.2"
version = "0.5.3"
edition = "2021"
authors = ["OpenSource Team <[email protected]>"]
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion helm/osccost/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.4.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.5.2"
appVersion: "0.5.3"
4 changes: 2 additions & 2 deletions helm/osccost/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# osccost

![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.2](https://img.shields.io/badge/AppVersion-0.5.2-informational?style=flat-square)
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.3](https://img.shields.io/badge/AppVersion-0.5.3-informational?style=flat-square)

Exporter prometheus to allow Outscale users to estimate their cloud costs.

Expand All @@ -9,7 +9,7 @@ Exporter prometheus to allow Outscale users to estimate their cloud costs.
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| osccost.deployment.containers.image | string | `"outscale/osc-cost"` | Outscale provider image |
| osccost.deployment.containers.imageTag | string | `"v0.5.0"` | Outscale provider image tag |
| osccost.deployment.containers.imageTag | string | `"v0.5.3"` | Outscale provider image tag |
| osccost.deployment.containers.osccostExtraParams | string | `""` | |
| osccost.deployment.containers.pullPolicy | string | `"Always"` | ImagePullPolcy to use (IfNotPresent, Never, Always) |
| osccost.deployment.containers.resources.cpu.limits | string | `"600m"` | Container cpu limts |
Expand Down
2 changes: 1 addition & 1 deletion helm/osccost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ osccost:
# -- Outscale provider image
image: outscale/osc-cost
# -- Outscale provider image tag
imageTag: "v0.5.2"
imageTag: "v0.5.3"
# -- ImagePullPolcy to use (IfNotPresent, Never, Always)
pullPolicy: Always
# -- Additional securityContext to add
Expand Down
6 changes: 3 additions & 3 deletions src/oapi/vms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,12 @@ impl VmSpecs {
}

fn parse_dedicated_instance_additional_prices(mut self, input: &Input) -> Option<VmSpecs> {
// dedicated_vm_additional is expressed as a per thousand (‰)
// factor_dedicated_vm_additional_cost_per_thousand is expressed as a per thousand (‰)
// The doc is here https://docs.outscale.com/en/userguide/Getting-the-Price-of-Your-Resources.html but seems wrong, the good formula is: Instance_price + ((Instance_price x Additional_price * 1000 )/100
let dedicated_vm_additional =
let factor_dedicated_vm_additional_cost_per_thousand =
input.catalog_entry("TinaOS-FCU", "DedicatedInstanceSurplus", "RunInstances")?;
self.factor_vm_additional_cost = match self.tenancy.as_str() {
"dedicated" => 1.0 + (dedicated_vm_additional * 10.0),
"dedicated" => 1.0 + (factor_dedicated_vm_additional_cost_per_thousand * 10.0),
"default" => 1.0,
unkown_tenancy => {
error!(
Expand Down

0 comments on commit 96da9f2

Please sign in to comment.