Skip to content

Commit 90c23ce

Browse files
authored
OLM forms, fix display name generation for mac (#942)
1 parent 1a42600 commit 90c23ce

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

bundle/manifests/netobserv-operator.clusterserviceversion.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,15 +768,15 @@ spec:
768768
path: loki.manual.querierUrl
769769
- displayName: Status url
770770
path: loki.manual.statusUrl
771-
- displayName: TenantID
771+
- displayName: Tenant id
772772
path: loki.manual.tenantID
773773
- displayName: Ingester url
774774
path: loki.microservices.ingesterUrl
775775
- displayName: Querier url
776776
path: loki.microservices.querierUrl
777-
- displayName: TenantID
777+
- displayName: Tenant id
778778
path: loki.microservices.tenantID
779-
- displayName: TenantID
779+
- displayName: Tenant id
780780
path: loki.monolithic.tenantID
781781
- displayName: Url
782782
path: loki.monolithic.url

hack/crd2csvSpecDesc.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ process_property() {
2929
false
3030
return
3131
fi
32-
local displayName=$(echo $logicPath | sed 's/.*\.//' | sed 's/\([A-Z]\)\([a-z]\)/ \L\1\2/g' | sed 's/.*/\u&/' )
32+
local displayName=$(echo $logicPath | sed 's/.*\.//' | sed 's/\([a-z]\)\([A-Z]\)/\1 \2/g' )
33+
displayName=${displayName,,} # lower case
34+
displayName=${displayName^} # first letter capital
3335
# local description=$(cat $crd | yq "$yamlPath.description" | sed 's/`/"/g' | sed 's/<br>//g')
3436
if [[ $(cat $csv | yq "$csvRoot[] | select(.path==\"$logicPath\")") != "" ]]; then
3537
if [[ $(cat $csv | yq "$csvRoot[] | select(.path==\"$logicPath\") | has(\"displayName\")") == false ]]; then

0 commit comments

Comments
 (0)