Skip to content

Commit

Permalink
feat(k8s): amour
Browse files Browse the repository at this point in the history
  • Loading branch information
uhthomas committed Oct 31, 2023
1 parent ca80052 commit 585813c
Show file tree
Hide file tree
Showing 409 changed files with 65,977 additions and 452 deletions.
133 changes: 133 additions & 0 deletions cue.mod/gen/github.com/cilium/cilium/api/v1/models/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
load("@com_github_tnarg_rules_cue//cue:cue.bzl", "cue_library")

cue_library(
name = "cue_models_library",
srcs = [
"address_go_gen.cue",
"address_pair_go_gen.cue",
"allocation_map_go_gen.cue",
"b_p_f_map_entry_go_gen.cue",
"b_p_f_map_go_gen.cue",
"b_p_f_map_list_go_gen.cue",
"b_p_f_map_properties_go_gen.cue",
"b_p_f_map_status_go_gen.cue",
"backend_address_go_gen.cue",
"bandwidth_manager_go_gen.cue",
"bgp_graceful_restart_go_gen.cue",
"bgp_peer_families_go_gen.cue",
"bgp_peer_go_gen.cue",
"c_id_r_list_go_gen.cue",
"c_id_r_policy_go_gen.cue",
"c_n_i_chaining_status_go_gen.cue",
"cgroup_container_metadata_go_gen.cue",
"cgroup_dump_metadata_go_gen.cue",
"cgroup_pod_metadata_go_gen.cue",
"clock_source_go_gen.cue",
"cluster_mesh_status_go_gen.cue",
"cluster_node_status_go_gen.cue",
"cluster_nodes_response_go_gen.cue",
"cluster_status_go_gen.cue",
"configuration_map_go_gen.cue",
"controller_status_go_gen.cue",
"controller_statuses_go_gen.cue",
"daemon_configuration_go_gen.cue",
"daemon_configuration_spec_go_gen.cue",
"daemon_configuration_status_go_gen.cue",
"datapath_mode_go_gen.cue",
"debug_info_go_gen.cue",
"dns_lookup_go_gen.cue",
"doc_go_gen.cue",
"encryption_status_go_gen.cue",
"endpoint_change_request_go_gen.cue",
"endpoint_configuration_spec_go_gen.cue",
"endpoint_configuration_status_go_gen.cue",
"endpoint_datapath_configuration_go_gen.cue",
"endpoint_go_gen.cue",
"endpoint_health_go_gen.cue",
"endpoint_health_status_go_gen.cue",
"endpoint_identifiers_go_gen.cue",
"endpoint_networking_go_gen.cue",
"endpoint_policy_enabled_go_gen.cue",
"endpoint_policy_go_gen.cue",
"endpoint_policy_status_go_gen.cue",
"endpoint_state_go_gen.cue",
"endpoint_status_change_go_gen.cue",
"endpoint_status_go_gen.cue",
"endpoint_status_log_go_gen.cue",
"error_go_gen.cue",
"frontend_address_go_gen.cue",
"frontend_mapping_go_gen.cue",
"host_firewall_go_gen.cue",
"host_routing_go_gen.cue",
"hubble_status_go_gen.cue",
"identity_endpoints_go_gen.cue",
"identity_go_gen.cue",
"identity_range_go_gen.cue",
"ip_a_m_address_response_go_gen.cue",
"ip_a_m_response_go_gen.cue",
"ip_a_m_status_go_gen.cue",
"ip_list_entry_go_gen.cue",
"ip_list_entry_metadata_go_gen.cue",
"ip_v4_big_tcp_go_gen.cue",
"ip_v6_big_tcp_go_gen.cue",
"k8s_status_go_gen.cue",
"k_vstore_configuration_go_gen.cue",
"kube_proxy_replacement_go_gen.cue",
"l4_policy_go_gen.cue",
"l_r_p_backend_go_gen.cue",
"l_r_p_spec_go_gen.cue",
"label_configuration_go_gen.cue",
"label_configuration_spec_go_gen.cue",
"label_configuration_status_go_gen.cue",
"labels_go_gen.cue",
"map_event_go_gen.cue",
"masquerading_go_gen.cue",
"message_forwarding_statistics_go_gen.cue",
"metric_go_gen.cue",
"monitor_status_go_gen.cue",
"name_manager_go_gen.cue",
"named_ports_go_gen.cue",
"node_addressing_element_go_gen.cue",
"node_addressing_go_gen.cue",
"node_element_go_gen.cue",
"node_id_go_gen.cue",
"policy_go_gen.cue",
"policy_rule_go_gen.cue",
"policy_trace_result_go_gen.cue",
"port_go_gen.cue",
"prefilter_go_gen.cue",
"prefilter_spec_go_gen.cue",
"prefilter_status_go_gen.cue",
"proxy_redirect_go_gen.cue",
"proxy_statistics_go_gen.cue",
"proxy_status_go_gen.cue",
"recorder_filter_go_gen.cue",
"recorder_go_gen.cue",
"recorder_mask_go_gen.cue",
"recorder_mask_spec_go_gen.cue",
"recorder_mask_status_go_gen.cue",
"recorder_spec_go_gen.cue",
"recorder_status_go_gen.cue",
"remote_cluster_config_go_gen.cue",
"remote_cluster_go_gen.cue",
"remote_cluster_synced_go_gen.cue",
"request_response_statistics_go_gen.cue",
"selector_cache_go_gen.cue",
"selector_entry_go_gen.cue",
"selector_identity_mapping_go_gen.cue",
"service_go_gen.cue",
"service_spec_go_gen.cue",
"service_status_go_gen.cue",
"status_go_gen.cue",
"status_response_go_gen.cue",
"trace_from_go_gen.cue",
"trace_selector_go_gen.cue",
"trace_to_go_gen.cue",
"wireguard_interface_go_gen.cue",
"wireguard_peer_go_gen.cue",
"wireguard_status_go_gen.cue",
],
importpath = "github.com/cilium/cilium/api/v1/models",
visibility = ["//visibility:public"],
deps = ["//cue.mod/gen/github.com/go-openapi/strfmt:cue_strfmt_library"],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// Address IP address
//
// swagger:model Address
#Address: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// AddressPair Addressing information of an endpoint
//
// swagger:model AddressPair
#AddressPair: {
// IPv4 address
ipv4?: string @go(IPV4)

// UUID of IPv4 expiration timer
"ipv4-expiration-uuid"?: string @go(IPV4ExpirationUUID)

// IPAM pool from which this IPv4 address was allocated
"ipv4-pool-name"?: string @go(IPV4PoolName)

// IPv6 address
ipv6?: string @go(IPV6)

// UUID of IPv6 expiration timer
"ipv6-expiration-uuid"?: string @go(IPV6ExpirationUUID)

// IPAM pool from which this IPv6 address was allocated
"ipv6-pool-name"?: string @go(IPV6PoolName)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// AllocationMap Map of allocated IPs
//
// swagger:model AllocationMap
#AllocationMap: {[string]: string}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// BPFMapEntry BPF map cache entry
//
// swagger:model BPFMapEntry
#BPFMapEntry: {
// Desired action to be performed
// Enum: [ok insert delete]
"desired-action"?: string @go(DesiredAction)

// Key of map entry
key?: string @go(Key)

// Last error seen while performing desired action
"last-error"?: string @go(LastError)

// Value of map entry
value?: string @go(Value)
}

// BPFMapEntryDesiredActionOk captures enum value "ok"
#BPFMapEntryDesiredActionOk: "ok"

// BPFMapEntryDesiredActionInsert captures enum value "insert"
#BPFMapEntryDesiredActionInsert: "insert"

// BPFMapEntryDesiredActionDelete captures enum value "delete"
#BPFMapEntryDesiredActionDelete: "delete"
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// BPFMap BPF map definition and content
//
// swagger:model BPFMap
#BPFMap: {
// Contents of cache
cache: [...null | #BPFMapEntry] @go(Cache,[]*BPFMapEntry)

// Path to BPF map
path?: string @go(Path)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// BPFMapList List of BPF Maps
//
// swagger:model BPFMapList
#BPFMapList: {
// Array of open BPF map lists
maps: [...null | #BPFMap] @go(Maps,[]*BPFMap)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// BPFMapProperties BPF map properties
//
// swagger:model BPFMapProperties
#BPFMapProperties: {
// Name of the BPF map
name?: string @go(Name)

// Size of the BPF map
size?: int64 @go(Size)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// BPFMapStatus BPF map status
//
// +k8s:deepcopy-gen=true
//
// swagger:model BPFMapStatus
#BPFMapStatus: {
// Ratio of total system memory to use for dynamic sizing of BPF maps
"dynamic-size-ratio"?: float64 @go(DynamicSizeRatio)

// BPF maps
maps: [...null | #BPFMapProperties] @go(Maps,[]*BPFMapProperties)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// BackendAddress Service backend address
//
// swagger:model BackendAddress
#BackendAddress: {
// Layer 3 address
// Required: true
ip?: null | string @go(IP,*string)

// Optional name of the node on which this backend runs
nodeName?: string @go(NodeName)

// Layer 4 port number
port?: uint16 @go(Port)

// Indicator if this backend is preferred in the context of clustermesh service affinity. The value is set based
// on related annotation of global service. Applicable for active state only.
preferred?: bool @go(Preferred)

// State of the backend for load-balancing service traffic
// Enum: [active terminating quarantined maintenance]
state?: string @go(State)

// Backend weight
weight?: null | uint16 @go(Weight,*uint16)
}

// BackendAddressStateActive captures enum value "active"
#BackendAddressStateActive: "active"

// BackendAddressStateTerminating captures enum value "terminating"
#BackendAddressStateTerminating: "terminating"

// BackendAddressStateQuarantined captures enum value "quarantined"
#BackendAddressStateQuarantined: "quarantined"

// BackendAddressStateMaintenance captures enum value "maintenance"
#BackendAddressStateMaintenance: "maintenance"
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// BandwidthManager Status of bandwidth manager
//
// +k8s:deepcopy-gen=true
//
// swagger:model BandwidthManager
#BandwidthManager: {
// congestion control
// Enum: [cubic bbr]
congestionControl?: string @go(CongestionControl)

// devices
devices: [...string] @go(Devices,[]string)

// Is bandwidth manager enabled
enabled?: bool @go(Enabled)
}

// BandwidthManagerCongestionControlCubic captures enum value "cubic"
#BandwidthManagerCongestionControlCubic: "cubic"

// BandwidthManagerCongestionControlBbr captures enum value "bbr"
#BandwidthManagerCongestionControlBbr: "bbr"
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/cilium/cilium/api/v1/models

package models

// BgpGracefulRestart BGP graceful restart parameters negotiated with the peer.
//
// +k8s:deepcopy-gen=true
//
// swagger:model BgpGracefulRestart
#BgpGracefulRestart: {
// When set, graceful restart capability is negotiated for all AFI/SAFIs of
// this peer.
enabled?: bool @go(Enabled)

// This is the time advertised to peer for the BGP session to be re-established
// after a restart. After this period, peer will remove stale routes.
// (RFC 4724 section 4.2)
"restart-time-seconds"?: int64 @go(RestartTimeSeconds)
}
Loading

0 comments on commit 585813c

Please sign in to comment.