SocialGouv / sre-tools

https://socialgouv.github.io/sre-tools/
1 stars 1 forks source link

fix(deps): update dependency @socialgouv/kosko-charts to v9 #65

Closed renovate[bot] closed 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@socialgouv/kosko-charts ^8.0.3 -> ^9.0.0 age adoption passing confidence

Release Notes

SocialGouv/kosko-charts ### [`v9.0.0`](https://togithub.com/SocialGouv/kosko-charts/blob/master/CHANGELOG.md#​900-httpsgithubcomSocialGouvkosko-chartscomparev811v900-2021-07-29) [Compare Source](https://togithub.com/SocialGouv/kosko-charts/compare/v8.1.1...v9.0.0) - feat(azure-pg)!: use one database per branch ([#​624](https://togithub.com/SocialGouv/kosko-charts/issues/624)) ([a0883a3](https://togithub.com/SocialGouv/kosko-charts/commit/a0883a3df670349d11f9902faeb9c83b5d87d993)), closes [#​624](https://togithub.com/SocialGouv/kosko-charts/issues/624) ##### BREAKING CHANGES - Our create database component is now creating one database per branch Previously our `@socialgouv/kosko-charts/components/azure-pg` component was creating one database per commit. As it happen to be a rare need at [@​SocialGouv](https://togithub.com/SocialGouv), we now switch to one database per branch. - Unify commen `pg.ts` component use under the same function Previously our `@socialgouv/kosko-charts/components/azure-pg` component was only handling the "dev"/"review" use case where we have to create the database and the user ourself. This ends up putting on the user land the responsibility of manually loading a sealedsecret in other case. As it happen to be a common need at [@​SocialGouv](https://togithub.com/SocialGouv), we now deal with loading the file our creating the database as before if the named file does not exist. ```diff import env from "@​kosko/env"; -import type { SealedSecret } from "@​kubernetes-models/sealed-secrets/bitnami.com/v1alpha1/SealedSecret"; import { create } from "@​socialgouv/kosko-charts/components/azure-pg"; -import environments from "@​socialgouv/kosko-charts/environments"; -import { loadYaml } from "@​socialgouv/kosko-charts/utils/getEnvironmentComponent"; -import { updateMetadata } from "@​socialgouv/kosko-charts/utils/updateMetadata"; +export default create("pg-user", { + env, +}); -export default async (): Promise<{ kind: string }[]> => { - if (env.env === "dev") { - return create({ - env, - }); - } - - // in prod/preprod, we try to add a fixed sealed-secret - const secret = await loadYaml( - env, - `pg-user.sealed-secret.yaml` - ); - if (!secret) { - return []; - } - - const envParams = environments(process.env); - // add gitlab annotations - updateMetadata(secret, { - annotations: envParams.metadata.annotations ?? {}, - labels: envParams.metadata.labels ?? {}, - namespace: envParams.metadata.namespace, - }); - return [secret]; -}; ``` The new `create` function of `@socialgouv/kosko-charts/components/azure-pg` takes a `name` as fist argument used to "guest" the file to load `${name}.sealed-secret.yaml` is the given env (as before) ### [`v8.1.1`](https://togithub.com/SocialGouv/kosko-charts/blob/master/CHANGELOG.md#​811-httpsgithubcomSocialGouvkosko-chartscomparev810v811-2021-07-29) [Compare Source](https://togithub.com/SocialGouv/kosko-charts/compare/v8.1.0...v8.1.1) ##### Bug Fixes - **environments:** github branch env slug missing prefix ([#​623](https://togithub.com/SocialGouv/kosko-charts/issues/623)) ([23fa233](https://togithub.com/SocialGouv/kosko-charts/commit/23fa233ee050a62f6cf3a60ca326daf29f1e452f)) ### [`v8.1.0`](https://togithub.com/SocialGouv/kosko-charts/blob/master/CHANGELOG.md#​810-httpsgithubcomSocialGouvkosko-chartscomparev803v810-2021-07-29) [Compare Source](https://togithub.com/SocialGouv/kosko-charts/compare/v8.0.3...v8.1.0) ##### Features - **utils:** add gitlab like environmentSlug function ([#​622](https://togithub.com/SocialGouv/kosko-charts/issues/622)) ([3f75386](https://togithub.com/SocialGouv/kosko-charts/commit/3f7538688c651382b1b970a10d705b72abbb534b)) #### [8.0.3](https://togithub.com/SocialGouv/kosko-charts/compare/v8.0.2...v8.0.3) (2021-07-24) ##### Bug Fixes - **deps:** update dependency [@​types/node](https://togithub.com/types/node) to ^14.17.6 ([#​620](https://togithub.com/SocialGouv/kosko-charts/issues/620)) ([0790a8f](https://togithub.com/SocialGouv/kosko-charts/commit/0790a8fee456de72ac9eec04b2aea0460696ad3e)) ##### Reverts - **azure-storage:** add dynamic fileshare pvc ([#​585](https://togithub.com/SocialGouv/kosko-charts/issues/585)) ([ff6c0dc](https://togithub.com/SocialGouv/kosko-charts/commit/ff6c0dcb666e7dacc94053b5b4b10ec118e9d276)) #### [8.0.2](https://togithub.com/SocialGouv/kosko-charts/compare/v8.0.1...v8.0.2) (2021-07-16) ##### Bug Fixes - **ingress:** missing pathType and name port collision ([#​608](https://togithub.com/SocialGouv/kosko-charts/issues/608)) ([9a12a7b](https://togithub.com/SocialGouv/kosko-charts/commit/9a12a7b0247af8c54bdc4af7327280263ce13469)) #### [8.0.1](https://togithub.com/SocialGouv/kosko-charts/compare/v8.0.0...v8.0.1) (2021-07-15) ##### Bug Fixes - **deps:** update dependency slugify to ^1.6.0 ([#​607](https://togithub.com/SocialGouv/kosko-charts/issues/607)) ([918ebf5](https://togithub.com/SocialGouv/kosko-charts/commit/918ebf5c0f00631c6c2481c2d35a92332e7169f3))

Configuration

📅 Schedule: "before 3am on the first day of the month" in timezone Europe/Paris.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by WhiteSource Renovate. View repository job log here.

codecov-commenter commented 3 years ago

Codecov Report

Merging #65 (8abf331) into master (057d3a7) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #65   +/-   ##
=======================================
  Coverage   84.37%   84.37%           
=======================================
  Files           3        3           
  Lines          32       32           
  Branches        6        6           
=======================================
  Hits           27       27           
  Misses          4        4           
  Partials        1        1           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9bdcf79...8abf331. Read the comment docs.

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 1.8.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket: