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

New approach to peer config #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
134 changes: 89 additions & 45 deletions config/crd/bases/workload.nephio.org_amfdeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,55 +265,99 @@ spec:
maxLength: 253
minLength: 1
type: string
peers:
description: Peers defines the peer configuration associated
with the network instance
items:
description: A PeerConfig defines the peer configuration
properties:
ipv4:
description: IPv4 defines the ipv4 configuration of the
peer
properties:
address:
description: Address defines the IPv4 address and
prefix length in CIDR notation [IP prefix, range
IPv4 with host bits]
type: string
gateway:
description: Gateway defines the IPv4 address associated
to the interface as a gateway
type: string
required:
- address
type: object
ipv6:
description: IPv6 defines the ipv6 configuration of the
peer
properties:
address:
description: Address defines the IPv6 address and
prefix length in CIDR notation [IP prefix, range
IPv6 with host bits]
type: string
gateway:
description: Gateway defines the IPv6 address associated
to the interface as a gateway
type: string
required:
- address
type: object
name:
description: Name defines the name of the data network
maxLength: 253
minLength: 1
type: string
type: object
type: array
required:
- name
type: object
type: array
peers:
description: Peers defines the peers the network function is associated
with
items:
description: A PeerConfig defines the peer configuration
properties:
ipv4:
description: IPv4 defines the ipv4 configuration of the peer
properties:
address:
description: Address defines the IPv4 address and prefix
length in CIDR notation [IP prefix, range IPv4 with host
bits]
type: string
gateway:
description: Gateway defines the IPv4 address associated
to the interface as a gateway
type: string
required:
- address
type: object
ipv6:
description: IPv6 defines the ipv6 configuration of the peer
properties:
address:
description: Address defines the IPv6 address and prefix
length in CIDR notation [IP prefix, range IPv6 with host
bits]
type: string
gateway:
description: Gateway defines the IPv6 address associated
to the interface as a gateway
type: string
required:
- address
type: object
labels:
additionalProperties:
type: string
description: Labels define metadata assoicated with the peer
configuration
type: object
name:
description: Name defines the name of the data network
maxLength: 253
minLength: 1
type: string
networkInstance:
description: NetworkInstance defines the networkInstance to
which this peer config belongs Name and optionally Namespace
is used here
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: 'If referring to a piece of an object instead
of an entire object, this string should contain a valid
JSON/Go field access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container
within a pod, this would take on a value like: "spec.containers{name}"
(where "name" refers to the name of the container that
triggered the event) or if no container name is specified
"spec.containers[2]" (container with index 2 in this pod).
This syntax is chosen only to have some well-defined way
of referencing a part of an object. TODO: this design
is not final and this field is subject to change in the
future.'
type: string
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
resourceVersion:
description: 'Specific resourceVersion to which this reference
is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
type: string
uid:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
x-kubernetes-map-type: atomic
type: object
type: array
type: object
status:
properties:
Expand Down
134 changes: 89 additions & 45 deletions config/crd/bases/workload.nephio.org_smfdeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,55 +265,99 @@ spec:
maxLength: 253
minLength: 1
type: string
peers:
description: Peers defines the peer configuration associated
with the network instance
items:
description: A PeerConfig defines the peer configuration
properties:
ipv4:
description: IPv4 defines the ipv4 configuration of the
peer
properties:
address:
description: Address defines the IPv4 address and
prefix length in CIDR notation [IP prefix, range
IPv4 with host bits]
type: string
gateway:
description: Gateway defines the IPv4 address associated
to the interface as a gateway
type: string
required:
- address
type: object
ipv6:
description: IPv6 defines the ipv6 configuration of the
peer
properties:
address:
description: Address defines the IPv6 address and
prefix length in CIDR notation [IP prefix, range
IPv6 with host bits]
type: string
gateway:
description: Gateway defines the IPv6 address associated
to the interface as a gateway
type: string
required:
- address
type: object
name:
description: Name defines the name of the data network
maxLength: 253
minLength: 1
type: string
type: object
type: array
required:
- name
type: object
type: array
peers:
description: Peers defines the peers the network function is associated
with
items:
description: A PeerConfig defines the peer configuration
properties:
ipv4:
description: IPv4 defines the ipv4 configuration of the peer
properties:
address:
description: Address defines the IPv4 address and prefix
length in CIDR notation [IP prefix, range IPv4 with host
bits]
type: string
gateway:
description: Gateway defines the IPv4 address associated
to the interface as a gateway
type: string
required:
- address
type: object
ipv6:
description: IPv6 defines the ipv6 configuration of the peer
properties:
address:
description: Address defines the IPv6 address and prefix
length in CIDR notation [IP prefix, range IPv6 with host
bits]
type: string
gateway:
description: Gateway defines the IPv6 address associated
to the interface as a gateway
type: string
required:
- address
type: object
labels:
additionalProperties:
type: string
description: Labels define metadata assoicated with the peer
configuration
type: object
name:
description: Name defines the name of the data network
maxLength: 253
minLength: 1
type: string
networkInstance:
description: NetworkInstance defines the networkInstance to
which this peer config belongs Name and optionally Namespace
is used here
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: 'If referring to a piece of an object instead
of an entire object, this string should contain a valid
JSON/Go field access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container
within a pod, this would take on a value like: "spec.containers{name}"
(where "name" refers to the name of the container that
triggered the event) or if no container name is specified
"spec.containers[2]" (container with index 2 in this pod).
This syntax is chosen only to have some well-defined way
of referencing a part of an object. TODO: this design
is not final and this field is subject to change in the
future.'
type: string
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
resourceVersion:
description: 'Specific resourceVersion to which this reference
is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
type: string
uid:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
x-kubernetes-map-type: atomic
type: object
type: array
type: object
status:
properties:
Expand Down
Loading