Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
55feed36
Commit
55feed36
authored
Oct 31, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add chart for nr_pbchsim.otherSCS execution
parent
22dd8255
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
191 additions
and
1 deletion
+191
-1
charts/physims/charts/nr-pbchsim.scs/Chart.yaml
charts/physims/charts/nr-pbchsim.scs/Chart.yaml
+36
-0
charts/physims/charts/nr-pbchsim.scs/templates/_helpers.tpl
charts/physims/charts/nr-pbchsim.scs/templates/_helpers.tpl
+63
-0
charts/physims/charts/nr-pbchsim.scs/templates/job.yaml
charts/physims/charts/nr-pbchsim.scs/templates/job.yaml
+42
-0
charts/physims/charts/nr-pbchsim.scs/values.yaml
charts/physims/charts/nr-pbchsim.scs/values.yaml
+48
-0
charts/physims/values.yaml
charts/physims/values.yaml
+1
-0
ci-scripts/cls_physim1.py
ci-scripts/cls_physim1.py
+1
-1
No files found.
charts/physims/charts/nr-pbchsim.scs/Chart.yaml
0 → 100644
View file @
55feed36
apiVersion
:
v1
name
:
oai-nr-pbchsim-scs
description
:
A Helm subchart for nr-pbchsim network function ("Other SCS" tests)
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type
:
application
icon
:
http://www.openairinterface.org/wp-content/uploads/2015/06/cropped-oai_final_logo.png
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version
:
0.1.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion
:
v1
keywords
:
-
Physical Simulator
-
nr-pbchsim
-
RAN
-
5G
sources
:
-
https://gitlab.eurecom.fr/oai/openairinterface5g
maintainers
:
-
name
:
OPENAIRINTERFACE
email
:
contact@openairinterface.org
charts/physims/charts/nr-pbchsim.scs/templates/_helpers.tpl
0 → 100644
View file @
55feed36
{{
/*
vim
:
set
filetype
=
mustache
:
*/
}}
{
{
/*
Expand
the
name
of
the
chart
.
*/
}
}
{{- define "oai-nr-pbchsim-scs.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{
{
/*
Create
a
default
fully
qualified
app
name
.
We
truncate
at
63
chars
because
some
Kubernetes
name
fields
are
limited
to
this
(
by
the
DNS
naming
spec
).
If
release
name
contains
chart
name
it
will
be
used
as
a
full
name
.
*/
}
}
{{- define "oai-nr-pbchsim-scs.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{
{
/*
Create
chart
name
and
version
as
used
by
the
chart
label
.
*/
}
}
{{- define "oai-nr-pbchsim-scs.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{
{
/*
Common
labels
*/
}
}
{{- define "oai-nr-pbchsim-scs.labels" -}}
helm.sh/chart: {{ include "oai-nr-pbchsim-scs.chart" . }}
{{ include "oai-nr-pbchsim-scs.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{
{
/*
Selector
labels
*/
}
}
{{- define "oai-nr-pbchsim-scs.selectorLabels" -}}
app.kubernetes.io/name: {{ include "oai-nr-pbchsim-scs.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{
{
/*
Create
the
name
of
the
service
account
to
use
*/
}
}
{{- define "oai-nr-pbchsim-scs.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{ default (include "oai-nr-pbchsim-scs.fullname" .) .Values.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}
charts/physims/charts/nr-pbchsim.scs/templates/job.yaml
0 → 100644
View file @
55feed36
apiVersion
:
batch/v1
kind
:
Job
metadata
:
name
:
{{
.Chart.Name
}}
spec
:
template
:
metadata
:
labels
:
app
:
physim
spec
:
securityContext
:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
{{
- if .Values.imagePullSecrets
}}
imagePullSecrets
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
containers
:
-
name
:
physim
image
:
"
{{
.Values.global.image.repository
}}:{{
.Values.global.image.version
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
env
:
-
name
:
OPENAIR_DIR
value
:
/opt/oai-physim
command
:
[
"
/bin/sh"
,
"
-c"
]
args
:
-
>
cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.otherSCS" -d bin/ &&
echo "FINISHED" && sleep infinity
dnsPolicy
:
ClusterFirst
restartPolicy
:
Never
schedulerName
:
default-scheduler
serviceAccountName
:
{{
.Values.global.serviceAccountName
}}
terminationGracePeriodSeconds
:
30
{{
- if .Values.global.nodeSelector
}}
nodeSelector
:
{{
- toYaml .Values.global.nodeSelector | nindent 12
}}
{{
- end
}}
{{
- if .Values.global.nodeName.nrpbchsim273rb
}}
nodeName
:
{{
.Values.global.nodeName.nrpbchsim273rb
}}
{{
- end
}}
charts/physims/charts/nr-pbchsim.scs/values.yaml
0 → 100644
View file @
55feed36
# Default values for oai-nr-pbchsim-scs
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount
:
1
image
:
# pullPolicy: IfNotPresent or Never or Always
pullPolicy
:
Always
imagePullSecrets
:
[]
nameOverride
:
"
"
fullnameOverride
:
"
"
serviceAccount
:
# Specifies whether a service account should be created
create
:
true
# Annotations to add to the service account
annotations
:
{}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name
:
"
oai-nr-pbchsim-scs"
podSecurityContext
:
runAsUser
:
0
runAsGroup
:
0
securityContext
:
privileged
:
false
resources
:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
nodeSelector
:
{}
tolerations
:
[]
affinity
:
{}
charts/physims/values.yaml
View file @
55feed36
...
...
@@ -27,6 +27,7 @@ global:
nrpbschsim106rb
:
dedale
nrpbchsim217rb
:
dedale
nrpbchsim273rb
:
dedale
nrpbchsimscs
:
dedale
nrpsbchsim
:
dedale
nrprachsim
:
dedale
nrpucchsim
:
dedale
...
...
ci-scripts/cls_physim1.py
View file @
55feed36
...
...
@@ -163,7 +163,7 @@ class PhySim:
mySSH
.
command
(
'oc get pods -o wide -l app=physim | tee -a cmake_targets/log/physim_pods_summary.txt'
,
'\$'
,
30
,
resync
=
True
)
running_count
=
mySSH
.
getBefore
().
count
(
'Running'
)
completed_count
=
mySSH
.
getBefore
().
count
(
'Completed'
)
if
(
running_count
+
completed_count
)
==
2
2
:
if
(
running_count
+
completed_count
)
==
2
3
:
logging
.
debug
(
'
\u001B
[1m Running the physim test Scenarios
\u001B
[0m'
)
isRunning
=
True
podNames
=
re
.
findall
(
'oai-[\S\d\w]+'
,
mySSH
.
getBefore
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment