Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Merge requests
!312
Resolve "Enable gRPC reflection in Python-based services"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Enable gRPC reflection in Python-based services"
feat/19-enable-grpc-reflection-in-python-based-services
into
develop
Overview
0
Commits
2
Pipelines
3
Changes
16
Merged
Lluis Gifre Renom
requested to merge
feat/19-enable-grpc-reflection-in-python-based-services
into
develop
8 months ago
Overview
0
Commits
2
Pipelines
3
Changes
16
Expand
Closes
#19 (closed)
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
146e07b0
2 commits,
8 months ago
16 files
+
289
−
26
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
scripts/grpcurl_inspect_context.sh
0 → 100755
+
44
−
0
Options
#!/bin/bash
# Copyright 2022-2024 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
########################################################################################################################
# Define your deployment settings here
########################################################################################################################
# If not already set, set the name of the Kubernetes namespace to deploy to.
export
TFS_K8S_NAMESPACE
=
${
TFS_K8S_NAMESPACE
:-
"tfs"
}
########################################################################################################################
# Automated steps start here
########################################################################################################################
# Ref: https://github.com/fullstorydev/grpcurl
source
tfs_runtime_env_vars.sh
GRPC_ENDPOINT
=
"
$CONTEXTSERVICE_SERVICE_HOST
:
$CONTEXTSERVICE_SERVICE_PORT_GRPC
"
GRP_CURL_CMD
=
"docker run fullstorydev/grpcurl --plaintext
$GRPC_ENDPOINT
"
GRPC_SERVICES
=
`
$GRP_CURL_CMD
list
`
echo
"gRPC Services found in
$GRPC_ENDPOINT
:"
printf
"
\n
"
for
GRPC_SERVICE
in
$GRPC_SERVICES
;
do
echo
"gRPC Service:
$GRPC_SERVICE
"
$GRP_CURL_CMD
describe
$GRPC_SERVICE
printf
"
\n
"
done
echo
"Done!"
Loading