Skip to content

Commit

Permalink
Update resource-metadata for mongo exec command
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Mar 13, 2024
1 parent 58332da commit e125b35
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}'
Expand All @@ -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 -}}'
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e125b35

Please sign in to comment.