From e125b351a6e81c847a6f11d20d04b471231abada Mon Sep 17 00:00:00 2001 From: Arnob kumar saha Date: Wed, 13 Mar 2024 13:40:56 +0600 Subject: [PATCH] Update resource-metadata for mongo exec command Signed-off-by: Arnob kumar saha --- go.mod | 2 +- go.sum | 6 +++--- .../resourcedescriptors/kubedb.com/v1alpha2/mongodbs.yaml | 8 +++++--- vendor/modules.txt | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index d88d272e9..d72a32225 100644 --- a/go.mod +++ b/go.mod @@ -48,7 +48,7 @@ require ( kmodules.xyz/custom-resources v0.29.1 kmodules.xyz/go-containerregistry v0.0.12 kmodules.xyz/monitoring-agent-api v0.29.0 - kmodules.xyz/resource-metadata v0.18.2-0.20240313052239-425c691548da + kmodules.xyz/resource-metadata v0.18.2-0.20240313070556-32538e598f18 kmodules.xyz/resource-metrics v0.29.1 kmodules.xyz/sets v0.29.0 kubeops.dev/falco-ui-server v0.0.3 diff --git a/go.sum b/go.sum index 48498436b..fcb445793 100644 --- a/go.sum +++ b/go.sum @@ -3490,13 +3490,13 @@ kmodules.xyz/monitoring-agent-api v0.29.0 h1:gpFl6OZrlMLb/ySMHdREI9EwGtnJ91oZBn9 kmodules.xyz/monitoring-agent-api v0.29.0/go.mod h1:iNbvaMTgVFOI5q2LJtGK91j4Dmjv4ZRiRdasGmWLKQI= kmodules.xyz/offshoot-api v0.29.0 h1:GHLhxxT9jU1N8+FvOCCeJNyU5g0duYS46UGrs6AHNLY= kmodules.xyz/offshoot-api v0.29.0/go.mod h1:5NxhBblXoDHWStx9HCDJR2KFTwYjEZ7i1Id3jelIunw= -kmodules.xyz/resource-metadata v0.18.2-0.20240313052239-425c691548da h1:DvWnRuaYJvMMAHweMRU5sISAOwmzItgqrpqkpGa2fIM= -kmodules.xyz/resource-metadata v0.18.2-0.20240313052239-425c691548da/go.mod h1:Vb2bFCOX4uz2TsRRMzTkUqFWWOjJ261lY8Hs2HWgzh4= +kmodules.xyz/resource-metadata v0.18.2-0.20240313070556-32538e598f18 h1:wF2kEA8xnXrqVF8xAYhk39VRxvxA9iaMebJx0g6STGU= +kmodules.xyz/resource-metadata v0.18.2-0.20240313070556-32538e598f18/go.mod h1:Vb2bFCOX4uz2TsRRMzTkUqFWWOjJ261lY8Hs2HWgzh4= kmodules.xyz/resource-metrics v0.29.1 h1:gP4SNosdDGFImpne52mnQtHacmnllYkTMcYL//p/ltM= kmodules.xyz/resource-metrics v0.29.1/go.mod h1:OuG/QobZ7o8GFHl/u3lqaUR0fDZDegxtV8Vdh+MNBD4= kmodules.xyz/sets v0.29.0 h1:ZX/qOECzUob95JhhRtngJElHSlJ1UNNdwK4hTEy+nl0= kmodules.xyz/sets v0.29.0/go.mod h1:1oi3fR9c3SWywEjBLlHC8BBMCSz0b1/W+EofKmBoj3g= -kubeops.dev/falco-ui-server v0.0.3 h1:QMSxPvbO/42o3gxzNNHg5Q6MdR0PNEHXo6c9T3ARCOA= +kubeops.dev/falco-ui-server v0.0.3 h1:5ueKEUYEuOBEDC0TgyeCJ35JSA9ie5vid6OPbtPLvGo= kubeops.dev/falco-ui-server v0.0.3/go.mod h1:yZJGDnwVkT3Fu7nzn2znsY8/37zn6bzATfze9F90+54= kubeops.dev/scanner v0.0.17 h1:zaIggzl52gYDQAgtBJ+3hzGGkNJuVSwh0R4O7ZS3lSo= kubeops.dev/scanner v0.0.17/go.mod h1:tNs3FF3jeJ0VoOx8beePIfs3VxThweyu11YK0yc6OhE= diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/kubedb.com/v1alpha2/mongodbs.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/kubedb.com/v1alpha2/mongodbs.yaml index 52f4250a1..671dda13a 100644 --- a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/kubedb.com/v1alpha2/mongodbs.yaml +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/kubedb.com/v1alpha2/mongodbs.yaml @@ -108,12 +108,13 @@ spec: command: - bash - -c - - mongosh admin -u "$MONGO_INITDB_ROOT_USERNAME" -p "$MONGO_INITDB_ROOT_PASSWORD" + - mongo admin -u "$MONGO_INITDB_ROOT_USERNAME" -p "$MONGO_INITDB_ROOT_PASSWORD" container: mongodb help: | show dbs; if: - condition: '{{- if or (hasPrefix "percona-" .spec.version) (hasPrefix "3." .spec.version) + condition: '{{- if or (hasPrefix "percona-3" .spec.version) (hasPrefix "percona-4" + .spec.version) (hasPrefix "percona-5" .spec.version) (hasPrefix "3." .spec.version) (hasPrefix "4." .spec.version) (hasPrefix "5." .spec.version) }}true{{ else }}false{{ end -}}' serviceNameTemplate: '{{- .metadata.name -}}' @@ -126,7 +127,8 @@ spec: help: | show dbs; if: - condition: '{{- if or (hasPrefix "percona-" .spec.version) (hasPrefix "3." .spec.version) + condition: '{{- if or (hasPrefix "percona-3" .spec.version) (hasPrefix "percona-4" + .spec.version) (hasPrefix "percona-5" .spec.version) (hasPrefix "3." .spec.version) (hasPrefix "4." .spec.version) (hasPrefix "5." .spec.version) }}false{{ else }}true{{ end -}}' serviceNameTemplate: '{{- .metadata.name -}}' diff --git a/vendor/modules.txt b/vendor/modules.txt index 9e1e4f159..3555be24c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1959,7 +1959,7 @@ kmodules.xyz/monitoring-agent-api/client ## explicit; go 1.21.5 kmodules.xyz/offshoot-api/api/v1 kmodules.xyz/offshoot-api/api/v2 -# kmodules.xyz/resource-metadata v0.18.2-0.20240313052239-425c691548da +# kmodules.xyz/resource-metadata v0.18.2-0.20240313070556-32538e598f18 ## explicit; go 1.22.0 kmodules.xyz/resource-metadata/apis/core/install kmodules.xyz/resource-metadata/apis/core/v1alpha1