-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Sample rApp package for ics producer"
- Loading branch information
Showing
13 changed files
with
656 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...app-generator/rapp-sample-ics-producer/Artifacts/Deployment/HELM/ics-producer/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
6 changes: 6 additions & 0 deletions
6
...rapp-generator/rapp-sample-ics-producer/Artifacts/Deployment/HELM/ics-producer/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v2 | ||
name: ics-producer | ||
description: A Helm chart for Kubernetes | ||
type: application | ||
version: 0.1.0 | ||
appVersion: "1.16.0" |
41 changes: 41 additions & 0 deletions
41
...le-ics-producer/Artifacts/Deployment/HELM/ics-producer/templates/producer-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# ========================LICENSE_START================================= | ||
# O-RAN-SC | ||
# | ||
# Copyright (C) 2024: OpenInfra Foundation Europe | ||
# | ||
# 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. | ||
# ========================LICENSE_END=================================== | ||
# | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Values.producer.name }} | ||
spec: | ||
replicas: {{ .Values.producer.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app: {{ .Values.producer.name }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .Values.producer.name }} | ||
spec: | ||
containers: | ||
- name: {{ .Values.producer.name }} | ||
image: "{{ .Values.producer.image.repository }}:{{ .Values.producer.image.tag }}" | ||
ports: | ||
- containerPort: {{ .Values.producer.service.port }} | ||
env: | ||
- name: KAFKA_SERVERS | ||
value: "{{ .Values.kafka.host }}:{{ .Values.kafka.port }}" |
31 changes: 31 additions & 0 deletions
31
...ample-ics-producer/Artifacts/Deployment/HELM/ics-producer/templates/producer-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# ========================LICENSE_START================================= | ||
# O-RAN-SC | ||
# | ||
# Copyright (C) 2024: OpenInfra Foundation Europe | ||
# | ||
# 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. | ||
# ========================LICENSE_END=================================== | ||
# | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .Values.producer.name }} | ||
spec: | ||
type: NodePort | ||
ports: | ||
- port: {{ .Values.producer.service.port }} | ||
targetPort: {{ .Values.producer.service.port }} | ||
nodePort: {{ .Values.producer.service.nodePort }} | ||
selector: | ||
app: {{ .Values.producer.name }} |
32 changes: 32 additions & 0 deletions
32
...app-generator/rapp-sample-ics-producer/Artifacts/Deployment/HELM/ics-producer/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# | ||
# ========================LICENSE_START================================= | ||
# O-RAN-SC | ||
# | ||
# Copyright (C) 2024: OpenInfra Foundation Europe | ||
# | ||
# 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. | ||
# ========================LICENSE_END=================================== | ||
# | ||
producer: | ||
name: kafka-producer | ||
replicaCount: 1 | ||
image: | ||
repository: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-sample-icsproducer | ||
tag: 0.0.1 | ||
service: | ||
port: 8080 | ||
nodePort: 30080 | ||
|
||
kafka: | ||
host: kafka.default.svc.cluster.local | ||
port: 9092 |
48 changes: 48 additions & 0 deletions
48
sample-rapp-generator/rapp-sample-ics-producer/Definitions/asd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# ============LICENSE_START======================================================= | ||
# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. | ||
# ================================================================================ | ||
# 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. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# ============LICENSE_END========================================================= | ||
|
||
tosca_definitions_version: tosca_simple_yaml_1_2 | ||
|
||
description: rApp ICS Producer | ||
|
||
imports: | ||
- asd_types.yaml | ||
|
||
topology_template: | ||
node_templates: | ||
applicationServiceDescriptor: | ||
type: tosca.nodes.asd | ||
description: "rapp-ics-producer" | ||
properties: | ||
descriptor_id: 2cd6a567-2e33-4960-8ef7-1cc519c998c5 | ||
descriptor_invariant_id: 3f8a5e1b-68f1-42e5-89d0-47090dd0ef5b | ||
descriptor_version: 1.0 | ||
schema_version: 2.0 | ||
function_description: rApp description | ||
provider: Ericsson Software Technology (O-RAN SC NONRTRIC team) | ||
application_name: rapp-ics-producer | ||
application_version: 1.0 | ||
artifacts: | ||
producer: | ||
type: tosca.artifacts.asd.deploymentItem | ||
file: "Artifacts/Deployment/HELM/ics-producer-0.1.0.tgz" | ||
properties: | ||
artifact_type: "helm_chart" | ||
target_server: "chartmuseum" | ||
target_server_uri: "UPDATE_THIS_CHART_MUSEUM_POST_CHARTS_URI" | ||
item_id: 1 |
90 changes: 90 additions & 0 deletions
90
sample-rapp-generator/rapp-sample-ics-producer/Definitions/asd_types.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# ============LICENSE_START======================================================= | ||
# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. | ||
# ================================================================================ | ||
# 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. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# ============LICENSE_END========================================================= | ||
|
||
tosca_definitions_version: tosca_simple_yaml_1_2 | ||
description: ASD types definitions version 0.1 | ||
node_types: | ||
tosca.nodes.asd: | ||
derived_from: tosca.nodes.Root | ||
description: "The ASD node type" | ||
version: 0.1 | ||
properties: | ||
descriptor_id: | ||
type: string # UUID | ||
required: true | ||
description: Identifier of this ASD. It is in UUID format as specified in RFC 4122 | ||
descriptor_invariant_id: | ||
type: string # UUID | ||
required: true | ||
description: > | ||
Identifier of this descriptor in a version independent manner. This attribute | ||
is invariant across versions of ASD. It is in UUID format as specified in RFC 4122 | ||
descriptor_version: | ||
type: string | ||
required: true | ||
description: Identifies the version of the ASD. | ||
schema_version: | ||
type: string | ||
required: true | ||
description: Identifies the Identifies the version of this ASD’s schema. | ||
function_description: | ||
type: string | ||
required: false | ||
description: Description of the application service described by this ASD. | ||
provider: | ||
type: string | ||
required: true | ||
description: Identifies the provider of the ASD. | ||
application_name: | ||
type: string | ||
required: true | ||
description: Name to identify the application service described by this ASD | ||
application_version: | ||
type: string | ||
required: true | ||
description: Identifies the version of the application service described by this ASD. | ||
|
||
artifact_types: | ||
tosca.artifacts.asd.deploymentItem: | ||
version: 0.1 | ||
derived_from: tosca.artifacts.Root | ||
description: "Describes the artifact type of asd deployment item" | ||
file: "Relative path of the artifact in the package" | ||
properties: | ||
item_id: | ||
description: "The identifier of this asd deployment item" | ||
required: true | ||
type: string | ||
artifact_type: | ||
description: > | ||
Specify artifact type. | ||
required: true | ||
type: string | ||
constraints: | ||
- valid_values: ["helm_chart"] | ||
target_server: | ||
description: > | ||
Specify target server for artifact. | ||
required: true | ||
type: string | ||
constraints: | ||
- valid_values: [ "chartmuseum" ] | ||
target_server_uri: | ||
description: "URI of the target server" | ||
required: true | ||
type: string |
Oops, something went wrong.