Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating patch release #68

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions 5g-control-plane/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: SD-Core 5G control plane services
name: 5g-control-plane
icon: https://guide.opencord.org/logos/cord.svg

version: 2.2.0
version: 2.2.1

dependencies:
- name: mongodb
Expand All @@ -21,8 +21,4 @@ dependencies:
version: 20.0.4
repository: https://charts.bitnami.com/bitnami
condition: kafka.deploy
- name: cert-manager
version: v1.16.2
alias: certmanager
repository: https://charts.jetstack.io
condition: certmanager.enabled

11 changes: 11 additions & 0 deletions 5g-control-plane/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,14 @@ Expand the name of the chart.
{{- define "5g-control-plane.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Generate certificates for 5GC-CP
*/}}
{{- define "5g-control-plane.gen-certs" -}}
{{- $altNames := list ( printf "%s.%s" (include "5g-control-plane.name" .) .Release.Namespace ) ( printf "%s.%s.svc" (include "5g-control-plane.name" .) .Release.Namespace ) -}}
{{- $ca := genCA "5g-control-plane-ca" 365 -}}
{{- $cert := genSignedCert ( include "5g-control-plane.name" . ) nil $altNames 365 $ca -}}
tls.crt: {{ $cert.Cert | b64enc }}
tls.key: {{ $cert.Key | b64enc }}
{{- end -}}
46 changes: 0 additions & 46 deletions 5g-control-plane/templates/ca-issuer.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions 5g-control-plane/templates/certificate-amf.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions 5g-control-plane/templates/certificate-ausf.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions 5g-control-plane/templates/certificate-nrf.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions 5g-control-plane/templates/certificate-nssf.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions 5g-control-plane/templates/certificate-pcf.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions 5g-control-plane/templates/certificate-smf.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions 5g-control-plane/templates/certificate-udm.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions 5g-control-plane/templates/certificate-udr.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions 5g-control-plane/templates/secret-amf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{/*
# Copyright 2024 Intel Corporation

# SPDX-License-Identifier: Apache-2.0
*/}}

apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
name: amf-certs
labels:
{{ tuple "amf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
annotations:
"helm.sh/hook": "pre-install"
"helm.sh/hook-delete-policy": "before-hook-creation"
{{- with .Values.config.amf.serviceAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
{{ ( include "5g-control-plane.gen-certs" . ) | indent 2 }}
21 changes: 21 additions & 0 deletions 5g-control-plane/templates/secret-ausf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{/*
# Copyright 2024 Intel Corporation

# SPDX-License-Identifier: Apache-2.0
*/}}

apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
name: ausf-certs
labels:
{{ tuple "ausf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
annotations:
"helm.sh/hook": "pre-install"
"helm.sh/hook-delete-policy": "before-hook-creation"
{{- with .Values.config.ausf.serviceAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
{{ ( include "5g-control-plane.gen-certs" . ) | indent 2 }}
21 changes: 21 additions & 0 deletions 5g-control-plane/templates/secret-nrf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{/*
# Copyright 2024 Intel Corporation

# SPDX-License-Identifier: Apache-2.0
*/}}

apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
name: nrf-certs
labels:
{{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
annotations:
"helm.sh/hook": "pre-install"
"helm.sh/hook-delete-policy": "before-hook-creation"
{{- with .Values.config.nrf.serviceAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
{{ ( include "5g-control-plane.gen-certs" . ) | indent 2 }}
21 changes: 21 additions & 0 deletions 5g-control-plane/templates/secret-nssf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{/*
# Copyright 2024 Intel Corporation

# SPDX-License-Identifier: Apache-2.0
*/}}

apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
name: nssf-certs
labels:
{{ tuple "nssf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
annotations:
"helm.sh/hook": "pre-install"
"helm.sh/hook-delete-policy": "before-hook-creation"
{{- with .Values.config.nssf.serviceAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
{{ ( include "5g-control-plane.gen-certs" . ) | indent 2 }}
Loading
Loading