Skip to content

Commit

Permalink
Merge pull request #1039 from cloud-pi-native/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ArnaudTA authored Apr 4, 2024
2 parents 56d2ef3 + e69f26f commit 6401baa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions helm/templates/deployment-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
metadata:
annotations:
{{- include "checksumCm" (list $ "/cm-postgres.yaml") | nindent 8 }}
{{- if .Values.postgres.container.annotations }}
{{- .Values.postgres.container.annotations | toYaml | nindent 8 }}
{{- end }}
labels:
app: {{ .Release.Name }}-postgres
spec:
Expand Down
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ postgres:
image: docker.io/postgres:15.3
port: 5432
imagePullPolicy: Always
annotations: {}
env: #hashmap of custom env
db: dso-console-db
user: admin
Expand Down
2 changes: 1 addition & 1 deletion plugins/kubernetes/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cpn-console/kubernetes-plugin",
"description": "",
"version": "2.0.0",
"version": "2.0.1",
"private": false,
"type": "module",
"main": "dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions plugins/kubernetes/src/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ class KubernetesNamespace {

try {
await this.anyObjectApi.getNamespacedCustomObject(r.group, r.version, nsName, r.plural, r.name)
return await this.anyObjectApi.replaceNamespacedCustomObject(r.group, r.version, nsName, r.plural, r.name, objToCreate)
await this.anyObjectApi.deleteNamespacedCustomObject(r.group, r.version, nsName, r.plural, r.name)
} catch (error) {
return this.anyObjectApi.createNamespacedCustomObject(r.group, r.version, nsName, r.plural, objToCreate)
}
return this.anyObjectApi.createNamespacedCustomObject(r.group, r.version, nsName, r.plural, objToCreate)
}

public async setQuota (quota: ResourceQuotaType) {
Expand Down

0 comments on commit 6401baa

Please sign in to comment.