You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.7 KiB

  1. apiVersion: apiextensions.k8s.io/v1beta1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. name: ips.kubeovn.io
  5. spec:
  6. group: kubeovn.io
  7. version: v1
  8. scope: Cluster
  9. names:
  10. plural: ips
  11. singular: ip
  12. kind: IP
  13. shortNames:
  14. - ip
  15. additionalPrinterColumns:
  16. - name: IP
  17. type: string
  18. JSONPath: .spec.ipAddress
  19. - name: Mac
  20. type: string
  21. JSONPath: .spec.macAddress
  22. - name: Node
  23. type: string
  24. JSONPath: .spec.nodeName
  25. - name: Subnet
  26. type: string
  27. JSONPath: .spec.subnet
  28. ---
  29. apiVersion: apiextensions.k8s.io/v1beta1
  30. kind: CustomResourceDefinition
  31. metadata:
  32. name: subnets.kubeovn.io
  33. spec:
  34. group: kubeovn.io
  35. version: v1
  36. scope: Cluster
  37. names:
  38. plural: subnets
  39. singular: subnet
  40. kind: Subnet
  41. shortNames:
  42. - subnet
  43. subresources:
  44. status: {}
  45. additionalPrinterColumns:
  46. - name: Provider
  47. type: string
  48. JSONPath: .spec.provider
  49. - name: Protocol
  50. type: string
  51. JSONPath: .spec.protocol
  52. - name: CIDR
  53. type: string
  54. JSONPath: .spec.cidrBlock
  55. - name: Private
  56. type: boolean
  57. JSONPath: .spec.private
  58. - name: NAT
  59. type: boolean
  60. JSONPath: .spec.natOutgoing
  61. - name: Default
  62. type: boolean
  63. JSONPath: .spec.default
  64. - name: GatewayType
  65. type: string
  66. JSONPath: .spec.gatewayType
  67. - name: Used
  68. type: integer
  69. JSONPath: .status.usingIPs
  70. - name: Available
  71. type: integer
  72. JSONPath: .status.availableIPs
  73. validation:
  74. openAPIV3Schema:
  75. properties:
  76. spec:
  77. required: ["cidrBlock"]
  78. properties:
  79. cidrBlock:
  80. type: "string"
  81. gateway:
  82. type: "string"