mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
132 lines
4.4 KiB
YAML
132 lines
4.4 KiB
YAML
---
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.17.1
|
|
name: nbpolicies.netbird.io
|
|
spec:
|
|
group: netbird.io
|
|
names:
|
|
kind: NBPolicy
|
|
listKind: NBPolicyList
|
|
plural: nbpolicies
|
|
singular: nbpolicy
|
|
scope: Cluster
|
|
versions:
|
|
- name: v1
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: NBPolicy is the Schema for the nbpolicies 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: NBPolicySpec defines the desired state of NBPolicy.
|
|
properties:
|
|
bidirectional:
|
|
default: true
|
|
type: boolean
|
|
description:
|
|
type: string
|
|
destinationGroups:
|
|
items:
|
|
minLength: 1
|
|
type: string
|
|
type: array
|
|
name:
|
|
description: Name Policy name
|
|
minLength: 1
|
|
type: string
|
|
ports:
|
|
items:
|
|
format: int32
|
|
maximum: 65535
|
|
minimum: 0
|
|
type: integer
|
|
type: array
|
|
protocols:
|
|
items:
|
|
enum:
|
|
- tcp
|
|
- udp
|
|
type: string
|
|
type: array
|
|
sourceGroups:
|
|
items:
|
|
minLength: 1
|
|
type: string
|
|
type: array
|
|
required:
|
|
- name
|
|
type: object
|
|
status:
|
|
description: NBPolicyStatus defines the observed state of NBPolicy.
|
|
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
|
|
lastUpdatedAt:
|
|
format: date-time
|
|
type: string
|
|
managedServiceList:
|
|
items:
|
|
type: string
|
|
type: array
|
|
tcpPolicyID:
|
|
type: string
|
|
udpPolicyID:
|
|
type: string
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|
|
subresources:
|
|
status: {}
|