Files
netbird-kubernetes-operator/charts/netbird-operator/crds/netbird.io_nbresources.yaml
T

157 lines
5.1 KiB
YAML
Raw Normal View History

2025-03-06 10:57:45 +02:00
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.20.1
2025-03-06 10:57:45 +02:00
name: nbresources.netbird.io
spec:
group: netbird.io
names:
kind: NBResource
listKind: NBResourceList
plural: nbresources
singular: nbresource
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: NBResource is the Schema for the nbresources API.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: NBResourceSpec defines the desired state of NBResource.
properties:
address:
minLength: 1
type: string
groups:
items:
minLength: 1
type: string
type: array
name:
minLength: 1
type: string
networkID:
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
2025-04-13 23:00:23 +02:00
policyFriendlyName:
additionalProperties:
type: string
type: object
2025-03-06 10:57:45 +02:00
policyName:
type: string
2025-04-13 23:00:23 +02:00
policySourceGroups:
items:
type: string
type: array
2025-03-06 10:57:45 +02:00
tcpPorts:
items:
format: int32
type: integer
type: array
udpPorts:
items:
format: int32
type: integer
type: array
required:
- address
- groups
- name
- networkID
type: object
status:
description: NBResourceStatus defines the observed state of NBResource.
properties:
conditions:
items:
description: NBCondition defines a condition in NBSetupKey status.
properties:
lastProbeTime:
description: Last time we probed the condition.
format: date-time
type: string
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
format: date-time
type: string
message:
description: Human-readable message indicating details about
last transition.
type: string
reason:
description: Unique, one-word, CamelCase reason for the condition's
last transition.
type: string
status:
description: |-
Status is the status of the condition.
Can be True, False, Unknown.
type: string
type:
description: Type is the type of the condition.
type: string
required:
- status
- type
type: object
type: array
groups:
items:
type: string
type: array
networkResourceID:
type: string
2025-04-13 23:00:23 +02:00
policyFriendlyName:
additionalProperties:
type: string
type: object
2025-03-06 10:57:45 +02:00
policyName:
type: string
2025-04-13 23:00:23 +02:00
policyNameMapping:
additionalProperties:
type: string
type: object
policySourceGroups:
items:
type: string
type: array
2025-03-06 10:57:45 +02:00
tcpPorts:
items:
format: int32
type: integer
type: array
udpPorts:
items:
format: int32
type: integer
type: array
type: object
type: object
served: true
storage: true
subresources:
status: {}