Skip to content

Commit

Permalink
feat: autogenerate HostAliases documentation and structure in CRDs
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Novák <[email protected]>
  • Loading branch information
MioOgbeni committed Nov 23, 2024
1 parent 30e77bf commit 454fb67
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1310,37 +1310,32 @@ spec:
fluentBitConfigName:
description: Fluentbitconfig object associated with this Fluentbit
type: string
hostNetwork:
description: Host networking is requested for this pod. Use the host's
network namespace. If this option is set, the ports that will be
used must be specified. Default to false.
type: boolean
hostAliases:
description: HostAliases is an optional list of IPs and hostnames that will
be injected into the pod's hosts file if specified.
description: HostAliases is an optional list of IPs and hostnames
that will be injected into the pod's hosts file if specified.
items:
description: HostAlias holds the mapping between IP and hostnames
description: |-
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
pod's hosts file.
properties:
ip:
description: IP address of the host file entry.
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])$"
type: string
hostnames:
description: Hostnames for the above IP address.
items:
type: string
pattern: "^[a-zA-Z0-9.-]+$"
minItems: 1
type: array
x-kubernetes-list-type: atomic
type: object
ip:
description: IP address of the host file entry.
type: string
required:
- ip
- hostnames
x-kubernetes-list-map-keys:
- ip
x-kubernetes-list-type: map
type: object
type: array
hostNetwork:
description: Host networking is requested for this pod. Use the host's
network namespace. If this option is set, the ports that will be
used must be specified. Default to false.
type: boolean
image:
description: Fluent Bit image.
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2814,30 +2814,25 @@ spec:
type: object
type: array
hostAliases:
description: HostAliases is an optional list of IPs and hostnames that will
be injected into the pod's hosts file if specified.
description: HostAliases is an optional list of IPs and hostnames
that will be injected into the pod's hosts file if specified.
items:
description: HostAlias holds the mapping between IP and hostnames
description: |-
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
pod's hosts file.
properties:
ip:
description: IP address of the host file entry.
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])$"
type: string
hostnames:
description: Hostnames for the above IP address.
items:
type: string
pattern: "^[a-zA-Z0-9.-]+$"
minItems: 1
type: array
x-kubernetes-list-type: atomic
type: object
ip:
description: IP address of the host file entry.
type: string
required:
- ip
- hostnames
x-kubernetes-list-map-keys:
- ip
x-kubernetes-list-type: map
type: object
type: array
image:
description: Fluentd image.
Expand Down
33 changes: 14 additions & 19 deletions config/crd/bases/fluentbit.fluent.io_fluentbits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1310,37 +1310,32 @@ spec:
fluentBitConfigName:
description: Fluentbitconfig object associated with this Fluentbit
type: string
hostNetwork:
description: Host networking is requested for this pod. Use the host's
network namespace. If this option is set, the ports that will be
used must be specified. Default to false.
type: boolean
hostAliases:
description: HostAliases is an optional list of IPs and hostnames that will
be injected into the pod's hosts file if specified.
description: HostAliases is an optional list of IPs and hostnames
that will be injected into the pod's hosts file if specified.
items:
description: HostAlias holds the mapping between IP and hostnames
description: |-
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
pod's hosts file.
properties:
ip:
description: IP address of the host file entry.
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])$"
type: string
hostnames:
description: Hostnames for the above IP address.
items:
type: string
pattern: "^[a-zA-Z0-9.-]+$"
minItems: 1
type: array
x-kubernetes-list-type: atomic
type: object
ip:
description: IP address of the host file entry.
type: string
required:
- ip
- hostnames
x-kubernetes-list-map-keys:
- ip
x-kubernetes-list-type: map
type: object
type: array
hostNetwork:
description: Host networking is requested for this pod. Use the host's
network namespace. If this option is set, the ports that will be
used must be specified. Default to false.
type: boolean
image:
description: Fluent Bit image.
type: string
Expand Down
23 changes: 9 additions & 14 deletions config/crd/bases/fluentd.fluent.io_fluentds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2814,30 +2814,25 @@ spec:
type: object
type: array
hostAliases:
description: HostAliases is an optional list of IPs and hostnames that will
be injected into the pod's hosts file if specified.
description: HostAliases is an optional list of IPs and hostnames
that will be injected into the pod's hosts file if specified.
items:
description: HostAlias holds the mapping between IP and hostnames
description: |-
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
pod's hosts file.
properties:
ip:
description: IP address of the host file entry.
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])$"
type: string
hostnames:
description: Hostnames for the above IP address.
items:
type: string
pattern: "^[a-zA-Z0-9.-]+$"
minItems: 1
type: array
x-kubernetes-list-type: atomic
type: object
ip:
description: IP address of the host file entry.
type: string
required:
- ip
- hostnames
x-kubernetes-list-map-keys:
- ip
x-kubernetes-list-type: map
type: object
type: array
image:
description: Fluentd image.
Expand Down
42 changes: 42 additions & 0 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17892,6 +17892,27 @@ spec:
fluentBitConfigName:
description: Fluentbitconfig object associated with this Fluentbit
type: string
hostAliases:
description: HostAliases is an optional list of IPs and hostnames
that will be injected into the pod's hosts file if specified.
items:
description: |-
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
pod's hosts file.
properties:
hostnames:
description: Hostnames for the above IP address.
items:
type: string
type: array
x-kubernetes-list-type: atomic
ip:
description: IP address of the host file entry.
type: string
required:
- ip
type: object
type: array
hostNetwork:
description: Host networking is requested for this pod. Use the host's
network namespace. If this option is set, the ports that will be
Expand Down Expand Up @@ -26937,6 +26958,27 @@ spec:
type: object
type: object
type: array
hostAliases:
description: HostAliases is an optional list of IPs and hostnames
that will be injected into the pod's hosts file if specified.
items:
description: |-
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
pod's hosts file.
properties:
hostnames:
description: Hostnames for the above IP address.
items:
type: string
type: array
x-kubernetes-list-type: atomic
ip:
description: IP address of the host file entry.
type: string
required:
- ip
type: object
type: array
image:
description: Fluentd image.
type: string
Expand Down
42 changes: 42 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17892,6 +17892,27 @@ spec:
fluentBitConfigName:
description: Fluentbitconfig object associated with this Fluentbit
type: string
hostAliases:
description: HostAliases is an optional list of IPs and hostnames
that will be injected into the pod's hosts file if specified.
items:
description: |-
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
pod's hosts file.
properties:
hostnames:
description: Hostnames for the above IP address.
items:
type: string
type: array
x-kubernetes-list-type: atomic
ip:
description: IP address of the host file entry.
type: string
required:
- ip
type: object
type: array
hostNetwork:
description: Host networking is requested for this pod. Use the host's
network namespace. If this option is set, the ports that will be
Expand Down Expand Up @@ -26937,6 +26958,27 @@ spec:
type: object
type: object
type: array
hostAliases:
description: HostAliases is an optional list of IPs and hostnames
that will be injected into the pod's hosts file if specified.
items:
description: |-
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
pod's hosts file.
properties:
hostnames:
description: Hostnames for the above IP address.
items:
type: string
type: array
x-kubernetes-list-type: atomic
ip:
description: IP address of the host file entry.
type: string
required:
- ip
type: object
type: array
image:
description: Fluentd image.
type: string
Expand Down

0 comments on commit 454fb67

Please sign in to comment.