Automated openapi generation from release-1.28
Signed-off-by: Kubernetes Prow Robot <k8s.ci.robot@gmail.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
Requested Commit: master
|
||||
Actual Commit: e06e2cce6965a2eaaed08d401037608ec5aa0eba
|
||||
Requested Commit/Tag : v7.0.0
|
||||
Actual Commit : c37fa8a4e8399ebd76d7f190136fd4b851c9aa7e
|
||||
Actual Tag : v7.0.0
|
||||
|
||||
@@ -7,6 +7,8 @@ api/AdmissionregistrationV1API.c
|
||||
api/AdmissionregistrationV1API.h
|
||||
api/AdmissionregistrationV1alpha1API.c
|
||||
api/AdmissionregistrationV1alpha1API.h
|
||||
api/AdmissionregistrationV1beta1API.c
|
||||
api/AdmissionregistrationV1beta1API.h
|
||||
api/ApiextensionsAPI.c
|
||||
api/ApiextensionsAPI.h
|
||||
api/ApiextensionsV1API.c
|
||||
@@ -118,6 +120,7 @@ api/WellKnownAPI.h
|
||||
docs/AdmissionregistrationAPI.md
|
||||
docs/AdmissionregistrationV1API.md
|
||||
docs/AdmissionregistrationV1alpha1API.md
|
||||
docs/AdmissionregistrationV1beta1API.md
|
||||
docs/ApiextensionsAPI.md
|
||||
docs/ApiextensionsV1API.md
|
||||
docs/ApiregistrationAPI.md
|
||||
@@ -324,6 +327,7 @@ docs/v1_horizontal_pod_autoscaler_list.md
|
||||
docs/v1_horizontal_pod_autoscaler_spec.md
|
||||
docs/v1_horizontal_pod_autoscaler_status.md
|
||||
docs/v1_host_alias.md
|
||||
docs/v1_host_ip.md
|
||||
docs/v1_host_path_volume_source.md
|
||||
docs/v1_http_get_action.md
|
||||
docs/v1_http_header.md
|
||||
@@ -389,7 +393,6 @@ docs/v1_network_policy_list.md
|
||||
docs/v1_network_policy_peer.md
|
||||
docs/v1_network_policy_port.md
|
||||
docs/v1_network_policy_spec.md
|
||||
docs/v1_network_policy_status.md
|
||||
docs/v1_nfs_volume_source.md
|
||||
docs/v1_node.md
|
||||
docs/v1_node_address.md
|
||||
@@ -444,6 +447,7 @@ docs/v1_pod_list.md
|
||||
docs/v1_pod_os.md
|
||||
docs/v1_pod_readiness_gate.md
|
||||
docs/v1_pod_resource_claim.md
|
||||
docs/v1_pod_resource_claim_status.md
|
||||
docs/v1_pod_scheduling_gate.md
|
||||
docs/v1_pod_security_context.md
|
||||
docs/v1_pod_spec.md
|
||||
@@ -513,6 +517,8 @@ docs/v1_secret_volume_source.md
|
||||
docs/v1_security_context.md
|
||||
docs/v1_self_subject_access_review.md
|
||||
docs/v1_self_subject_access_review_spec.md
|
||||
docs/v1_self_subject_review.md
|
||||
docs/v1_self_subject_review_status.md
|
||||
docs/v1_self_subject_rules_review.md
|
||||
docs/v1_self_subject_rules_review_spec.md
|
||||
docs/v1_server_address_by_client_cidr.md
|
||||
@@ -616,6 +622,7 @@ docs/v1alpha1_validating_admission_policy_list.md
|
||||
docs/v1alpha1_validating_admission_policy_spec.md
|
||||
docs/v1alpha1_validating_admission_policy_status.md
|
||||
docs/v1alpha1_validation.md
|
||||
docs/v1alpha1_variable.md
|
||||
docs/v1alpha2_allocation_result.md
|
||||
docs/v1alpha2_pod_scheduling_context.md
|
||||
docs/v1alpha2_pod_scheduling_context_list.md
|
||||
@@ -635,8 +642,26 @@ docs/v1alpha2_resource_class.md
|
||||
docs/v1alpha2_resource_class_list.md
|
||||
docs/v1alpha2_resource_class_parameters_reference.md
|
||||
docs/v1alpha2_resource_handle.md
|
||||
docs/v1beta1_audit_annotation.md
|
||||
docs/v1beta1_expression_warning.md
|
||||
docs/v1beta1_match_condition.md
|
||||
docs/v1beta1_match_resources.md
|
||||
docs/v1beta1_named_rule_with_operations.md
|
||||
docs/v1beta1_param_kind.md
|
||||
docs/v1beta1_param_ref.md
|
||||
docs/v1beta1_self_subject_review.md
|
||||
docs/v1beta1_self_subject_review_status.md
|
||||
docs/v1beta1_type_checking.md
|
||||
docs/v1beta1_validating_admission_policy.md
|
||||
docs/v1beta1_validating_admission_policy_binding.md
|
||||
docs/v1beta1_validating_admission_policy_binding_list.md
|
||||
docs/v1beta1_validating_admission_policy_binding_spec.md
|
||||
docs/v1beta1_validating_admission_policy_list.md
|
||||
docs/v1beta1_validating_admission_policy_spec.md
|
||||
docs/v1beta1_validating_admission_policy_status.md
|
||||
docs/v1beta1_validation.md
|
||||
docs/v1beta1_variable.md
|
||||
docs/v1beta2_exempt_priority_level_configuration.md
|
||||
docs/v1beta2_flow_distinguisher_method.md
|
||||
docs/v1beta2_flow_schema.md
|
||||
docs/v1beta2_flow_schema_condition.md
|
||||
@@ -659,6 +684,7 @@ docs/v1beta2_resource_policy_rule.md
|
||||
docs/v1beta2_service_account_subject.md
|
||||
docs/v1beta2_subject.md
|
||||
docs/v1beta2_user_subject.md
|
||||
docs/v1beta3_exempt_priority_level_configuration.md
|
||||
docs/v1beta3_flow_distinguisher_method.md
|
||||
docs/v1beta3_flow_schema.md
|
||||
docs/v1beta3_flow_schema_condition.md
|
||||
@@ -1020,6 +1046,8 @@ model/v1_horizontal_pod_autoscaler_status.c
|
||||
model/v1_horizontal_pod_autoscaler_status.h
|
||||
model/v1_host_alias.c
|
||||
model/v1_host_alias.h
|
||||
model/v1_host_ip.c
|
||||
model/v1_host_ip.h
|
||||
model/v1_host_path_volume_source.c
|
||||
model/v1_host_path_volume_source.h
|
||||
model/v1_http_get_action.c
|
||||
@@ -1150,8 +1178,6 @@ model/v1_network_policy_port.c
|
||||
model/v1_network_policy_port.h
|
||||
model/v1_network_policy_spec.c
|
||||
model/v1_network_policy_spec.h
|
||||
model/v1_network_policy_status.c
|
||||
model/v1_network_policy_status.h
|
||||
model/v1_nfs_volume_source.c
|
||||
model/v1_nfs_volume_source.h
|
||||
model/v1_node.c
|
||||
@@ -1260,6 +1286,8 @@ model/v1_pod_readiness_gate.c
|
||||
model/v1_pod_readiness_gate.h
|
||||
model/v1_pod_resource_claim.c
|
||||
model/v1_pod_resource_claim.h
|
||||
model/v1_pod_resource_claim_status.c
|
||||
model/v1_pod_resource_claim_status.h
|
||||
model/v1_pod_scheduling_gate.c
|
||||
model/v1_pod_scheduling_gate.h
|
||||
model/v1_pod_security_context.c
|
||||
@@ -1398,6 +1426,10 @@ model/v1_self_subject_access_review.c
|
||||
model/v1_self_subject_access_review.h
|
||||
model/v1_self_subject_access_review_spec.c
|
||||
model/v1_self_subject_access_review_spec.h
|
||||
model/v1_self_subject_review.c
|
||||
model/v1_self_subject_review.h
|
||||
model/v1_self_subject_review_status.c
|
||||
model/v1_self_subject_review_status.h
|
||||
model/v1_self_subject_rules_review.c
|
||||
model/v1_self_subject_rules_review.h
|
||||
model/v1_self_subject_rules_review_spec.c
|
||||
@@ -1604,6 +1636,8 @@ model/v1alpha1_validating_admission_policy_status.c
|
||||
model/v1alpha1_validating_admission_policy_status.h
|
||||
model/v1alpha1_validation.c
|
||||
model/v1alpha1_validation.h
|
||||
model/v1alpha1_variable.c
|
||||
model/v1alpha1_variable.h
|
||||
model/v1alpha2_allocation_result.c
|
||||
model/v1alpha2_allocation_result.h
|
||||
model/v1alpha2_pod_scheduling_context.c
|
||||
@@ -1642,10 +1676,46 @@ model/v1alpha2_resource_class_parameters_reference.c
|
||||
model/v1alpha2_resource_class_parameters_reference.h
|
||||
model/v1alpha2_resource_handle.c
|
||||
model/v1alpha2_resource_handle.h
|
||||
model/v1beta1_audit_annotation.c
|
||||
model/v1beta1_audit_annotation.h
|
||||
model/v1beta1_expression_warning.c
|
||||
model/v1beta1_expression_warning.h
|
||||
model/v1beta1_match_condition.c
|
||||
model/v1beta1_match_condition.h
|
||||
model/v1beta1_match_resources.c
|
||||
model/v1beta1_match_resources.h
|
||||
model/v1beta1_named_rule_with_operations.c
|
||||
model/v1beta1_named_rule_with_operations.h
|
||||
model/v1beta1_param_kind.c
|
||||
model/v1beta1_param_kind.h
|
||||
model/v1beta1_param_ref.c
|
||||
model/v1beta1_param_ref.h
|
||||
model/v1beta1_self_subject_review.c
|
||||
model/v1beta1_self_subject_review.h
|
||||
model/v1beta1_self_subject_review_status.c
|
||||
model/v1beta1_self_subject_review_status.h
|
||||
model/v1beta1_type_checking.c
|
||||
model/v1beta1_type_checking.h
|
||||
model/v1beta1_validating_admission_policy.c
|
||||
model/v1beta1_validating_admission_policy.h
|
||||
model/v1beta1_validating_admission_policy_binding.c
|
||||
model/v1beta1_validating_admission_policy_binding.h
|
||||
model/v1beta1_validating_admission_policy_binding_list.c
|
||||
model/v1beta1_validating_admission_policy_binding_list.h
|
||||
model/v1beta1_validating_admission_policy_binding_spec.c
|
||||
model/v1beta1_validating_admission_policy_binding_spec.h
|
||||
model/v1beta1_validating_admission_policy_list.c
|
||||
model/v1beta1_validating_admission_policy_list.h
|
||||
model/v1beta1_validating_admission_policy_spec.c
|
||||
model/v1beta1_validating_admission_policy_spec.h
|
||||
model/v1beta1_validating_admission_policy_status.c
|
||||
model/v1beta1_validating_admission_policy_status.h
|
||||
model/v1beta1_validation.c
|
||||
model/v1beta1_validation.h
|
||||
model/v1beta1_variable.c
|
||||
model/v1beta1_variable.h
|
||||
model/v1beta2_exempt_priority_level_configuration.c
|
||||
model/v1beta2_exempt_priority_level_configuration.h
|
||||
model/v1beta2_flow_distinguisher_method.c
|
||||
model/v1beta2_flow_distinguisher_method.h
|
||||
model/v1beta2_flow_schema.c
|
||||
@@ -1690,6 +1760,8 @@ model/v1beta2_subject.c
|
||||
model/v1beta2_subject.h
|
||||
model/v1beta2_user_subject.c
|
||||
model/v1beta2_user_subject.h
|
||||
model/v1beta3_exempt_priority_level_configuration.c
|
||||
model/v1beta3_exempt_priority_level_configuration.h
|
||||
model/v1beta3_flow_distinguisher_method.c
|
||||
model/v1beta3_flow_distinguisher_method.h
|
||||
model/v1beta3_flow_schema.c
|
||||
@@ -1941,6 +2013,7 @@ unit-test/test_v1_horizontal_pod_autoscaler_list.c
|
||||
unit-test/test_v1_horizontal_pod_autoscaler_spec.c
|
||||
unit-test/test_v1_horizontal_pod_autoscaler_status.c
|
||||
unit-test/test_v1_host_alias.c
|
||||
unit-test/test_v1_host_ip.c
|
||||
unit-test/test_v1_host_path_volume_source.c
|
||||
unit-test/test_v1_http_get_action.c
|
||||
unit-test/test_v1_http_header.c
|
||||
@@ -2006,7 +2079,6 @@ unit-test/test_v1_network_policy_list.c
|
||||
unit-test/test_v1_network_policy_peer.c
|
||||
unit-test/test_v1_network_policy_port.c
|
||||
unit-test/test_v1_network_policy_spec.c
|
||||
unit-test/test_v1_network_policy_status.c
|
||||
unit-test/test_v1_nfs_volume_source.c
|
||||
unit-test/test_v1_node.c
|
||||
unit-test/test_v1_node_address.c
|
||||
@@ -2061,6 +2133,7 @@ unit-test/test_v1_pod_list.c
|
||||
unit-test/test_v1_pod_os.c
|
||||
unit-test/test_v1_pod_readiness_gate.c
|
||||
unit-test/test_v1_pod_resource_claim.c
|
||||
unit-test/test_v1_pod_resource_claim_status.c
|
||||
unit-test/test_v1_pod_scheduling_gate.c
|
||||
unit-test/test_v1_pod_security_context.c
|
||||
unit-test/test_v1_pod_spec.c
|
||||
@@ -2130,6 +2203,8 @@ unit-test/test_v1_secret_volume_source.c
|
||||
unit-test/test_v1_security_context.c
|
||||
unit-test/test_v1_self_subject_access_review.c
|
||||
unit-test/test_v1_self_subject_access_review_spec.c
|
||||
unit-test/test_v1_self_subject_review.c
|
||||
unit-test/test_v1_self_subject_review_status.c
|
||||
unit-test/test_v1_self_subject_rules_review.c
|
||||
unit-test/test_v1_self_subject_rules_review_spec.c
|
||||
unit-test/test_v1_server_address_by_client_cidr.c
|
||||
@@ -2233,6 +2308,7 @@ unit-test/test_v1alpha1_validating_admission_policy_list.c
|
||||
unit-test/test_v1alpha1_validating_admission_policy_spec.c
|
||||
unit-test/test_v1alpha1_validating_admission_policy_status.c
|
||||
unit-test/test_v1alpha1_validation.c
|
||||
unit-test/test_v1alpha1_variable.c
|
||||
unit-test/test_v1alpha2_allocation_result.c
|
||||
unit-test/test_v1alpha2_pod_scheduling_context.c
|
||||
unit-test/test_v1alpha2_pod_scheduling_context_list.c
|
||||
@@ -2252,8 +2328,26 @@ unit-test/test_v1alpha2_resource_class.c
|
||||
unit-test/test_v1alpha2_resource_class_list.c
|
||||
unit-test/test_v1alpha2_resource_class_parameters_reference.c
|
||||
unit-test/test_v1alpha2_resource_handle.c
|
||||
unit-test/test_v1beta1_audit_annotation.c
|
||||
unit-test/test_v1beta1_expression_warning.c
|
||||
unit-test/test_v1beta1_match_condition.c
|
||||
unit-test/test_v1beta1_match_resources.c
|
||||
unit-test/test_v1beta1_named_rule_with_operations.c
|
||||
unit-test/test_v1beta1_param_kind.c
|
||||
unit-test/test_v1beta1_param_ref.c
|
||||
unit-test/test_v1beta1_self_subject_review.c
|
||||
unit-test/test_v1beta1_self_subject_review_status.c
|
||||
unit-test/test_v1beta1_type_checking.c
|
||||
unit-test/test_v1beta1_validating_admission_policy.c
|
||||
unit-test/test_v1beta1_validating_admission_policy_binding.c
|
||||
unit-test/test_v1beta1_validating_admission_policy_binding_list.c
|
||||
unit-test/test_v1beta1_validating_admission_policy_binding_spec.c
|
||||
unit-test/test_v1beta1_validating_admission_policy_list.c
|
||||
unit-test/test_v1beta1_validating_admission_policy_spec.c
|
||||
unit-test/test_v1beta1_validating_admission_policy_status.c
|
||||
unit-test/test_v1beta1_validation.c
|
||||
unit-test/test_v1beta1_variable.c
|
||||
unit-test/test_v1beta2_exempt_priority_level_configuration.c
|
||||
unit-test/test_v1beta2_flow_distinguisher_method.c
|
||||
unit-test/test_v1beta2_flow_schema.c
|
||||
unit-test/test_v1beta2_flow_schema_condition.c
|
||||
@@ -2276,6 +2370,7 @@ unit-test/test_v1beta2_resource_policy_rule.c
|
||||
unit-test/test_v1beta2_service_account_subject.c
|
||||
unit-test/test_v1beta2_subject.c
|
||||
unit-test/test_v1beta2_user_subject.c
|
||||
unit-test/test_v1beta3_exempt_priority_level_configuration.c
|
||||
unit-test/test_v1beta3_flow_distinguisher_method.c
|
||||
unit-test/test_v1beta3_flow_schema.c
|
||||
unit-test/test_v1beta3_flow_schema_condition.c
|
||||
|
||||
@@ -1 +1 @@
|
||||
7.0.0-SNAPSHOT
|
||||
7.0.0
|
||||
@@ -1 +1 @@
|
||||
2605d2192cad3588696496aee644b74f2b936b5217f55b904668c7274c8942a9
|
||||
5176e6e179319305caf95d3e2277137117e1a60017bbf8765ce542624fc433bc
|
||||
@@ -206,6 +206,7 @@ set(SRCS
|
||||
model/v1_horizontal_pod_autoscaler_spec.c
|
||||
model/v1_horizontal_pod_autoscaler_status.c
|
||||
model/v1_host_alias.c
|
||||
model/v1_host_ip.c
|
||||
model/v1_host_path_volume_source.c
|
||||
model/v1_http_get_action.c
|
||||
model/v1_http_header.c
|
||||
@@ -271,7 +272,6 @@ set(SRCS
|
||||
model/v1_network_policy_peer.c
|
||||
model/v1_network_policy_port.c
|
||||
model/v1_network_policy_spec.c
|
||||
model/v1_network_policy_status.c
|
||||
model/v1_nfs_volume_source.c
|
||||
model/v1_node.c
|
||||
model/v1_node_address.c
|
||||
@@ -326,6 +326,7 @@ set(SRCS
|
||||
model/v1_pod_os.c
|
||||
model/v1_pod_readiness_gate.c
|
||||
model/v1_pod_resource_claim.c
|
||||
model/v1_pod_resource_claim_status.c
|
||||
model/v1_pod_scheduling_gate.c
|
||||
model/v1_pod_security_context.c
|
||||
model/v1_pod_spec.c
|
||||
@@ -395,6 +396,8 @@ set(SRCS
|
||||
model/v1_security_context.c
|
||||
model/v1_self_subject_access_review.c
|
||||
model/v1_self_subject_access_review_spec.c
|
||||
model/v1_self_subject_review.c
|
||||
model/v1_self_subject_review_status.c
|
||||
model/v1_self_subject_rules_review.c
|
||||
model/v1_self_subject_rules_review_spec.c
|
||||
model/v1_server_address_by_client_cidr.c
|
||||
@@ -498,6 +501,7 @@ set(SRCS
|
||||
model/v1alpha1_validating_admission_policy_spec.c
|
||||
model/v1alpha1_validating_admission_policy_status.c
|
||||
model/v1alpha1_validation.c
|
||||
model/v1alpha1_variable.c
|
||||
model/v1alpha2_allocation_result.c
|
||||
model/v1alpha2_pod_scheduling_context.c
|
||||
model/v1alpha2_pod_scheduling_context_list.c
|
||||
@@ -517,8 +521,26 @@ set(SRCS
|
||||
model/v1alpha2_resource_class_list.c
|
||||
model/v1alpha2_resource_class_parameters_reference.c
|
||||
model/v1alpha2_resource_handle.c
|
||||
model/v1beta1_audit_annotation.c
|
||||
model/v1beta1_expression_warning.c
|
||||
model/v1beta1_match_condition.c
|
||||
model/v1beta1_match_resources.c
|
||||
model/v1beta1_named_rule_with_operations.c
|
||||
model/v1beta1_param_kind.c
|
||||
model/v1beta1_param_ref.c
|
||||
model/v1beta1_self_subject_review.c
|
||||
model/v1beta1_self_subject_review_status.c
|
||||
model/v1beta1_type_checking.c
|
||||
model/v1beta1_validating_admission_policy.c
|
||||
model/v1beta1_validating_admission_policy_binding.c
|
||||
model/v1beta1_validating_admission_policy_binding_list.c
|
||||
model/v1beta1_validating_admission_policy_binding_spec.c
|
||||
model/v1beta1_validating_admission_policy_list.c
|
||||
model/v1beta1_validating_admission_policy_spec.c
|
||||
model/v1beta1_validating_admission_policy_status.c
|
||||
model/v1beta1_validation.c
|
||||
model/v1beta1_variable.c
|
||||
model/v1beta2_exempt_priority_level_configuration.c
|
||||
model/v1beta2_flow_distinguisher_method.c
|
||||
model/v1beta2_flow_schema.c
|
||||
model/v1beta2_flow_schema_condition.c
|
||||
@@ -541,6 +563,7 @@ set(SRCS
|
||||
model/v1beta2_service_account_subject.c
|
||||
model/v1beta2_subject.c
|
||||
model/v1beta2_user_subject.c
|
||||
model/v1beta3_exempt_priority_level_configuration.c
|
||||
model/v1beta3_flow_distinguisher_method.c
|
||||
model/v1beta3_flow_schema.c
|
||||
model/v1beta3_flow_schema_condition.c
|
||||
@@ -591,6 +614,7 @@ set(SRCS
|
||||
api/AdmissionregistrationAPI.c
|
||||
api/AdmissionregistrationV1API.c
|
||||
api/AdmissionregistrationV1alpha1API.c
|
||||
api/AdmissionregistrationV1beta1API.c
|
||||
api/ApiextensionsAPI.c
|
||||
api/ApiextensionsV1API.c
|
||||
api/ApiregistrationAPI.c
|
||||
@@ -807,6 +831,7 @@ set(HDRS
|
||||
model/v1_horizontal_pod_autoscaler_spec.h
|
||||
model/v1_horizontal_pod_autoscaler_status.h
|
||||
model/v1_host_alias.h
|
||||
model/v1_host_ip.h
|
||||
model/v1_host_path_volume_source.h
|
||||
model/v1_http_get_action.h
|
||||
model/v1_http_header.h
|
||||
@@ -872,7 +897,6 @@ set(HDRS
|
||||
model/v1_network_policy_peer.h
|
||||
model/v1_network_policy_port.h
|
||||
model/v1_network_policy_spec.h
|
||||
model/v1_network_policy_status.h
|
||||
model/v1_nfs_volume_source.h
|
||||
model/v1_node.h
|
||||
model/v1_node_address.h
|
||||
@@ -927,6 +951,7 @@ set(HDRS
|
||||
model/v1_pod_os.h
|
||||
model/v1_pod_readiness_gate.h
|
||||
model/v1_pod_resource_claim.h
|
||||
model/v1_pod_resource_claim_status.h
|
||||
model/v1_pod_scheduling_gate.h
|
||||
model/v1_pod_security_context.h
|
||||
model/v1_pod_spec.h
|
||||
@@ -996,6 +1021,8 @@ set(HDRS
|
||||
model/v1_security_context.h
|
||||
model/v1_self_subject_access_review.h
|
||||
model/v1_self_subject_access_review_spec.h
|
||||
model/v1_self_subject_review.h
|
||||
model/v1_self_subject_review_status.h
|
||||
model/v1_self_subject_rules_review.h
|
||||
model/v1_self_subject_rules_review_spec.h
|
||||
model/v1_server_address_by_client_cidr.h
|
||||
@@ -1099,6 +1126,7 @@ set(HDRS
|
||||
model/v1alpha1_validating_admission_policy_spec.h
|
||||
model/v1alpha1_validating_admission_policy_status.h
|
||||
model/v1alpha1_validation.h
|
||||
model/v1alpha1_variable.h
|
||||
model/v1alpha2_allocation_result.h
|
||||
model/v1alpha2_pod_scheduling_context.h
|
||||
model/v1alpha2_pod_scheduling_context_list.h
|
||||
@@ -1118,8 +1146,26 @@ set(HDRS
|
||||
model/v1alpha2_resource_class_list.h
|
||||
model/v1alpha2_resource_class_parameters_reference.h
|
||||
model/v1alpha2_resource_handle.h
|
||||
model/v1beta1_audit_annotation.h
|
||||
model/v1beta1_expression_warning.h
|
||||
model/v1beta1_match_condition.h
|
||||
model/v1beta1_match_resources.h
|
||||
model/v1beta1_named_rule_with_operations.h
|
||||
model/v1beta1_param_kind.h
|
||||
model/v1beta1_param_ref.h
|
||||
model/v1beta1_self_subject_review.h
|
||||
model/v1beta1_self_subject_review_status.h
|
||||
model/v1beta1_type_checking.h
|
||||
model/v1beta1_validating_admission_policy.h
|
||||
model/v1beta1_validating_admission_policy_binding.h
|
||||
model/v1beta1_validating_admission_policy_binding_list.h
|
||||
model/v1beta1_validating_admission_policy_binding_spec.h
|
||||
model/v1beta1_validating_admission_policy_list.h
|
||||
model/v1beta1_validating_admission_policy_spec.h
|
||||
model/v1beta1_validating_admission_policy_status.h
|
||||
model/v1beta1_validation.h
|
||||
model/v1beta1_variable.h
|
||||
model/v1beta2_exempt_priority_level_configuration.h
|
||||
model/v1beta2_flow_distinguisher_method.h
|
||||
model/v1beta2_flow_schema.h
|
||||
model/v1beta2_flow_schema_condition.h
|
||||
@@ -1142,6 +1188,7 @@ set(HDRS
|
||||
model/v1beta2_service_account_subject.h
|
||||
model/v1beta2_subject.h
|
||||
model/v1beta2_user_subject.h
|
||||
model/v1beta3_exempt_priority_level_configuration.h
|
||||
model/v1beta3_flow_distinguisher_method.h
|
||||
model/v1beta3_flow_schema.h
|
||||
model/v1beta3_flow_schema_condition.h
|
||||
@@ -1192,6 +1239,7 @@ set(HDRS
|
||||
api/AdmissionregistrationAPI.h
|
||||
api/AdmissionregistrationV1API.h
|
||||
api/AdmissionregistrationV1alpha1API.h
|
||||
api/AdmissionregistrationV1beta1API.h
|
||||
api/ApiextensionsAPI.h
|
||||
api/ApiextensionsV1API.h
|
||||
api/ApiregistrationAPI.h
|
||||
@@ -1330,6 +1378,7 @@ set(HDRS "")
|
||||
# unit-tests/manual-AdmissionregistrationAPI.c
|
||||
# unit-tests/manual-AdmissionregistrationV1API.c
|
||||
# unit-tests/manual-AdmissionregistrationV1alpha1API.c
|
||||
# unit-tests/manual-AdmissionregistrationV1beta1API.c
|
||||
# unit-tests/manual-ApiextensionsAPI.c
|
||||
# unit-tests/manual-ApiextensionsV1API.c
|
||||
# unit-tests/manual-ApiregistrationAPI.c
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
set(PROJECT_VERSION_MAJOR 0)
|
||||
set(PROJECT_VERSION_MINOR 7)
|
||||
set(PROJECT_VERSION_MINOR 8)
|
||||
set(PROJECT_VERSION_PATCH 0)
|
||||
|
||||
set(PROJECT_PACKAGE_DESCRIPTION_SUMMARY "The Kubernetes client library for the C programming language.")
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
## Overview
|
||||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client.
|
||||
|
||||
- API version: release-1.27
|
||||
- API version: release-1.28
|
||||
- Package version:
|
||||
- Build package: org.openapitools.codegen.languages.CLibcurlClientCodegen
|
||||
|
||||
@@ -98,6 +98,24 @@ Category | Method | HTTP request | Description
|
||||
*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} |
|
||||
*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} |
|
||||
*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyStatus**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_createValidatingAdmissionPolicy**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_createValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicy**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicy**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_getAPIResources**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1beta1/ |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_listValidatingAdmissionPolicy**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_listValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicy**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyStatus**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_readValidatingAdmissionPolicy**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyStatus**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicy**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} |
|
||||
*AdmissionregistrationV1beta1API* | [**AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyStatus**](docs/AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status |
|
||||
*ApiextensionsAPI* | [**ApiextensionsAPI_getAPIGroup**](docs/ApiextensionsAPI.md#ApiextensionsAPI_getAPIGroup) | **GET** /apis/apiextensions.k8s.io/ |
|
||||
*ApiextensionsV1API* | [**ApiextensionsV1API_createCustomResourceDefinition**](docs/ApiextensionsV1API.md#ApiextensionsV1API_createCustomResourceDefinition) | **POST** /apis/apiextensions.k8s.io/v1/customresourcedefinitions |
|
||||
*ApiextensionsV1API* | [**ApiextensionsV1API_deleteCollectionCustomResourceDefinition**](docs/ApiextensionsV1API.md#ApiextensionsV1API_deleteCollectionCustomResourceDefinition) | **DELETE** /apis/apiextensions.k8s.io/v1/customresourcedefinitions |
|
||||
@@ -187,6 +205,7 @@ Category | Method | HTTP request | Description
|
||||
*AppsV1API* | [**AppsV1API_replaceNamespacedStatefulSetScale**](docs/AppsV1API.md#AppsV1API_replaceNamespacedStatefulSetScale) | **PUT** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale |
|
||||
*AppsV1API* | [**AppsV1API_replaceNamespacedStatefulSetStatus**](docs/AppsV1API.md#AppsV1API_replaceNamespacedStatefulSetStatus) | **PUT** /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status |
|
||||
*AuthenticationAPI* | [**AuthenticationAPI_getAPIGroup**](docs/AuthenticationAPI.md#AuthenticationAPI_getAPIGroup) | **GET** /apis/authentication.k8s.io/ |
|
||||
*AuthenticationV1API* | [**AuthenticationV1API_createSelfSubjectReview**](docs/AuthenticationV1API.md#AuthenticationV1API_createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1/selfsubjectreviews |
|
||||
*AuthenticationV1API* | [**AuthenticationV1API_createTokenReview**](docs/AuthenticationV1API.md#AuthenticationV1API_createTokenReview) | **POST** /apis/authentication.k8s.io/v1/tokenreviews |
|
||||
*AuthenticationV1API* | [**AuthenticationV1API_getAPIResources**](docs/AuthenticationV1API.md#AuthenticationV1API_getAPIResources) | **GET** /apis/authentication.k8s.io/v1/ |
|
||||
*AuthenticationV1alpha1API* | [**AuthenticationV1alpha1API_createSelfSubjectReview**](docs/AuthenticationV1alpha1API.md#AuthenticationV1alpha1API_createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews |
|
||||
@@ -609,17 +628,14 @@ Category | Method | HTTP request | Description
|
||||
*NetworkingV1API* | [**NetworkingV1API_patchNamespacedIngress**](docs/NetworkingV1API.md#NetworkingV1API_patchNamespacedIngress) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} |
|
||||
*NetworkingV1API* | [**NetworkingV1API_patchNamespacedIngressStatus**](docs/NetworkingV1API.md#NetworkingV1API_patchNamespacedIngressStatus) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status |
|
||||
*NetworkingV1API* | [**NetworkingV1API_patchNamespacedNetworkPolicy**](docs/NetworkingV1API.md#NetworkingV1API_patchNamespacedNetworkPolicy) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} |
|
||||
*NetworkingV1API* | [**NetworkingV1API_patchNamespacedNetworkPolicyStatus**](docs/NetworkingV1API.md#NetworkingV1API_patchNamespacedNetworkPolicyStatus) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status |
|
||||
*NetworkingV1API* | [**NetworkingV1API_readIngressClass**](docs/NetworkingV1API.md#NetworkingV1API_readIngressClass) | **GET** /apis/networking.k8s.io/v1/ingressclasses/{name} |
|
||||
*NetworkingV1API* | [**NetworkingV1API_readNamespacedIngress**](docs/NetworkingV1API.md#NetworkingV1API_readNamespacedIngress) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} |
|
||||
*NetworkingV1API* | [**NetworkingV1API_readNamespacedIngressStatus**](docs/NetworkingV1API.md#NetworkingV1API_readNamespacedIngressStatus) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status |
|
||||
*NetworkingV1API* | [**NetworkingV1API_readNamespacedNetworkPolicy**](docs/NetworkingV1API.md#NetworkingV1API_readNamespacedNetworkPolicy) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} |
|
||||
*NetworkingV1API* | [**NetworkingV1API_readNamespacedNetworkPolicyStatus**](docs/NetworkingV1API.md#NetworkingV1API_readNamespacedNetworkPolicyStatus) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status |
|
||||
*NetworkingV1API* | [**NetworkingV1API_replaceIngressClass**](docs/NetworkingV1API.md#NetworkingV1API_replaceIngressClass) | **PUT** /apis/networking.k8s.io/v1/ingressclasses/{name} |
|
||||
*NetworkingV1API* | [**NetworkingV1API_replaceNamespacedIngress**](docs/NetworkingV1API.md#NetworkingV1API_replaceNamespacedIngress) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} |
|
||||
*NetworkingV1API* | [**NetworkingV1API_replaceNamespacedIngressStatus**](docs/NetworkingV1API.md#NetworkingV1API_replaceNamespacedIngressStatus) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status |
|
||||
*NetworkingV1API* | [**NetworkingV1API_replaceNamespacedNetworkPolicy**](docs/NetworkingV1API.md#NetworkingV1API_replaceNamespacedNetworkPolicy) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} |
|
||||
*NetworkingV1API* | [**NetworkingV1API_replaceNamespacedNetworkPolicyStatus**](docs/NetworkingV1API.md#NetworkingV1API_replaceNamespacedNetworkPolicyStatus) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status |
|
||||
*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_createClusterCIDR**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_createClusterCIDR) | **POST** /apis/networking.k8s.io/v1alpha1/clustercidrs |
|
||||
*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_createIPAddress**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_createIPAddress) | **POST** /apis/networking.k8s.io/v1alpha1/ipaddresses |
|
||||
*NetworkingV1alpha1API* | [**NetworkingV1alpha1API_deleteClusterCIDR**](docs/NetworkingV1alpha1API.md#NetworkingV1alpha1API_deleteClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} |
|
||||
@@ -644,7 +660,7 @@ Category | Method | HTTP request | Description
|
||||
*NodeV1API* | [**NodeV1API_patchRuntimeClass**](docs/NodeV1API.md#NodeV1API_patchRuntimeClass) | **PATCH** /apis/node.k8s.io/v1/runtimeclasses/{name} |
|
||||
*NodeV1API* | [**NodeV1API_readRuntimeClass**](docs/NodeV1API.md#NodeV1API_readRuntimeClass) | **GET** /apis/node.k8s.io/v1/runtimeclasses/{name} |
|
||||
*NodeV1API* | [**NodeV1API_replaceRuntimeClass**](docs/NodeV1API.md#NodeV1API_replaceRuntimeClass) | **PUT** /apis/node.k8s.io/v1/runtimeclasses/{name} |
|
||||
*OpenidAPI* | [**OpenidAPI_getServiceAccountIssuerOpenIDKeyset**](docs/OpenidAPI.md#OpenidAPI_getServiceAccountIssuerOpenIDKeyset) | **GET** /openid/v1/jwks/ |
|
||||
*OpenidAPI* | [**OpenidAPI_getServiceAccountIssuerOpenIDKeyset**](docs/OpenidAPI.md#OpenidAPI_getServiceAccountIssuerOpenIDKeyset) | **GET** /openid/v1/jwks |
|
||||
*PolicyAPI* | [**PolicyAPI_getAPIGroup**](docs/PolicyAPI.md#PolicyAPI_getAPIGroup) | **GET** /apis/policy/ |
|
||||
*PolicyV1API* | [**PolicyV1API_createNamespacedPodDisruptionBudget**](docs/PolicyV1API.md#PolicyV1API_createNamespacedPodDisruptionBudget) | **POST** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets |
|
||||
*PolicyV1API* | [**PolicyV1API_deleteCollectionNamespacedPodDisruptionBudget**](docs/PolicyV1API.md#PolicyV1API_deleteCollectionNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets |
|
||||
@@ -780,7 +796,7 @@ Category | Method | HTTP request | Description
|
||||
*StorageV1API* | [**StorageV1API_replaceVolumeAttachment**](docs/StorageV1API.md#StorageV1API_replaceVolumeAttachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} |
|
||||
*StorageV1API* | [**StorageV1API_replaceVolumeAttachmentStatus**](docs/StorageV1API.md#StorageV1API_replaceVolumeAttachmentStatus) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status |
|
||||
*VersionAPI* | [**VersionAPI_getCode**](docs/VersionAPI.md#VersionAPI_getCode) | **GET** /version/ |
|
||||
*WellKnownAPI* | [**WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration**](docs/WellKnownAPI.md#WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration) | **GET** /.well-known/openid-configuration/ |
|
||||
*WellKnownAPI* | [**WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration**](docs/WellKnownAPI.md#WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration) | **GET** /.well-known/openid-configuration |
|
||||
|
||||
|
||||
## Documentation for Models
|
||||
@@ -937,6 +953,7 @@ Category | Method | HTTP request | Description
|
||||
- [v1_horizontal_pod_autoscaler_spec_t](docs/v1_horizontal_pod_autoscaler_spec.md)
|
||||
- [v1_horizontal_pod_autoscaler_status_t](docs/v1_horizontal_pod_autoscaler_status.md)
|
||||
- [v1_host_alias_t](docs/v1_host_alias.md)
|
||||
- [v1_host_ip_t](docs/v1_host_ip.md)
|
||||
- [v1_host_path_volume_source_t](docs/v1_host_path_volume_source.md)
|
||||
- [v1_http_get_action_t](docs/v1_http_get_action.md)
|
||||
- [v1_http_header_t](docs/v1_http_header.md)
|
||||
@@ -1002,7 +1019,6 @@ Category | Method | HTTP request | Description
|
||||
- [v1_network_policy_peer_t](docs/v1_network_policy_peer.md)
|
||||
- [v1_network_policy_port_t](docs/v1_network_policy_port.md)
|
||||
- [v1_network_policy_spec_t](docs/v1_network_policy_spec.md)
|
||||
- [v1_network_policy_status_t](docs/v1_network_policy_status.md)
|
||||
- [v1_nfs_volume_source_t](docs/v1_nfs_volume_source.md)
|
||||
- [v1_node_t](docs/v1_node.md)
|
||||
- [v1_node_address_t](docs/v1_node_address.md)
|
||||
@@ -1057,6 +1073,7 @@ Category | Method | HTTP request | Description
|
||||
- [v1_pod_os_t](docs/v1_pod_os.md)
|
||||
- [v1_pod_readiness_gate_t](docs/v1_pod_readiness_gate.md)
|
||||
- [v1_pod_resource_claim_t](docs/v1_pod_resource_claim.md)
|
||||
- [v1_pod_resource_claim_status_t](docs/v1_pod_resource_claim_status.md)
|
||||
- [v1_pod_scheduling_gate_t](docs/v1_pod_scheduling_gate.md)
|
||||
- [v1_pod_security_context_t](docs/v1_pod_security_context.md)
|
||||
- [v1_pod_spec_t](docs/v1_pod_spec.md)
|
||||
@@ -1126,6 +1143,8 @@ Category | Method | HTTP request | Description
|
||||
- [v1_security_context_t](docs/v1_security_context.md)
|
||||
- [v1_self_subject_access_review_t](docs/v1_self_subject_access_review.md)
|
||||
- [v1_self_subject_access_review_spec_t](docs/v1_self_subject_access_review_spec.md)
|
||||
- [v1_self_subject_review_t](docs/v1_self_subject_review.md)
|
||||
- [v1_self_subject_review_status_t](docs/v1_self_subject_review_status.md)
|
||||
- [v1_self_subject_rules_review_t](docs/v1_self_subject_rules_review.md)
|
||||
- [v1_self_subject_rules_review_spec_t](docs/v1_self_subject_rules_review_spec.md)
|
||||
- [v1_server_address_by_client_cidr_t](docs/v1_server_address_by_client_cidr.md)
|
||||
@@ -1229,6 +1248,7 @@ Category | Method | HTTP request | Description
|
||||
- [v1alpha1_validating_admission_policy_spec_t](docs/v1alpha1_validating_admission_policy_spec.md)
|
||||
- [v1alpha1_validating_admission_policy_status_t](docs/v1alpha1_validating_admission_policy_status.md)
|
||||
- [v1alpha1_validation_t](docs/v1alpha1_validation.md)
|
||||
- [v1alpha1_variable_t](docs/v1alpha1_variable.md)
|
||||
- [v1alpha2_allocation_result_t](docs/v1alpha2_allocation_result.md)
|
||||
- [v1alpha2_pod_scheduling_context_t](docs/v1alpha2_pod_scheduling_context.md)
|
||||
- [v1alpha2_pod_scheduling_context_list_t](docs/v1alpha2_pod_scheduling_context_list.md)
|
||||
@@ -1248,8 +1268,26 @@ Category | Method | HTTP request | Description
|
||||
- [v1alpha2_resource_class_list_t](docs/v1alpha2_resource_class_list.md)
|
||||
- [v1alpha2_resource_class_parameters_reference_t](docs/v1alpha2_resource_class_parameters_reference.md)
|
||||
- [v1alpha2_resource_handle_t](docs/v1alpha2_resource_handle.md)
|
||||
- [v1beta1_audit_annotation_t](docs/v1beta1_audit_annotation.md)
|
||||
- [v1beta1_expression_warning_t](docs/v1beta1_expression_warning.md)
|
||||
- [v1beta1_match_condition_t](docs/v1beta1_match_condition.md)
|
||||
- [v1beta1_match_resources_t](docs/v1beta1_match_resources.md)
|
||||
- [v1beta1_named_rule_with_operations_t](docs/v1beta1_named_rule_with_operations.md)
|
||||
- [v1beta1_param_kind_t](docs/v1beta1_param_kind.md)
|
||||
- [v1beta1_param_ref_t](docs/v1beta1_param_ref.md)
|
||||
- [v1beta1_self_subject_review_t](docs/v1beta1_self_subject_review.md)
|
||||
- [v1beta1_self_subject_review_status_t](docs/v1beta1_self_subject_review_status.md)
|
||||
- [v1beta1_type_checking_t](docs/v1beta1_type_checking.md)
|
||||
- [v1beta1_validating_admission_policy_t](docs/v1beta1_validating_admission_policy.md)
|
||||
- [v1beta1_validating_admission_policy_binding_t](docs/v1beta1_validating_admission_policy_binding.md)
|
||||
- [v1beta1_validating_admission_policy_binding_list_t](docs/v1beta1_validating_admission_policy_binding_list.md)
|
||||
- [v1beta1_validating_admission_policy_binding_spec_t](docs/v1beta1_validating_admission_policy_binding_spec.md)
|
||||
- [v1beta1_validating_admission_policy_list_t](docs/v1beta1_validating_admission_policy_list.md)
|
||||
- [v1beta1_validating_admission_policy_spec_t](docs/v1beta1_validating_admission_policy_spec.md)
|
||||
- [v1beta1_validating_admission_policy_status_t](docs/v1beta1_validating_admission_policy_status.md)
|
||||
- [v1beta1_validation_t](docs/v1beta1_validation.md)
|
||||
- [v1beta1_variable_t](docs/v1beta1_variable.md)
|
||||
- [v1beta2_exempt_priority_level_configuration_t](docs/v1beta2_exempt_priority_level_configuration.md)
|
||||
- [v1beta2_flow_distinguisher_method_t](docs/v1beta2_flow_distinguisher_method.md)
|
||||
- [v1beta2_flow_schema_t](docs/v1beta2_flow_schema.md)
|
||||
- [v1beta2_flow_schema_condition_t](docs/v1beta2_flow_schema_condition.md)
|
||||
@@ -1272,6 +1310,7 @@ Category | Method | HTTP request | Description
|
||||
- [v1beta2_service_account_subject_t](docs/v1beta2_service_account_subject.md)
|
||||
- [v1beta2_subject_t](docs/v1beta2_subject.md)
|
||||
- [v1beta2_user_subject_t](docs/v1beta2_user_subject.md)
|
||||
- [v1beta3_exempt_priority_level_configuration_t](docs/v1beta3_exempt_priority_level_configuration.md)
|
||||
- [v1beta3_flow_distinguisher_method_t](docs/v1beta3_flow_distinguisher_method.md)
|
||||
- [v1beta3_flow_schema_t](docs/v1beta3_flow_schema.md)
|
||||
- [v1beta3_flow_schema_condition_t](docs/v1beta3_flow_schema_condition.md)
|
||||
|
||||
3904
kubernetes/api/AdmissionregistrationV1beta1API.c
Normal file
3904
kubernetes/api/AdmissionregistrationV1beta1API.c
Normal file
File diff suppressed because it is too large
Load Diff
125
kubernetes/api/AdmissionregistrationV1beta1API.h
Normal file
125
kubernetes/api/AdmissionregistrationV1beta1API.h
Normal file
@@ -0,0 +1,125 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "../include/apiClient.h"
|
||||
#include "../include/list.h"
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
#include "../model/object.h"
|
||||
#include "../model/v1_api_resource_list.h"
|
||||
#include "../model/v1_delete_options.h"
|
||||
#include "../model/v1_status.h"
|
||||
#include "../model/v1beta1_validating_admission_policy.h"
|
||||
#include "../model/v1beta1_validating_admission_policy_binding.h"
|
||||
#include "../model/v1beta1_validating_admission_policy_binding_list.h"
|
||||
#include "../model/v1beta1_validating_admission_policy_list.h"
|
||||
|
||||
|
||||
// create a ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t*
|
||||
AdmissionregistrationV1beta1API_createValidatingAdmissionPolicy(apiClient_t *apiClient, v1beta1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation );
|
||||
|
||||
|
||||
// create a ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_admission_policy_binding_t*
|
||||
AdmissionregistrationV1beta1API_createValidatingAdmissionPolicyBinding(apiClient_t *apiClient, v1beta1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation );
|
||||
|
||||
|
||||
// delete collection of ValidatingAdmissionPolicy
|
||||
//
|
||||
v1_status_t*
|
||||
AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int sendInitialEvents , int timeoutSeconds , v1_delete_options_t * body );
|
||||
|
||||
|
||||
// delete collection of ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1_status_t*
|
||||
AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int sendInitialEvents , int timeoutSeconds , v1_delete_options_t * body );
|
||||
|
||||
|
||||
// delete a ValidatingAdmissionPolicy
|
||||
//
|
||||
v1_status_t*
|
||||
AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body );
|
||||
|
||||
|
||||
// delete a ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1_status_t*
|
||||
AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body );
|
||||
|
||||
|
||||
// get available resources
|
||||
//
|
||||
v1_api_resource_list_t*
|
||||
AdmissionregistrationV1beta1API_getAPIResources(apiClient_t *apiClient);
|
||||
|
||||
|
||||
// list or watch objects of kind ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_list_t*
|
||||
AdmissionregistrationV1beta1API_listValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int sendInitialEvents , int timeoutSeconds , int watch );
|
||||
|
||||
|
||||
// list or watch objects of kind ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_admission_policy_binding_list_t*
|
||||
AdmissionregistrationV1beta1API_listValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int sendInitialEvents , int timeoutSeconds , int watch );
|
||||
|
||||
|
||||
// partially update the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t*
|
||||
AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force );
|
||||
|
||||
|
||||
// partially update the specified ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_admission_policy_binding_t*
|
||||
AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force );
|
||||
|
||||
|
||||
// partially update status of the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t*
|
||||
AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force );
|
||||
|
||||
|
||||
// read the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t*
|
||||
AdmissionregistrationV1beta1API_readValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty );
|
||||
|
||||
|
||||
// read the specified ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_admission_policy_binding_t*
|
||||
AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty );
|
||||
|
||||
|
||||
// read status of the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t*
|
||||
AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyStatus(apiClient_t *apiClient, char * name , char * pretty );
|
||||
|
||||
|
||||
// replace the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t*
|
||||
AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , v1beta1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation );
|
||||
|
||||
|
||||
// replace the specified ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_admission_policy_binding_t*
|
||||
AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , v1beta1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation );
|
||||
|
||||
|
||||
// replace status of the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t*
|
||||
AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyStatus(apiClient_t *apiClient, char * name , v1beta1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation );
|
||||
|
||||
|
||||
@@ -12,6 +12,191 @@
|
||||
}while(0)
|
||||
|
||||
|
||||
// create a SelfSubjectReview
|
||||
//
|
||||
v1_self_subject_review_t*
|
||||
AuthenticationV1API_createSelfSubjectReview(apiClient_t *apiClient, v1_self_subject_review_t * body , char * dryRun , char * fieldManager , char * fieldValidation , char * pretty )
|
||||
{
|
||||
list_t *localVarQueryParameters = list_createList();
|
||||
list_t *localVarHeaderParameters = NULL;
|
||||
list_t *localVarFormParameters = NULL;
|
||||
list_t *localVarHeaderType = list_createList();
|
||||
list_t *localVarContentType = NULL;
|
||||
char *localVarBodyParameters = NULL;
|
||||
|
||||
// create the path
|
||||
long sizeOfPath = strlen("/apis/authentication.k8s.io/v1/selfsubjectreviews")+1;
|
||||
char *localVarPath = malloc(sizeOfPath);
|
||||
snprintf(localVarPath, sizeOfPath, "/apis/authentication.k8s.io/v1/selfsubjectreviews");
|
||||
|
||||
|
||||
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_dryRun = NULL;
|
||||
char * valueQuery_dryRun = NULL;
|
||||
keyValuePair_t *keyPairQuery_dryRun = 0;
|
||||
if (dryRun)
|
||||
{
|
||||
keyQuery_dryRun = strdup("dryRun");
|
||||
valueQuery_dryRun = strdup((dryRun));
|
||||
keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_dryRun);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_fieldManager = NULL;
|
||||
char * valueQuery_fieldManager = NULL;
|
||||
keyValuePair_t *keyPairQuery_fieldManager = 0;
|
||||
if (fieldManager)
|
||||
{
|
||||
keyQuery_fieldManager = strdup("fieldManager");
|
||||
valueQuery_fieldManager = strdup((fieldManager));
|
||||
keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_fieldManager);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_fieldValidation = NULL;
|
||||
char * valueQuery_fieldValidation = NULL;
|
||||
keyValuePair_t *keyPairQuery_fieldValidation = 0;
|
||||
if (fieldValidation)
|
||||
{
|
||||
keyQuery_fieldValidation = strdup("fieldValidation");
|
||||
valueQuery_fieldValidation = strdup((fieldValidation));
|
||||
keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_pretty = NULL;
|
||||
char * valueQuery_pretty = NULL;
|
||||
keyValuePair_t *keyPairQuery_pretty = 0;
|
||||
if (pretty)
|
||||
{
|
||||
keyQuery_pretty = strdup("pretty");
|
||||
valueQuery_pretty = strdup((pretty));
|
||||
keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_pretty);
|
||||
}
|
||||
|
||||
// Body Param
|
||||
cJSON *localVarSingleItemJSON_body = NULL;
|
||||
if (body != NULL)
|
||||
{
|
||||
//string
|
||||
localVarSingleItemJSON_body = v1_self_subject_review_convertToJSON(body);
|
||||
localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body);
|
||||
}
|
||||
list_addElement(localVarHeaderType,"application/json"); //produces
|
||||
list_addElement(localVarHeaderType,"application/yaml"); //produces
|
||||
list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces
|
||||
apiClient_invoke(apiClient,
|
||||
localVarPath,
|
||||
localVarQueryParameters,
|
||||
localVarHeaderParameters,
|
||||
localVarFormParameters,
|
||||
localVarHeaderType,
|
||||
localVarContentType,
|
||||
localVarBodyParameters,
|
||||
"POST");
|
||||
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 200) {
|
||||
// printf("%s\n","OK");
|
||||
//}
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 201) {
|
||||
// printf("%s\n","Created");
|
||||
//}
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 202) {
|
||||
// printf("%s\n","Accepted");
|
||||
//}
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 401) {
|
||||
// printf("%s\n","Unauthorized");
|
||||
//}
|
||||
//nonprimitive not container
|
||||
cJSON *AuthenticationV1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived);
|
||||
v1_self_subject_review_t *elementToReturn = v1_self_subject_review_parseFromJSON(AuthenticationV1APIlocalVarJSON);
|
||||
cJSON_Delete(AuthenticationV1APIlocalVarJSON);
|
||||
if(elementToReturn == NULL) {
|
||||
// return 0;
|
||||
}
|
||||
|
||||
//return type
|
||||
if (apiClient->dataReceived) {
|
||||
free(apiClient->dataReceived);
|
||||
apiClient->dataReceived = NULL;
|
||||
apiClient->dataReceivedLen = 0;
|
||||
}
|
||||
list_freeList(localVarQueryParameters);
|
||||
|
||||
|
||||
list_freeList(localVarHeaderType);
|
||||
|
||||
free(localVarPath);
|
||||
if (localVarSingleItemJSON_body) {
|
||||
cJSON_Delete(localVarSingleItemJSON_body);
|
||||
localVarSingleItemJSON_body = NULL;
|
||||
}
|
||||
free(localVarBodyParameters);
|
||||
if(keyQuery_dryRun){
|
||||
free(keyQuery_dryRun);
|
||||
keyQuery_dryRun = NULL;
|
||||
}
|
||||
if(valueQuery_dryRun){
|
||||
free(valueQuery_dryRun);
|
||||
valueQuery_dryRun = NULL;
|
||||
}
|
||||
if(keyPairQuery_dryRun){
|
||||
keyValuePair_free(keyPairQuery_dryRun);
|
||||
keyPairQuery_dryRun = NULL;
|
||||
}
|
||||
if(keyQuery_fieldManager){
|
||||
free(keyQuery_fieldManager);
|
||||
keyQuery_fieldManager = NULL;
|
||||
}
|
||||
if(valueQuery_fieldManager){
|
||||
free(valueQuery_fieldManager);
|
||||
valueQuery_fieldManager = NULL;
|
||||
}
|
||||
if(keyPairQuery_fieldManager){
|
||||
keyValuePair_free(keyPairQuery_fieldManager);
|
||||
keyPairQuery_fieldManager = NULL;
|
||||
}
|
||||
if(keyQuery_fieldValidation){
|
||||
free(keyQuery_fieldValidation);
|
||||
keyQuery_fieldValidation = NULL;
|
||||
}
|
||||
if(valueQuery_fieldValidation){
|
||||
free(valueQuery_fieldValidation);
|
||||
valueQuery_fieldValidation = NULL;
|
||||
}
|
||||
if(keyPairQuery_fieldValidation){
|
||||
keyValuePair_free(keyPairQuery_fieldValidation);
|
||||
keyPairQuery_fieldValidation = NULL;
|
||||
}
|
||||
if(keyQuery_pretty){
|
||||
free(keyQuery_pretty);
|
||||
keyQuery_pretty = NULL;
|
||||
}
|
||||
if(valueQuery_pretty){
|
||||
free(valueQuery_pretty);
|
||||
valueQuery_pretty = NULL;
|
||||
}
|
||||
if(keyPairQuery_pretty){
|
||||
keyValuePair_free(keyPairQuery_pretty);
|
||||
keyPairQuery_pretty = NULL;
|
||||
}
|
||||
return elementToReturn;
|
||||
end:
|
||||
free(localVarPath);
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
// create a TokenReview
|
||||
//
|
||||
v1_token_review_t*
|
||||
|
||||
@@ -6,9 +6,16 @@
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
#include "../model/v1_api_resource_list.h"
|
||||
#include "../model/v1_self_subject_review.h"
|
||||
#include "../model/v1_token_review.h"
|
||||
|
||||
|
||||
// create a SelfSubjectReview
|
||||
//
|
||||
v1_self_subject_review_t*
|
||||
AuthenticationV1API_createSelfSubjectReview(apiClient_t *apiClient, v1_self_subject_review_t * body , char * dryRun , char * fieldManager , char * fieldValidation , char * pretty );
|
||||
|
||||
|
||||
// create a TokenReview
|
||||
//
|
||||
v1_token_review_t*
|
||||
|
||||
@@ -5177,238 +5177,6 @@ end:
|
||||
|
||||
}
|
||||
|
||||
// partially update status of the specified NetworkPolicy
|
||||
//
|
||||
v1_network_policy_t*
|
||||
NetworkingV1API_patchNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force )
|
||||
{
|
||||
list_t *localVarQueryParameters = list_createList();
|
||||
list_t *localVarHeaderParameters = NULL;
|
||||
list_t *localVarFormParameters = NULL;
|
||||
list_t *localVarHeaderType = list_createList();
|
||||
list_t *localVarContentType = list_createList();
|
||||
char *localVarBodyParameters = NULL;
|
||||
|
||||
// create the path
|
||||
long sizeOfPath = strlen("/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status")+1;
|
||||
char *localVarPath = malloc(sizeOfPath);
|
||||
snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status");
|
||||
|
||||
|
||||
// Path Params
|
||||
long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }");
|
||||
if(name == NULL) {
|
||||
goto end;
|
||||
}
|
||||
char* localVarToReplace_name = malloc(sizeOfPathParams_name);
|
||||
sprintf(localVarToReplace_name, "{%s}", "name");
|
||||
|
||||
localVarPath = strReplace(localVarPath, localVarToReplace_name, name);
|
||||
|
||||
// Path Params
|
||||
long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }");
|
||||
if(_namespace == NULL) {
|
||||
goto end;
|
||||
}
|
||||
char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace);
|
||||
sprintf(localVarToReplace__namespace, "{%s}", "namespace");
|
||||
|
||||
localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace);
|
||||
|
||||
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_pretty = NULL;
|
||||
char * valueQuery_pretty = NULL;
|
||||
keyValuePair_t *keyPairQuery_pretty = 0;
|
||||
if (pretty)
|
||||
{
|
||||
keyQuery_pretty = strdup("pretty");
|
||||
valueQuery_pretty = strdup((pretty));
|
||||
keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_pretty);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_dryRun = NULL;
|
||||
char * valueQuery_dryRun = NULL;
|
||||
keyValuePair_t *keyPairQuery_dryRun = 0;
|
||||
if (dryRun)
|
||||
{
|
||||
keyQuery_dryRun = strdup("dryRun");
|
||||
valueQuery_dryRun = strdup((dryRun));
|
||||
keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_dryRun);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_fieldManager = NULL;
|
||||
char * valueQuery_fieldManager = NULL;
|
||||
keyValuePair_t *keyPairQuery_fieldManager = 0;
|
||||
if (fieldManager)
|
||||
{
|
||||
keyQuery_fieldManager = strdup("fieldManager");
|
||||
valueQuery_fieldManager = strdup((fieldManager));
|
||||
keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_fieldManager);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_fieldValidation = NULL;
|
||||
char * valueQuery_fieldValidation = NULL;
|
||||
keyValuePair_t *keyPairQuery_fieldValidation = 0;
|
||||
if (fieldValidation)
|
||||
{
|
||||
keyQuery_fieldValidation = strdup("fieldValidation");
|
||||
valueQuery_fieldValidation = strdup((fieldValidation));
|
||||
keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_force = NULL;
|
||||
char * valueQuery_force = NULL;
|
||||
keyValuePair_t *keyPairQuery_force = 0;
|
||||
if (1) // Always send boolean parameters to the API server
|
||||
{
|
||||
keyQuery_force = strdup("force");
|
||||
valueQuery_force = calloc(1,MAX_NUMBER_LENGTH);
|
||||
snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force);
|
||||
keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_force);
|
||||
}
|
||||
|
||||
// Body Param
|
||||
cJSON *localVarSingleItemJSON_body = NULL;
|
||||
if (body != NULL)
|
||||
{
|
||||
//string
|
||||
localVarSingleItemJSON_body = object_convertToJSON(body);
|
||||
localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body);
|
||||
}
|
||||
list_addElement(localVarHeaderType,"application/json"); //produces
|
||||
list_addElement(localVarHeaderType,"application/yaml"); //produces
|
||||
list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces
|
||||
list_addElement(localVarContentType,"application/json-patch+json"); //consumes
|
||||
list_addElement(localVarContentType,"application/merge-patch+json"); //consumes
|
||||
list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes
|
||||
list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes
|
||||
apiClient_invoke(apiClient,
|
||||
localVarPath,
|
||||
localVarQueryParameters,
|
||||
localVarHeaderParameters,
|
||||
localVarFormParameters,
|
||||
localVarHeaderType,
|
||||
localVarContentType,
|
||||
localVarBodyParameters,
|
||||
"PATCH");
|
||||
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 200) {
|
||||
// printf("%s\n","OK");
|
||||
//}
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 201) {
|
||||
// printf("%s\n","Created");
|
||||
//}
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 401) {
|
||||
// printf("%s\n","Unauthorized");
|
||||
//}
|
||||
//nonprimitive not container
|
||||
cJSON *NetworkingV1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived);
|
||||
v1_network_policy_t *elementToReturn = v1_network_policy_parseFromJSON(NetworkingV1APIlocalVarJSON);
|
||||
cJSON_Delete(NetworkingV1APIlocalVarJSON);
|
||||
if(elementToReturn == NULL) {
|
||||
// return 0;
|
||||
}
|
||||
|
||||
//return type
|
||||
if (apiClient->dataReceived) {
|
||||
free(apiClient->dataReceived);
|
||||
apiClient->dataReceived = NULL;
|
||||
apiClient->dataReceivedLen = 0;
|
||||
}
|
||||
list_freeList(localVarQueryParameters);
|
||||
|
||||
|
||||
list_freeList(localVarHeaderType);
|
||||
list_freeList(localVarContentType);
|
||||
free(localVarPath);
|
||||
free(localVarToReplace_name);
|
||||
free(localVarToReplace__namespace);
|
||||
if (localVarSingleItemJSON_body) {
|
||||
cJSON_Delete(localVarSingleItemJSON_body);
|
||||
localVarSingleItemJSON_body = NULL;
|
||||
}
|
||||
free(localVarBodyParameters);
|
||||
if(keyQuery_pretty){
|
||||
free(keyQuery_pretty);
|
||||
keyQuery_pretty = NULL;
|
||||
}
|
||||
if(valueQuery_pretty){
|
||||
free(valueQuery_pretty);
|
||||
valueQuery_pretty = NULL;
|
||||
}
|
||||
if(keyPairQuery_pretty){
|
||||
keyValuePair_free(keyPairQuery_pretty);
|
||||
keyPairQuery_pretty = NULL;
|
||||
}
|
||||
if(keyQuery_dryRun){
|
||||
free(keyQuery_dryRun);
|
||||
keyQuery_dryRun = NULL;
|
||||
}
|
||||
if(valueQuery_dryRun){
|
||||
free(valueQuery_dryRun);
|
||||
valueQuery_dryRun = NULL;
|
||||
}
|
||||
if(keyPairQuery_dryRun){
|
||||
keyValuePair_free(keyPairQuery_dryRun);
|
||||
keyPairQuery_dryRun = NULL;
|
||||
}
|
||||
if(keyQuery_fieldManager){
|
||||
free(keyQuery_fieldManager);
|
||||
keyQuery_fieldManager = NULL;
|
||||
}
|
||||
if(valueQuery_fieldManager){
|
||||
free(valueQuery_fieldManager);
|
||||
valueQuery_fieldManager = NULL;
|
||||
}
|
||||
if(keyPairQuery_fieldManager){
|
||||
keyValuePair_free(keyPairQuery_fieldManager);
|
||||
keyPairQuery_fieldManager = NULL;
|
||||
}
|
||||
if(keyQuery_fieldValidation){
|
||||
free(keyQuery_fieldValidation);
|
||||
keyQuery_fieldValidation = NULL;
|
||||
}
|
||||
if(valueQuery_fieldValidation){
|
||||
free(valueQuery_fieldValidation);
|
||||
valueQuery_fieldValidation = NULL;
|
||||
}
|
||||
if(keyPairQuery_fieldValidation){
|
||||
keyValuePair_free(keyPairQuery_fieldValidation);
|
||||
keyPairQuery_fieldValidation = NULL;
|
||||
}
|
||||
if(keyQuery_force){
|
||||
free(keyQuery_force);
|
||||
keyQuery_force = NULL;
|
||||
}
|
||||
if(valueQuery_force){
|
||||
free(valueQuery_force);
|
||||
valueQuery_force = NULL;
|
||||
}
|
||||
if(keyPairQuery_force){
|
||||
keyValuePair_free(keyPairQuery_force);
|
||||
keyPairQuery_force = NULL;
|
||||
}
|
||||
return elementToReturn;
|
||||
end:
|
||||
free(localVarPath);
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
// read the specified IngressClass
|
||||
//
|
||||
v1_ingress_class_t*
|
||||
@@ -5777,119 +5545,6 @@ NetworkingV1API_readNamespacedNetworkPolicy(apiClient_t *apiClient, char * name
|
||||
|
||||
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_pretty = NULL;
|
||||
char * valueQuery_pretty = NULL;
|
||||
keyValuePair_t *keyPairQuery_pretty = 0;
|
||||
if (pretty)
|
||||
{
|
||||
keyQuery_pretty = strdup("pretty");
|
||||
valueQuery_pretty = strdup((pretty));
|
||||
keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_pretty);
|
||||
}
|
||||
list_addElement(localVarHeaderType,"application/json"); //produces
|
||||
list_addElement(localVarHeaderType,"application/yaml"); //produces
|
||||
list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces
|
||||
apiClient_invoke(apiClient,
|
||||
localVarPath,
|
||||
localVarQueryParameters,
|
||||
localVarHeaderParameters,
|
||||
localVarFormParameters,
|
||||
localVarHeaderType,
|
||||
localVarContentType,
|
||||
localVarBodyParameters,
|
||||
"GET");
|
||||
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 200) {
|
||||
// printf("%s\n","OK");
|
||||
//}
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 401) {
|
||||
// printf("%s\n","Unauthorized");
|
||||
//}
|
||||
//nonprimitive not container
|
||||
cJSON *NetworkingV1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived);
|
||||
v1_network_policy_t *elementToReturn = v1_network_policy_parseFromJSON(NetworkingV1APIlocalVarJSON);
|
||||
cJSON_Delete(NetworkingV1APIlocalVarJSON);
|
||||
if(elementToReturn == NULL) {
|
||||
// return 0;
|
||||
}
|
||||
|
||||
//return type
|
||||
if (apiClient->dataReceived) {
|
||||
free(apiClient->dataReceived);
|
||||
apiClient->dataReceived = NULL;
|
||||
apiClient->dataReceivedLen = 0;
|
||||
}
|
||||
list_freeList(localVarQueryParameters);
|
||||
|
||||
|
||||
list_freeList(localVarHeaderType);
|
||||
|
||||
free(localVarPath);
|
||||
free(localVarToReplace_name);
|
||||
free(localVarToReplace__namespace);
|
||||
if(keyQuery_pretty){
|
||||
free(keyQuery_pretty);
|
||||
keyQuery_pretty = NULL;
|
||||
}
|
||||
if(valueQuery_pretty){
|
||||
free(valueQuery_pretty);
|
||||
valueQuery_pretty = NULL;
|
||||
}
|
||||
if(keyPairQuery_pretty){
|
||||
keyValuePair_free(keyPairQuery_pretty);
|
||||
keyPairQuery_pretty = NULL;
|
||||
}
|
||||
return elementToReturn;
|
||||
end:
|
||||
free(localVarPath);
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
// read status of the specified NetworkPolicy
|
||||
//
|
||||
v1_network_policy_t*
|
||||
NetworkingV1API_readNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty )
|
||||
{
|
||||
list_t *localVarQueryParameters = list_createList();
|
||||
list_t *localVarHeaderParameters = NULL;
|
||||
list_t *localVarFormParameters = NULL;
|
||||
list_t *localVarHeaderType = list_createList();
|
||||
list_t *localVarContentType = NULL;
|
||||
char *localVarBodyParameters = NULL;
|
||||
|
||||
// create the path
|
||||
long sizeOfPath = strlen("/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status")+1;
|
||||
char *localVarPath = malloc(sizeOfPath);
|
||||
snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status");
|
||||
|
||||
|
||||
// Path Params
|
||||
long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }");
|
||||
if(name == NULL) {
|
||||
goto end;
|
||||
}
|
||||
char* localVarToReplace_name = malloc(sizeOfPathParams_name);
|
||||
sprintf(localVarToReplace_name, "{%s}", "name");
|
||||
|
||||
localVarPath = strReplace(localVarPath, localVarToReplace_name, name);
|
||||
|
||||
// Path Params
|
||||
long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }");
|
||||
if(_namespace == NULL) {
|
||||
goto end;
|
||||
}
|
||||
char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace);
|
||||
sprintf(localVarToReplace__namespace, "{%s}", "namespace");
|
||||
|
||||
localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace);
|
||||
|
||||
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_pretty = NULL;
|
||||
char * valueQuery_pretty = NULL;
|
||||
@@ -6764,206 +6419,3 @@ end:
|
||||
|
||||
}
|
||||
|
||||
// replace status of the specified NetworkPolicy
|
||||
//
|
||||
v1_network_policy_t*
|
||||
NetworkingV1API_replaceNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char * name , char * _namespace , v1_network_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation )
|
||||
{
|
||||
list_t *localVarQueryParameters = list_createList();
|
||||
list_t *localVarHeaderParameters = NULL;
|
||||
list_t *localVarFormParameters = NULL;
|
||||
list_t *localVarHeaderType = list_createList();
|
||||
list_t *localVarContentType = NULL;
|
||||
char *localVarBodyParameters = NULL;
|
||||
|
||||
// create the path
|
||||
long sizeOfPath = strlen("/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status")+1;
|
||||
char *localVarPath = malloc(sizeOfPath);
|
||||
snprintf(localVarPath, sizeOfPath, "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status");
|
||||
|
||||
|
||||
// Path Params
|
||||
long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }");
|
||||
if(name == NULL) {
|
||||
goto end;
|
||||
}
|
||||
char* localVarToReplace_name = malloc(sizeOfPathParams_name);
|
||||
sprintf(localVarToReplace_name, "{%s}", "name");
|
||||
|
||||
localVarPath = strReplace(localVarPath, localVarToReplace_name, name);
|
||||
|
||||
// Path Params
|
||||
long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }");
|
||||
if(_namespace == NULL) {
|
||||
goto end;
|
||||
}
|
||||
char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace);
|
||||
sprintf(localVarToReplace__namespace, "{%s}", "namespace");
|
||||
|
||||
localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace);
|
||||
|
||||
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_pretty = NULL;
|
||||
char * valueQuery_pretty = NULL;
|
||||
keyValuePair_t *keyPairQuery_pretty = 0;
|
||||
if (pretty)
|
||||
{
|
||||
keyQuery_pretty = strdup("pretty");
|
||||
valueQuery_pretty = strdup((pretty));
|
||||
keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_pretty);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_dryRun = NULL;
|
||||
char * valueQuery_dryRun = NULL;
|
||||
keyValuePair_t *keyPairQuery_dryRun = 0;
|
||||
if (dryRun)
|
||||
{
|
||||
keyQuery_dryRun = strdup("dryRun");
|
||||
valueQuery_dryRun = strdup((dryRun));
|
||||
keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_dryRun);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_fieldManager = NULL;
|
||||
char * valueQuery_fieldManager = NULL;
|
||||
keyValuePair_t *keyPairQuery_fieldManager = 0;
|
||||
if (fieldManager)
|
||||
{
|
||||
keyQuery_fieldManager = strdup("fieldManager");
|
||||
valueQuery_fieldManager = strdup((fieldManager));
|
||||
keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_fieldManager);
|
||||
}
|
||||
|
||||
// query parameters
|
||||
char *keyQuery_fieldValidation = NULL;
|
||||
char * valueQuery_fieldValidation = NULL;
|
||||
keyValuePair_t *keyPairQuery_fieldValidation = 0;
|
||||
if (fieldValidation)
|
||||
{
|
||||
keyQuery_fieldValidation = strdup("fieldValidation");
|
||||
valueQuery_fieldValidation = strdup((fieldValidation));
|
||||
keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation);
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation);
|
||||
}
|
||||
|
||||
// Body Param
|
||||
cJSON *localVarSingleItemJSON_body = NULL;
|
||||
if (body != NULL)
|
||||
{
|
||||
//string
|
||||
localVarSingleItemJSON_body = v1_network_policy_convertToJSON(body);
|
||||
localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body);
|
||||
}
|
||||
list_addElement(localVarHeaderType,"application/json"); //produces
|
||||
list_addElement(localVarHeaderType,"application/yaml"); //produces
|
||||
list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces
|
||||
apiClient_invoke(apiClient,
|
||||
localVarPath,
|
||||
localVarQueryParameters,
|
||||
localVarHeaderParameters,
|
||||
localVarFormParameters,
|
||||
localVarHeaderType,
|
||||
localVarContentType,
|
||||
localVarBodyParameters,
|
||||
"PUT");
|
||||
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 200) {
|
||||
// printf("%s\n","OK");
|
||||
//}
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 201) {
|
||||
// printf("%s\n","Created");
|
||||
//}
|
||||
// uncomment below to debug the error response
|
||||
//if (apiClient->response_code == 401) {
|
||||
// printf("%s\n","Unauthorized");
|
||||
//}
|
||||
//nonprimitive not container
|
||||
cJSON *NetworkingV1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived);
|
||||
v1_network_policy_t *elementToReturn = v1_network_policy_parseFromJSON(NetworkingV1APIlocalVarJSON);
|
||||
cJSON_Delete(NetworkingV1APIlocalVarJSON);
|
||||
if(elementToReturn == NULL) {
|
||||
// return 0;
|
||||
}
|
||||
|
||||
//return type
|
||||
if (apiClient->dataReceived) {
|
||||
free(apiClient->dataReceived);
|
||||
apiClient->dataReceived = NULL;
|
||||
apiClient->dataReceivedLen = 0;
|
||||
}
|
||||
list_freeList(localVarQueryParameters);
|
||||
|
||||
|
||||
list_freeList(localVarHeaderType);
|
||||
|
||||
free(localVarPath);
|
||||
free(localVarToReplace_name);
|
||||
free(localVarToReplace__namespace);
|
||||
if (localVarSingleItemJSON_body) {
|
||||
cJSON_Delete(localVarSingleItemJSON_body);
|
||||
localVarSingleItemJSON_body = NULL;
|
||||
}
|
||||
free(localVarBodyParameters);
|
||||
if(keyQuery_pretty){
|
||||
free(keyQuery_pretty);
|
||||
keyQuery_pretty = NULL;
|
||||
}
|
||||
if(valueQuery_pretty){
|
||||
free(valueQuery_pretty);
|
||||
valueQuery_pretty = NULL;
|
||||
}
|
||||
if(keyPairQuery_pretty){
|
||||
keyValuePair_free(keyPairQuery_pretty);
|
||||
keyPairQuery_pretty = NULL;
|
||||
}
|
||||
if(keyQuery_dryRun){
|
||||
free(keyQuery_dryRun);
|
||||
keyQuery_dryRun = NULL;
|
||||
}
|
||||
if(valueQuery_dryRun){
|
||||
free(valueQuery_dryRun);
|
||||
valueQuery_dryRun = NULL;
|
||||
}
|
||||
if(keyPairQuery_dryRun){
|
||||
keyValuePair_free(keyPairQuery_dryRun);
|
||||
keyPairQuery_dryRun = NULL;
|
||||
}
|
||||
if(keyQuery_fieldManager){
|
||||
free(keyQuery_fieldManager);
|
||||
keyQuery_fieldManager = NULL;
|
||||
}
|
||||
if(valueQuery_fieldManager){
|
||||
free(valueQuery_fieldManager);
|
||||
valueQuery_fieldManager = NULL;
|
||||
}
|
||||
if(keyPairQuery_fieldManager){
|
||||
keyValuePair_free(keyPairQuery_fieldManager);
|
||||
keyPairQuery_fieldManager = NULL;
|
||||
}
|
||||
if(keyQuery_fieldValidation){
|
||||
free(keyQuery_fieldValidation);
|
||||
keyQuery_fieldValidation = NULL;
|
||||
}
|
||||
if(valueQuery_fieldValidation){
|
||||
free(valueQuery_fieldValidation);
|
||||
valueQuery_fieldValidation = NULL;
|
||||
}
|
||||
if(keyPairQuery_fieldValidation){
|
||||
keyValuePair_free(keyPairQuery_fieldValidation);
|
||||
keyPairQuery_fieldValidation = NULL;
|
||||
}
|
||||
return elementToReturn;
|
||||
end:
|
||||
free(localVarPath);
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -131,12 +131,6 @@ v1_network_policy_t*
|
||||
NetworkingV1API_patchNamespacedNetworkPolicy(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force );
|
||||
|
||||
|
||||
// partially update status of the specified NetworkPolicy
|
||||
//
|
||||
v1_network_policy_t*
|
||||
NetworkingV1API_patchNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force );
|
||||
|
||||
|
||||
// read the specified IngressClass
|
||||
//
|
||||
v1_ingress_class_t*
|
||||
@@ -161,12 +155,6 @@ v1_network_policy_t*
|
||||
NetworkingV1API_readNamespacedNetworkPolicy(apiClient_t *apiClient, char * name , char * _namespace , char * pretty );
|
||||
|
||||
|
||||
// read status of the specified NetworkPolicy
|
||||
//
|
||||
v1_network_policy_t*
|
||||
NetworkingV1API_readNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty );
|
||||
|
||||
|
||||
// replace the specified IngressClass
|
||||
//
|
||||
v1_ingress_class_t*
|
||||
@@ -191,9 +179,3 @@ v1_network_policy_t*
|
||||
NetworkingV1API_replaceNamespacedNetworkPolicy(apiClient_t *apiClient, char * name , char * _namespace , v1_network_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation );
|
||||
|
||||
|
||||
// replace status of the specified NetworkPolicy
|
||||
//
|
||||
v1_network_policy_t*
|
||||
NetworkingV1API_replaceNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char * name , char * _namespace , v1_network_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation );
|
||||
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ OpenidAPI_getServiceAccountIssuerOpenIDKeyset(apiClient_t *apiClient)
|
||||
char *localVarBodyParameters = NULL;
|
||||
|
||||
// create the path
|
||||
long sizeOfPath = strlen("/openid/v1/jwks/")+1;
|
||||
long sizeOfPath = strlen("/openid/v1/jwks")+1;
|
||||
char *localVarPath = malloc(sizeOfPath);
|
||||
snprintf(localVarPath, sizeOfPath, "/openid/v1/jwks/");
|
||||
snprintf(localVarPath, sizeOfPath, "/openid/v1/jwks");
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration(apiClient_t *apiClient)
|
||||
char *localVarBodyParameters = NULL;
|
||||
|
||||
// create the path
|
||||
long sizeOfPath = strlen("/.well-known/openid-configuration/")+1;
|
||||
long sizeOfPath = strlen("/.well-known/openid-configuration")+1;
|
||||
char *localVarPath = malloc(sizeOfPath);
|
||||
snprintf(localVarPath, sizeOfPath, "/.well-known/openid-configuration/");
|
||||
snprintf(localVarPath, sizeOfPath, "/.well-known/openid-configuration");
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,42 +4,46 @@ All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**AdmissionregistrationV1beta1API_createMutatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_createMutatingWebhookConfiguration) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations |
|
||||
[**AdmissionregistrationV1beta1API_createValidatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_createValidatingWebhookConfiguration) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations |
|
||||
[**AdmissionregistrationV1beta1API_deleteCollectionMutatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteCollectionMutatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations |
|
||||
[**AdmissionregistrationV1beta1API_deleteCollectionValidatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteCollectionValidatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations |
|
||||
[**AdmissionregistrationV1beta1API_deleteMutatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteMutatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name} |
|
||||
[**AdmissionregistrationV1beta1API_deleteValidatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteValidatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name} |
|
||||
[**AdmissionregistrationV1beta1API_createValidatingAdmissionPolicy**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies |
|
||||
[**AdmissionregistrationV1beta1API_createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings |
|
||||
[**AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies |
|
||||
[**AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings |
|
||||
[**AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicy**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} |
|
||||
[**AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} |
|
||||
[**AdmissionregistrationV1beta1API_getAPIResources**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1beta1/ |
|
||||
[**AdmissionregistrationV1beta1API_listMutatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_listMutatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations |
|
||||
[**AdmissionregistrationV1beta1API_listValidatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_listValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations |
|
||||
[**AdmissionregistrationV1beta1API_patchMutatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_patchMutatingWebhookConfiguration) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name} |
|
||||
[**AdmissionregistrationV1beta1API_patchValidatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_patchValidatingWebhookConfiguration) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name} |
|
||||
[**AdmissionregistrationV1beta1API_readMutatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_readMutatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name} |
|
||||
[**AdmissionregistrationV1beta1API_readValidatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_readValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name} |
|
||||
[**AdmissionregistrationV1beta1API_replaceMutatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_replaceMutatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name} |
|
||||
[**AdmissionregistrationV1beta1API_replaceValidatingWebhookConfiguration**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_replaceValidatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name} |
|
||||
[**AdmissionregistrationV1beta1API_listValidatingAdmissionPolicy**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies |
|
||||
[**AdmissionregistrationV1beta1API_listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings |
|
||||
[**AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicy**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} |
|
||||
[**AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} |
|
||||
[**AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status |
|
||||
[**AdmissionregistrationV1beta1API_readValidatingAdmissionPolicy**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} |
|
||||
[**AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} |
|
||||
[**AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status |
|
||||
[**AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicy**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} |
|
||||
[**AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} |
|
||||
[**AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1API.md#AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status |
|
||||
|
||||
|
||||
# **AdmissionregistrationV1beta1API_createMutatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_createValidatingAdmissionPolicy**
|
||||
```c
|
||||
// create a MutatingWebhookConfiguration
|
||||
// create a ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_mutating_webhook_configuration_t* AdmissionregistrationV1beta1API_createMutatingWebhookConfiguration(apiClient_t *apiClient, v1beta1_mutating_webhook_configuration_t * body, char * pretty, char * dryRun, char * fieldManager);
|
||||
v1beta1_validating_admission_policy_t* AdmissionregistrationV1beta1API_createValidatingAdmissionPolicy(apiClient_t *apiClient, v1beta1_validating_admission_policy_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**body** | **[v1beta1_mutating_webhook_configuration_t](v1beta1_mutating_webhook_configuration.md) \*** | |
|
||||
**body** | **[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_mutating_webhook_configuration_t](v1beta1_mutating_webhook_configuration.md) *
|
||||
[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -53,25 +57,26 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_createValidatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_createValidatingAdmissionPolicyBinding**
|
||||
```c
|
||||
// create a ValidatingWebhookConfiguration
|
||||
// create a ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_webhook_configuration_t* AdmissionregistrationV1beta1API_createValidatingWebhookConfiguration(apiClient_t *apiClient, v1beta1_validating_webhook_configuration_t * body, char * pretty, char * dryRun, char * fieldManager);
|
||||
v1beta1_validating_admission_policy_binding_t* AdmissionregistrationV1beta1API_createValidatingAdmissionPolicyBinding(apiClient_t *apiClient, v1beta1_validating_admission_policy_binding_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**body** | **[v1beta1_validating_webhook_configuration_t](v1beta1_validating_webhook_configuration.md) \*** | |
|
||||
**body** | **[v1beta1_validating_admission_policy_binding_t](v1beta1_validating_admission_policy_binding.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_validating_webhook_configuration_t](v1beta1_validating_webhook_configuration.md) *
|
||||
[v1beta1_validating_admission_policy_binding_t](v1beta1_validating_admission_policy_binding.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -85,11 +90,11 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_deleteCollectionMutatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicy**
|
||||
```c
|
||||
// delete collection of MutatingWebhookConfiguration
|
||||
// delete collection of ValidatingAdmissionPolicy
|
||||
//
|
||||
v1_status_t* AdmissionregistrationV1beta1API_deleteCollectionMutatingWebhookConfiguration(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, int timeoutSeconds, v1_delete_options_t * body);
|
||||
v1_status_t* AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int sendInitialEvents, int timeoutSeconds, v1_delete_options_t * body);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
@@ -105,7 +110,9 @@ Name | Type | Description | Notes
|
||||
**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional]
|
||||
**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional]
|
||||
**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional]
|
||||
**resourceVersion** | **char \*** | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional]
|
||||
**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional]
|
||||
**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional]
|
||||
**sendInitialEvents** | **int** | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional]
|
||||
**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional]
|
||||
**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional]
|
||||
|
||||
@@ -125,11 +132,11 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_deleteCollectionValidatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicyBinding**
|
||||
```c
|
||||
// delete collection of ValidatingWebhookConfiguration
|
||||
// delete collection of ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1_status_t* AdmissionregistrationV1beta1API_deleteCollectionValidatingWebhookConfiguration(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, int timeoutSeconds, v1_delete_options_t * body);
|
||||
v1_status_t* AdmissionregistrationV1beta1API_deleteCollectionValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int sendInitialEvents, int timeoutSeconds, v1_delete_options_t * body);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
@@ -145,7 +152,9 @@ Name | Type | Description | Notes
|
||||
**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional]
|
||||
**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional]
|
||||
**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional]
|
||||
**resourceVersion** | **char \*** | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional]
|
||||
**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional]
|
||||
**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional]
|
||||
**sendInitialEvents** | **int** | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional]
|
||||
**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional]
|
||||
**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional]
|
||||
|
||||
@@ -165,18 +174,18 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_deleteMutatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicy**
|
||||
```c
|
||||
// delete a MutatingWebhookConfiguration
|
||||
// delete a ValidatingAdmissionPolicy
|
||||
//
|
||||
v1_status_t* AdmissionregistrationV1beta1API_deleteMutatingWebhookConfiguration(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body);
|
||||
v1_status_t* AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the MutatingWebhookConfiguration |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicy |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional]
|
||||
@@ -200,18 +209,18 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_deleteValidatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicyBinding**
|
||||
```c
|
||||
// delete a ValidatingWebhookConfiguration
|
||||
// delete a ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1_status_t* AdmissionregistrationV1beta1API_deleteValidatingWebhookConfiguration(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body);
|
||||
v1_status_t* AdmissionregistrationV1beta1API_deleteValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the ValidatingWebhookConfiguration |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional]
|
||||
@@ -263,11 +272,11 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_listMutatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_listValidatingAdmissionPolicy**
|
||||
```c
|
||||
// list or watch objects of kind MutatingWebhookConfiguration
|
||||
// list or watch objects of kind ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_mutating_webhook_configuration_list_t* AdmissionregistrationV1beta1API_listMutatingWebhookConfiguration(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, int timeoutSeconds, int watch);
|
||||
v1beta1_validating_admission_policy_list_t* AdmissionregistrationV1beta1API_listValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int sendInitialEvents, int timeoutSeconds, int watch);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
@@ -275,18 +284,20 @@ Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | [optional]
|
||||
**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional]
|
||||
**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional]
|
||||
**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional]
|
||||
**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional]
|
||||
**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional]
|
||||
**resourceVersion** | **char \*** | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional]
|
||||
**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional]
|
||||
**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional]
|
||||
**sendInitialEvents** | **int** | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional]
|
||||
**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional]
|
||||
**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_mutating_webhook_configuration_list_t](v1beta1_mutating_webhook_configuration_list.md) *
|
||||
[v1beta1_validating_admission_policy_list_t](v1beta1_validating_admission_policy_list.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -300,11 +311,11 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_listValidatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_listValidatingAdmissionPolicyBinding**
|
||||
```c
|
||||
// list or watch objects of kind ValidatingWebhookConfiguration
|
||||
// list or watch objects of kind ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_webhook_configuration_list_t* AdmissionregistrationV1beta1API_listValidatingWebhookConfiguration(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, int timeoutSeconds, int watch);
|
||||
v1beta1_validating_admission_policy_binding_list_t* AdmissionregistrationV1beta1API_listValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int sendInitialEvents, int timeoutSeconds, int watch);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
@@ -312,18 +323,20 @@ Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | [optional]
|
||||
**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional]
|
||||
**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional]
|
||||
**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional]
|
||||
**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional]
|
||||
**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional]
|
||||
**resourceVersion** | **char \*** | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional]
|
||||
**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional]
|
||||
**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional]
|
||||
**sendInitialEvents** | **int** | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional]
|
||||
**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional]
|
||||
**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_validating_webhook_configuration_list_t](v1beta1_validating_webhook_configuration_list.md) *
|
||||
[v1beta1_validating_admission_policy_binding_list_t](v1beta1_validating_admission_policy_binding_list.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -337,27 +350,28 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_patchMutatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicy**
|
||||
```c
|
||||
// partially update the specified MutatingWebhookConfiguration
|
||||
// partially update the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_mutating_webhook_configuration_t* AdmissionregistrationV1beta1API_patchMutatingWebhookConfiguration(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, int force);
|
||||
v1beta1_validating_admission_policy_t* AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the MutatingWebhookConfiguration |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicy |
|
||||
**body** | **[object_t](object.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_mutating_webhook_configuration_t](v1beta1_mutating_webhook_configuration.md) *
|
||||
[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -371,27 +385,28 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_patchValidatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyBinding**
|
||||
```c
|
||||
// partially update the specified ValidatingWebhookConfiguration
|
||||
// partially update the specified ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_webhook_configuration_t* AdmissionregistrationV1beta1API_patchValidatingWebhookConfiguration(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, int force);
|
||||
v1beta1_validating_admission_policy_binding_t* AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the ValidatingWebhookConfiguration |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding |
|
||||
**body** | **[object_t](object.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_validating_webhook_configuration_t](v1beta1_validating_webhook_configuration.md) *
|
||||
[v1beta1_validating_admission_policy_binding_t](v1beta1_validating_admission_policy_binding.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -405,25 +420,58 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_readMutatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyStatus**
|
||||
```c
|
||||
// read the specified MutatingWebhookConfiguration
|
||||
// partially update status of the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_mutating_webhook_configuration_t* AdmissionregistrationV1beta1API_readMutatingWebhookConfiguration(apiClient_t *apiClient, char * name, char * pretty, int exact, int _export);
|
||||
v1beta1_validating_admission_policy_t* AdmissionregistrationV1beta1API_patchValidatingAdmissionPolicyStatus(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the MutatingWebhookConfiguration |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicy |
|
||||
**body** | **[object_t](object.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**exact** | **int** | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional]
|
||||
**_export** | **int** | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_mutating_webhook_configuration_t](v1beta1_mutating_webhook_configuration.md) *
|
||||
[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerToken](../README.md#BearerToken)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
|
||||
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_readValidatingAdmissionPolicy**
|
||||
```c
|
||||
// read the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t* AdmissionregistrationV1beta1API_readValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, char * pretty);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicy |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -437,25 +485,23 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_readValidatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyBinding**
|
||||
```c
|
||||
// read the specified ValidatingWebhookConfiguration
|
||||
// read the specified ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_webhook_configuration_t* AdmissionregistrationV1beta1API_readValidatingWebhookConfiguration(apiClient_t *apiClient, char * name, char * pretty, int exact, int _export);
|
||||
v1beta1_validating_admission_policy_binding_t* AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, char * pretty);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the ValidatingWebhookConfiguration |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**exact** | **int** | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional]
|
||||
**_export** | **int** | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_validating_webhook_configuration_t](v1beta1_validating_webhook_configuration.md) *
|
||||
[v1beta1_validating_admission_policy_binding_t](v1beta1_validating_admission_policy_binding.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -469,26 +515,57 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_replaceMutatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyStatus**
|
||||
```c
|
||||
// replace the specified MutatingWebhookConfiguration
|
||||
// read status of the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_mutating_webhook_configuration_t* AdmissionregistrationV1beta1API_replaceMutatingWebhookConfiguration(apiClient_t *apiClient, char * name, v1beta1_mutating_webhook_configuration_t * body, char * pretty, char * dryRun, char * fieldManager);
|
||||
v1beta1_validating_admission_policy_t* AdmissionregistrationV1beta1API_readValidatingAdmissionPolicyStatus(apiClient_t *apiClient, char * name, char * pretty);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the MutatingWebhookConfiguration |
|
||||
**body** | **[v1beta1_mutating_webhook_configuration_t](v1beta1_mutating_webhook_configuration.md) \*** | |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicy |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerToken](../README.md#BearerToken)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicy**
|
||||
```c
|
||||
// replace the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t* AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, v1beta1_validating_admission_policy_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicy |
|
||||
**body** | **[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_mutating_webhook_configuration_t](v1beta1_mutating_webhook_configuration.md) *
|
||||
[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -502,26 +579,61 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_replaceValidatingWebhookConfiguration**
|
||||
# **AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyBinding**
|
||||
```c
|
||||
// replace the specified ValidatingWebhookConfiguration
|
||||
// replace the specified ValidatingAdmissionPolicyBinding
|
||||
//
|
||||
v1beta1_validating_webhook_configuration_t* AdmissionregistrationV1beta1API_replaceValidatingWebhookConfiguration(apiClient_t *apiClient, char * name, v1beta1_validating_webhook_configuration_t * body, char * pretty, char * dryRun, char * fieldManager);
|
||||
v1beta1_validating_admission_policy_binding_t* AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, v1beta1_validating_admission_policy_binding_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the ValidatingWebhookConfiguration |
|
||||
**body** | **[v1beta1_validating_webhook_configuration_t](v1beta1_validating_webhook_configuration.md) \*** | |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding |
|
||||
**body** | **[v1beta1_validating_admission_policy_binding_t](v1beta1_validating_admission_policy_binding.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_validating_webhook_configuration_t](v1beta1_validating_webhook_configuration.md) *
|
||||
[v1beta1_validating_admission_policy_binding_t](v1beta1_validating_admission_policy_binding.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerToken](../README.md#BearerToken)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyStatus**
|
||||
```c
|
||||
// replace status of the specified ValidatingAdmissionPolicy
|
||||
//
|
||||
v1beta1_validating_admission_policy_t* AdmissionregistrationV1beta1API_replaceValidatingAdmissionPolicyStatus(apiClient_t *apiClient, char * name, v1beta1_validating_admission_policy_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the ValidatingAdmissionPolicy |
|
||||
**body** | **[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1beta1_validating_admission_policy_t](v1beta1_validating_admission_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -4,10 +4,44 @@ All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**AuthenticationV1API_createSelfSubjectReview**](AuthenticationV1API.md#AuthenticationV1API_createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1/selfsubjectreviews |
|
||||
[**AuthenticationV1API_createTokenReview**](AuthenticationV1API.md#AuthenticationV1API_createTokenReview) | **POST** /apis/authentication.k8s.io/v1/tokenreviews |
|
||||
[**AuthenticationV1API_getAPIResources**](AuthenticationV1API.md#AuthenticationV1API_getAPIResources) | **GET** /apis/authentication.k8s.io/v1/ |
|
||||
|
||||
|
||||
# **AuthenticationV1API_createSelfSubjectReview**
|
||||
```c
|
||||
// create a SelfSubjectReview
|
||||
//
|
||||
v1_self_subject_review_t* AuthenticationV1API_createSelfSubjectReview(apiClient_t *apiClient, v1_self_subject_review_t * body, char * dryRun, char * fieldManager, char * fieldValidation, char * pretty);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**body** | **[v1_self_subject_review_t](v1_self_subject_review.md) \*** | |
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1_self_subject_review_t](v1_self_subject_review.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerToken](../README.md#BearerToken)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **AuthenticationV1API_createTokenReview**
|
||||
```c
|
||||
// create a TokenReview
|
||||
|
||||
@@ -23,17 +23,14 @@ Method | HTTP request | Description
|
||||
[**NetworkingV1API_patchNamespacedIngress**](NetworkingV1API.md#NetworkingV1API_patchNamespacedIngress) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} |
|
||||
[**NetworkingV1API_patchNamespacedIngressStatus**](NetworkingV1API.md#NetworkingV1API_patchNamespacedIngressStatus) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status |
|
||||
[**NetworkingV1API_patchNamespacedNetworkPolicy**](NetworkingV1API.md#NetworkingV1API_patchNamespacedNetworkPolicy) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} |
|
||||
[**NetworkingV1API_patchNamespacedNetworkPolicyStatus**](NetworkingV1API.md#NetworkingV1API_patchNamespacedNetworkPolicyStatus) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status |
|
||||
[**NetworkingV1API_readIngressClass**](NetworkingV1API.md#NetworkingV1API_readIngressClass) | **GET** /apis/networking.k8s.io/v1/ingressclasses/{name} |
|
||||
[**NetworkingV1API_readNamespacedIngress**](NetworkingV1API.md#NetworkingV1API_readNamespacedIngress) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} |
|
||||
[**NetworkingV1API_readNamespacedIngressStatus**](NetworkingV1API.md#NetworkingV1API_readNamespacedIngressStatus) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status |
|
||||
[**NetworkingV1API_readNamespacedNetworkPolicy**](NetworkingV1API.md#NetworkingV1API_readNamespacedNetworkPolicy) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} |
|
||||
[**NetworkingV1API_readNamespacedNetworkPolicyStatus**](NetworkingV1API.md#NetworkingV1API_readNamespacedNetworkPolicyStatus) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status |
|
||||
[**NetworkingV1API_replaceIngressClass**](NetworkingV1API.md#NetworkingV1API_replaceIngressClass) | **PUT** /apis/networking.k8s.io/v1/ingressclasses/{name} |
|
||||
[**NetworkingV1API_replaceNamespacedIngress**](NetworkingV1API.md#NetworkingV1API_replaceNamespacedIngress) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} |
|
||||
[**NetworkingV1API_replaceNamespacedIngressStatus**](NetworkingV1API.md#NetworkingV1API_replaceNamespacedIngressStatus) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status |
|
||||
[**NetworkingV1API_replaceNamespacedNetworkPolicy**](NetworkingV1API.md#NetworkingV1API_replaceNamespacedNetworkPolicy) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} |
|
||||
[**NetworkingV1API_replaceNamespacedNetworkPolicyStatus**](NetworkingV1API.md#NetworkingV1API_replaceNamespacedNetworkPolicyStatus) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status |
|
||||
|
||||
|
||||
# **NetworkingV1API_createIngressClass**
|
||||
@@ -729,42 +726,6 @@ Name | Type | Description | Notes
|
||||
[v1_network_policy_t](v1_network_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerToken](../README.md#BearerToken)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
|
||||
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **NetworkingV1API_patchNamespacedNetworkPolicyStatus**
|
||||
```c
|
||||
// partially update status of the specified NetworkPolicy
|
||||
//
|
||||
v1_network_policy_t* NetworkingV1API_patchNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the NetworkPolicy |
|
||||
**_namespace** | **char \*** | object name and auth scope, such as for teams and projects |
|
||||
**body** | **[object_t](object.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1_network_policy_t](v1_network_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerToken](../README.md#BearerToken)
|
||||
@@ -888,37 +849,6 @@ Name | Type | Description | Notes
|
||||
[v1_network_policy_t](v1_network_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerToken](../README.md#BearerToken)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **NetworkingV1API_readNamespacedNetworkPolicyStatus**
|
||||
```c
|
||||
// read status of the specified NetworkPolicy
|
||||
//
|
||||
v1_network_policy_t* NetworkingV1API_readNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char * name, char * _namespace, char * pretty);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the NetworkPolicy |
|
||||
**_namespace** | **char \*** | object name and auth scope, such as for teams and projects |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1_network_policy_t](v1_network_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerToken](../README.md#BearerToken)
|
||||
@@ -1069,38 +999,3 @@ Name | Type | Description | Notes
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **NetworkingV1API_replaceNamespacedNetworkPolicyStatus**
|
||||
```c
|
||||
// replace status of the specified NetworkPolicy
|
||||
//
|
||||
v1_network_policy_t* NetworkingV1API_replaceNamespacedNetworkPolicyStatus(apiClient_t *apiClient, char * name, char * _namespace, v1_network_policy_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**apiClient** | **apiClient_t \*** | context containing the client configuration |
|
||||
**name** | **char \*** | name of the NetworkPolicy |
|
||||
**_namespace** | **char \*** | object name and auth scope, such as for teams and projects |
|
||||
**body** | **[v1_network_policy_t](v1_network_policy.md) \*** | |
|
||||
**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional]
|
||||
**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional]
|
||||
**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional]
|
||||
**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[v1_network_policy_t](v1_network_policy.md) *
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
[BearerToken](../README.md#BearerToken)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**OpenidAPI_getServiceAccountIssuerOpenIDKeyset**](OpenidAPI.md#OpenidAPI_getServiceAccountIssuerOpenIDKeyset) | **GET** /openid/v1/jwks/ |
|
||||
[**OpenidAPI_getServiceAccountIssuerOpenIDKeyset**](OpenidAPI.md#OpenidAPI_getServiceAccountIssuerOpenIDKeyset) | **GET** /openid/v1/jwks |
|
||||
|
||||
|
||||
# **OpenidAPI_getServiceAccountIssuerOpenIDKeyset**
|
||||
|
||||
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration**](WellKnownAPI.md#WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration) | **GET** /.well-known/openid-configuration/ |
|
||||
[**WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration**](WellKnownAPI.md#WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration) | **GET** /.well-known/openid-configuration |
|
||||
|
||||
|
||||
# **WellKnownAPI_getServiceAccountIssuerOpenIDConfiguration**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**app_protocol** | **char \*** | The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. | [optional]
|
||||
**app_protocol** | **char \*** | The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. | [optional]
|
||||
**name** | **char \*** | The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. | [optional]
|
||||
**port** | **int** | The port number of the endpoint. |
|
||||
**protocol** | **char \*** | The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. | [optional]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**app_protocol** | **char \*** | The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. | [optional]
|
||||
**app_protocol** | **char \*** | The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. | [optional]
|
||||
**name** | **char \*** | name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. | [optional]
|
||||
**port** | **int** | port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. | [optional]
|
||||
**protocol** | **char \*** | protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. | [optional]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**resource_claim_name** | **char \*** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. | [optional]
|
||||
**resource_claim_template_name** | **char \*** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long). An existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. | [optional]
|
||||
**resource_claim_template_name** | **char \*** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
||||
**readiness_probe** | [**v1_probe_t**](v1_probe.md) \* | | [optional]
|
||||
**resize_policy** | [**list_t**](v1_container_resize_policy.md) \* | Resources resize policy for the container. | [optional]
|
||||
**resources** | [**v1_resource_requirements_t**](v1_resource_requirements.md) \* | | [optional]
|
||||
**restart_policy** | **char \*** | RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. | [optional]
|
||||
**security_context** | [**v1_security_context_t**](v1_security_context.md) \* | | [optional]
|
||||
**startup_probe** | [**v1_probe_t**](v1_probe.md) \* | | [optional]
|
||||
**_stdin** | **int** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. | [optional]
|
||||
|
||||
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
||||
**readiness_probe** | [**v1_probe_t**](v1_probe.md) \* | | [optional]
|
||||
**resize_policy** | [**list_t**](v1_container_resize_policy.md) \* | Resources resize policy for the container. | [optional]
|
||||
**resources** | [**v1_resource_requirements_t**](v1_resource_requirements.md) \* | | [optional]
|
||||
**restart_policy** | **char \*** | Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. | [optional]
|
||||
**security_context** | [**v1_security_context_t**](v1_security_context.md) \* | | [optional]
|
||||
**startup_probe** | [**v1_probe_t**](v1_probe.md) \* | | [optional]
|
||||
**_stdin** | **int** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. | [optional]
|
||||
|
||||
10
kubernetes/docs/v1_host_ip.md
Normal file
10
kubernetes/docs/v1_host_ip.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# v1_host_ip_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ip** | **char \*** | IP is the IP address assigned to the host | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -5,11 +5,14 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**active_deadline_seconds** | **long** | Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. | [optional]
|
||||
**backoff_limit** | **int** | Specifies the number of retries before marking this job failed. Defaults to 6 | [optional]
|
||||
**backoff_limit_per_index** | **int** | Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). | [optional]
|
||||
**completion_mode** | **char \*** | completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. | [optional]
|
||||
**completions** | **int** | Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional]
|
||||
**manual_selector** | **int** | manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector | [optional]
|
||||
**max_failed_indexes** | **int** | Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). | [optional]
|
||||
**parallelism** | **int** | Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional]
|
||||
**pod_failure_policy** | [**v1_pod_failure_policy_t**](v1_pod_failure_policy.md) \* | | [optional]
|
||||
**pod_replacement_policy** | **char \*** | podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an alpha field. Enable JobPodReplacementPolicy to be able to use this field. | [optional]
|
||||
**selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional]
|
||||
**suspend** | **int** | suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. | [optional]
|
||||
**_template** | [**v1_pod_template_spec_t**](v1_pod_template_spec.md) \* | |
|
||||
|
||||
@@ -8,9 +8,11 @@ Name | Type | Description | Notes
|
||||
**completion_time** | **char \*** | Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully. | [optional]
|
||||
**conditions** | [**list_t**](v1_job_condition.md) \* | The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional]
|
||||
**failed** | **int** | The number of pods which reached phase Failed. | [optional]
|
||||
**failed_indexes** | **char \*** | FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". This field is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). | [optional]
|
||||
**ready** | **int** | The number of pods which have a Ready condition. This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default). | [optional]
|
||||
**start_time** | **char \*** | Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. | [optional]
|
||||
**succeeded** | **int** | The number of pods which reached phase Succeeded. | [optional]
|
||||
**terminating** | **int** | The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). This field is alpha-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (disabled by default). | [optional]
|
||||
**uncounted_terminated_pods** | [**v1_uncounted_terminated_pods_t**](v1_uncounted_terminated_pods.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
||||
**admission_review_versions** | **list_t \*** | AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. |
|
||||
**client_config** | [**admissionregistration_v1_webhook_client_config_t**](admissionregistration_v1_webhook_client_config.md) \* | |
|
||||
**failure_policy** | **char \*** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. | [optional]
|
||||
**match_conditions** | [**list_t**](v1_match_condition.md) \* | MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped This is an alpha feature and managed by the AdmissionWebhookMatchConditions feature gate. | [optional]
|
||||
**match_conditions** | [**list_t**](v1_match_condition.md) \* | MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. | [optional]
|
||||
**match_policy** | **char \*** | matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" | [optional]
|
||||
**name** | **char \*** | The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. |
|
||||
**namespace_selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional]
|
||||
|
||||
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
|
||||
**kind** | **char \*** | 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 | [optional]
|
||||
**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional]
|
||||
**spec** | [**v1_network_policy_spec_t**](v1_network_policy_spec.md) \* | | [optional]
|
||||
**status** | [**v1_network_policy_status_t**](v1_network_policy_status.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**access_modes** | **list_t \*** | accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional]
|
||||
**allocated_resources** | **list_t*** | allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. | [optional]
|
||||
**allocated_resource_statuses** | **list_t*** | allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. | [optional]
|
||||
**allocated_resources** | **list_t*** | allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. | [optional]
|
||||
**capacity** | **list_t*** | capacity represents the actual resources of the underlying volume. | [optional]
|
||||
**conditions** | [**list_t**](v1_persistent_volume_claim_condition.md) \* | conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. | [optional]
|
||||
**phase** | **char \*** | phase represents the current phase of PersistentVolumeClaim. | [optional]
|
||||
**resize_status** | **char \*** | resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**last_phase_transition_time** | **char \*** | lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature. | [optional]
|
||||
**message** | **char \*** | message is a human-readable message indicating details about why the volume is in this state. | [optional]
|
||||
**phase** | **char \*** | phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase | [optional]
|
||||
**reason** | **char \*** | reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. | [optional]
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**action** | **char \*** | Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. |
|
||||
**action** | **char \*** | Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. This value is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. |
|
||||
**on_exit_codes** | [**v1_pod_failure_policy_on_exit_codes_requirement_t**](v1_pod_failure_policy_on_exit_codes_requirement.md) \* | | [optional]
|
||||
**on_pod_conditions** | [**list_t**](v1_pod_failure_policy_on_pod_conditions_pattern.md) \* | Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. |
|
||||
**on_pod_conditions** | [**list_t**](v1_pod_failure_policy_on_pod_conditions_pattern.md) \* | Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ip** | **char \*** | ip is an IP address (IPv4 or IPv6) assigned to the pod | [optional]
|
||||
**ip** | **char \*** | IP is the IP address assigned to the pod | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
kubernetes/docs/v1_pod_resource_claim_status.md
Normal file
11
kubernetes/docs/v1_pod_resource_claim_status.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1_pod_resource_claim_status_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **char \*** | Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. |
|
||||
**resource_claim_name** | **char \*** | ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -6,16 +6,18 @@ Name | Type | Description | Notes
|
||||
**conditions** | [**list_t**](v1_pod_condition.md) \* | Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | [optional]
|
||||
**container_statuses** | [**list_t**](v1_container_status.md) \* | The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional]
|
||||
**ephemeral_container_statuses** | [**list_t**](v1_container_status.md) \* | Status for any ephemeral containers that have run in this pod. | [optional]
|
||||
**host_ip** | **char \*** | IP address of the host to which the pod is assigned. Empty if not yet scheduled. | [optional]
|
||||
**host_ip** | **char \*** | hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod | [optional]
|
||||
**host_ips** | [**list_t**](v1_host_ip.md) \* | hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. | [optional]
|
||||
**init_container_statuses** | [**list_t**](v1_container_status.md) \* | The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional]
|
||||
**message** | **char \*** | A human readable message indicating details about why the pod is in this condition. | [optional]
|
||||
**nominated_node_name** | **char \*** | nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. | [optional]
|
||||
**phase** | **char \*** | The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase | [optional]
|
||||
**pod_ip** | **char \*** | IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. | [optional]
|
||||
**pod_ip** | **char \*** | podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. | [optional]
|
||||
**pod_ips** | [**list_t**](v1_pod_ip.md) \* | podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. | [optional]
|
||||
**qos_class** | **char \*** | The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes | [optional]
|
||||
**reason** | **char \*** | A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' | [optional]
|
||||
**resize** | **char \*** | Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" | [optional]
|
||||
**resource_claim_statuses** | [**list_t**](v1_pod_resource_claim_status.md) \* | Status of resource claims. | [optional]
|
||||
**start_time** | **char \*** | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**localhost_profile** | **char \*** | localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\". | [optional]
|
||||
**localhost_profile** | **char \*** | localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type. | [optional]
|
||||
**type** | **char \*** | type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
13
kubernetes/docs/v1_self_subject_review.md
Normal file
13
kubernetes/docs/v1_self_subject_review.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# v1_self_subject_review_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**api_version** | **char \*** | 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 | [optional]
|
||||
**kind** | **char \*** | 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 | [optional]
|
||||
**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional]
|
||||
**status** | [**v1_self_subject_review_status_t**](v1_self_subject_review_status.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
10
kubernetes/docs/v1_self_subject_review_status.md
Normal file
10
kubernetes/docs/v1_self_subject_review_status.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# v1_self_subject_review_status_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**user_info** | [**v1_user_info_t**](v1_user_info.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**app_protocol** | **char \*** | The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. | [optional]
|
||||
**app_protocol** | **char \*** | The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. | [optional]
|
||||
**name** | **char \*** | The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. | [optional]
|
||||
**node_port** | **int** | The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport | [optional]
|
||||
**port** | **int** | The port that will be exposed by this service. |
|
||||
|
||||
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
||||
**ip_families** | **list_t \*** | IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. | [optional]
|
||||
**ip_family_policy** | **char \*** | IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. | [optional]
|
||||
**load_balancer_class** | **char \*** | loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. | [optional]
|
||||
**load_balancer_ip** | **char \*** | Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations, and it cannot support dual-stack. As of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available. This field may be removed in a future API version. | [optional]
|
||||
**load_balancer_ip** | **char \*** | Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. | [optional]
|
||||
**load_balancer_source_ranges** | **list_t \*** | If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ | [optional]
|
||||
**ports** | [**list_t**](v1_service_port.md) \* | The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies | [optional]
|
||||
**publish_not_ready_addresses** | **int** | publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. | [optional]
|
||||
|
||||
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
||||
**admission_review_versions** | **list_t \*** | AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. |
|
||||
**client_config** | [**admissionregistration_v1_webhook_client_config_t**](admissionregistration_v1_webhook_client_config.md) \* | |
|
||||
**failure_policy** | **char \*** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. | [optional]
|
||||
**match_conditions** | [**list_t**](v1_match_condition.md) \* | MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped This is an alpha feature and managed by the AdmissionWebhookMatchConditions feature gate. | [optional]
|
||||
**match_conditions** | [**list_t**](v1_match_condition.md) \* | MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. | [optional]
|
||||
**match_policy** | **char \*** | matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" | [optional]
|
||||
**name** | **char \*** | The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. |
|
||||
**namespace_selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional]
|
||||
|
||||
@@ -3,8 +3,10 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**field_path** | **char \*** | fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']` | [optional]
|
||||
**message** | **char \*** | Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" | [optional]
|
||||
**message_expression** | **char \*** | MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\" | [optional]
|
||||
**reason** | **char \*** | reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid. | [optional]
|
||||
**rule** | **char \*** | Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"} If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"} The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as: - A schema with no type and x-kubernetes-preserve-unknown-fields set to true - An array where the items schema is of an \"unknown type\" - An object where the additionalProperties schema is of an \"unknown type\" Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"} - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"} - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"} Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**gmsa_credential_spec** | **char \*** | GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. | [optional]
|
||||
**gmsa_credential_spec_name** | **char \*** | GMSACredentialSpecName is the name of the GMSA credential spec to use. | [optional]
|
||||
**host_process** | **int** | HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. | [optional]
|
||||
**host_process** | **int** | HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. | [optional]
|
||||
**run_as_user_name** | **char \*** | The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -3,8 +3,10 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **char \*** | Name of the resource being referenced. | [optional]
|
||||
**_namespace** | **char \*** | Namespace of the referenced resource. Should be empty for the cluster-scoped resources | [optional]
|
||||
**name** | **char \*** | `name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. | [optional]
|
||||
**_namespace** | **char \*** | namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. | [optional]
|
||||
**parameter_not_found_action** | **char \*** | `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny` | [optional]
|
||||
**selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
||||
**api_server_id** | **char \*** | The ID of the reporting API server. | [optional]
|
||||
**decodable_versions** | **list_t \*** | The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. | [optional]
|
||||
**encoding_version** | **char \*** | The API server encodes the object to this version when persisting it in the backend (e.g., etcd). | [optional]
|
||||
**served_versions** | **list_t \*** | The API server can serve these versions. DecodableVersions must include all ServedVersions. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
||||
**match_constraints** | [**v1alpha1_match_resources_t**](v1alpha1_match_resources.md) \* | | [optional]
|
||||
**param_kind** | [**v1alpha1_param_kind_t**](v1alpha1_param_kind.md) \* | | [optional]
|
||||
**validations** | [**list_t**](v1alpha1_validation.md) \* | Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. | [optional]
|
||||
**variables** | [**list_t**](v1alpha1_variable.md) \* | Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**expression** | **char \*** | Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. |
|
||||
**expression** | **char \*** | Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. |
|
||||
**message** | **char \*** | Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". | [optional]
|
||||
**message_expression** | **char \*** | messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\" | [optional]
|
||||
**reason** | **char \*** | Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. | [optional]
|
||||
|
||||
11
kubernetes/docs/v1alpha1_variable.md
Normal file
11
kubernetes/docs/v1alpha1_variable.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1alpha1_variable_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**expression** | **char \*** | Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. |
|
||||
**name** | **char \*** | Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
kubernetes/docs/v1beta1_audit_annotation.md
Normal file
11
kubernetes/docs/v1beta1_audit_annotation.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1beta1_audit_annotation_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**key** | **char \*** | key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. |
|
||||
**value_expression** | **char \*** | valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
kubernetes/docs/v1beta1_expression_warning.md
Normal file
11
kubernetes/docs/v1beta1_expression_warning.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1beta1_expression_warning_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**field_ref** | **char \*** | The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" |
|
||||
**warning** | **char \*** | The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
kubernetes/docs/v1beta1_match_condition.md
Normal file
11
kubernetes/docs/v1beta1_match_condition.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1beta1_match_condition_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**expression** | **char \*** | Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. |
|
||||
**name** | **char \*** | Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
14
kubernetes/docs/v1beta1_match_resources.md
Normal file
14
kubernetes/docs/v1beta1_match_resources.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# v1beta1_match_resources_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**exclude_resource_rules** | [**list_t**](v1beta1_named_rule_with_operations.md) \* | ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional]
|
||||
**match_policy** | **char \*** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" | [optional]
|
||||
**namespace_selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional]
|
||||
**object_selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional]
|
||||
**resource_rules** | [**list_t**](v1beta1_named_rule_with_operations.md) \* | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
15
kubernetes/docs/v1beta1_named_rule_with_operations.md
Normal file
15
kubernetes/docs/v1beta1_named_rule_with_operations.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# v1beta1_named_rule_with_operations_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**api_groups** | **list_t \*** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional]
|
||||
**api_versions** | **list_t \*** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional]
|
||||
**operations** | **list_t \*** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional]
|
||||
**resource_names** | **list_t \*** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional]
|
||||
**resources** | **list_t \*** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional]
|
||||
**scope** | **char \*** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
kubernetes/docs/v1beta1_param_kind.md
Normal file
11
kubernetes/docs/v1beta1_param_kind.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1beta1_param_kind_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**api_version** | **char \*** | APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional]
|
||||
**kind** | **char \*** | Kind is the API kind the resources belong to. Required. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
13
kubernetes/docs/v1beta1_param_ref.md
Normal file
13
kubernetes/docs/v1beta1_param_ref.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# v1beta1_param_ref_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **char \*** | name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. | [optional]
|
||||
**_namespace** | **char \*** | namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. | [optional]
|
||||
**parameter_not_found_action** | **char \*** | `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required | [optional]
|
||||
**selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
10
kubernetes/docs/v1beta1_type_checking.md
Normal file
10
kubernetes/docs/v1beta1_type_checking.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# v1beta1_type_checking_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**expression_warnings** | [**list_t**](v1beta1_expression_warning.md) \* | The type checking warnings for each expression. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
14
kubernetes/docs/v1beta1_validating_admission_policy.md
Normal file
14
kubernetes/docs/v1beta1_validating_admission_policy.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# v1beta1_validating_admission_policy_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**api_version** | **char \*** | 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 | [optional]
|
||||
**kind** | **char \*** | 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 | [optional]
|
||||
**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional]
|
||||
**spec** | [**v1beta1_validating_admission_policy_spec_t**](v1beta1_validating_admission_policy_spec.md) \* | | [optional]
|
||||
**status** | [**v1beta1_validating_admission_policy_status_t**](v1beta1_validating_admission_policy_status.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# v1beta1_validating_admission_policy_binding_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**api_version** | **char \*** | 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 | [optional]
|
||||
**kind** | **char \*** | 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 | [optional]
|
||||
**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional]
|
||||
**spec** | [**v1beta1_validating_admission_policy_binding_spec_t**](v1beta1_validating_admission_policy_binding_spec.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# v1beta1_validating_admission_policy_binding_list_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**api_version** | **char \*** | 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 | [optional]
|
||||
**items** | [**list_t**](v1beta1_validating_admission_policy_binding.md) \* | List of PolicyBinding. | [optional]
|
||||
**kind** | **char \*** | 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 | [optional]
|
||||
**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# v1beta1_validating_admission_policy_binding_spec_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**match_resources** | [**v1beta1_match_resources_t**](v1beta1_match_resources.md) \* | | [optional]
|
||||
**param_ref** | [**v1beta1_param_ref_t**](v1beta1_param_ref.md) \* | | [optional]
|
||||
**policy_name** | **char \*** | PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | [optional]
|
||||
**validation_actions** | **list_t \*** | validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
13
kubernetes/docs/v1beta1_validating_admission_policy_list.md
Normal file
13
kubernetes/docs/v1beta1_validating_admission_policy_list.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# v1beta1_validating_admission_policy_list_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**api_version** | **char \*** | 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 | [optional]
|
||||
**items** | [**list_t**](v1beta1_validating_admission_policy.md) \* | List of ValidatingAdmissionPolicy. | [optional]
|
||||
**kind** | **char \*** | 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 | [optional]
|
||||
**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
16
kubernetes/docs/v1beta1_validating_admission_policy_spec.md
Normal file
16
kubernetes/docs/v1beta1_validating_admission_policy_spec.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# v1beta1_validating_admission_policy_spec_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**audit_annotations** | [**list_t**](v1beta1_audit_annotation.md) \* | auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. | [optional]
|
||||
**failure_policy** | **char \*** | failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. | [optional]
|
||||
**match_conditions** | [**list_t**](v1beta1_match_condition.md) \* | MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped | [optional]
|
||||
**match_constraints** | [**v1beta1_match_resources_t**](v1beta1_match_resources.md) \* | | [optional]
|
||||
**param_kind** | [**v1beta1_param_kind_t**](v1beta1_param_kind.md) \* | | [optional]
|
||||
**validations** | [**list_t**](v1beta1_validation.md) \* | Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. | [optional]
|
||||
**variables** | [**list_t**](v1beta1_variable.md) \* | Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1beta1_validating_admission_policy_status_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**conditions** | [**list_t**](v1_condition.md) \* | The conditions represent the latest available observations of a policy's current state. | [optional]
|
||||
**observed_generation** | **long** | The generation observed by the controller. | [optional]
|
||||
**type_checking** | [**v1beta1_type_checking_t**](v1beta1_type_checking.md) \* | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
13
kubernetes/docs/v1beta1_validation.md
Normal file
13
kubernetes/docs/v1beta1_validation.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# v1beta1_validation_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**expression** | **char \*** | Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. |
|
||||
**message** | **char \*** | Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". | [optional]
|
||||
**message_expression** | **char \*** | messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\" | [optional]
|
||||
**reason** | **char \*** | Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
kubernetes/docs/v1beta1_variable.md
Normal file
11
kubernetes/docs/v1beta1_variable.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1beta1_variable_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**expression** | **char \*** | Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. |
|
||||
**name** | **char \*** | Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1beta2_exempt_priority_level_configuration_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**lendable_percent** | **int** | `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) | [optional]
|
||||
**nominal_concurrency_shares** | **int** | `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**exempt** | [**v1beta2_exempt_priority_level_configuration_t**](v1beta2_exempt_priority_level_configuration.md) \* | | [optional]
|
||||
**limited** | [**v1beta2_limited_priority_level_configuration_t**](v1beta2_limited_priority_level_configuration.md) \* | | [optional]
|
||||
**type** | **char \*** | `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. |
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1beta3_exempt_priority_level_configuration_t
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**lendable_percent** | **int** | `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) | [optional]
|
||||
**nominal_concurrency_shares** | **int** | `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
||||
**borrowing_limit_percent** | **int** | `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. | [optional]
|
||||
**lendable_percent** | **int** | `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) | [optional]
|
||||
**limit_response** | [**v1beta3_limit_response_t**](v1beta3_limit_response.md) \* | | [optional]
|
||||
**nominal_concurrency_shares** | **int** | `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30. | [optional]
|
||||
**nominal_concurrency_shares** | **int** | `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**exempt** | [**v1beta3_exempt_priority_level_configuration_t**](v1beta3_exempt_priority_level_configuration.md) \* | | [optional]
|
||||
**limited** | [**v1beta3_limited_priority_level_configuration_t**](v1beta3_limited_priority_level_configuration.md) \* | | [optional]
|
||||
**type** | **char \*** | `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. |
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ v1_container_t *v1_container_create(
|
||||
v1_probe_t *readiness_probe,
|
||||
list_t *resize_policy,
|
||||
v1_resource_requirements_t *resources,
|
||||
char *restart_policy,
|
||||
v1_security_context_t *security_context,
|
||||
v1_probe_t *startup_probe,
|
||||
int _stdin,
|
||||
@@ -47,6 +48,7 @@ v1_container_t *v1_container_create(
|
||||
v1_container_local_var->readiness_probe = readiness_probe;
|
||||
v1_container_local_var->resize_policy = resize_policy;
|
||||
v1_container_local_var->resources = resources;
|
||||
v1_container_local_var->restart_policy = restart_policy;
|
||||
v1_container_local_var->security_context = security_context;
|
||||
v1_container_local_var->startup_probe = startup_probe;
|
||||
v1_container_local_var->_stdin = _stdin;
|
||||
@@ -137,6 +139,10 @@ void v1_container_free(v1_container_t *v1_container) {
|
||||
v1_resource_requirements_free(v1_container->resources);
|
||||
v1_container->resources = NULL;
|
||||
}
|
||||
if (v1_container->restart_policy) {
|
||||
free(v1_container->restart_policy);
|
||||
v1_container->restart_policy = NULL;
|
||||
}
|
||||
if (v1_container->security_context) {
|
||||
v1_security_context_free(v1_container->security_context);
|
||||
v1_container->security_context = NULL;
|
||||
@@ -368,6 +374,14 @@ cJSON *v1_container_convertToJSON(v1_container_t *v1_container) {
|
||||
}
|
||||
|
||||
|
||||
// v1_container->restart_policy
|
||||
if(v1_container->restart_policy) {
|
||||
if(cJSON_AddStringToObject(item, "restartPolicy", v1_container->restart_policy) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_container->security_context
|
||||
if(v1_container->security_context) {
|
||||
cJSON *security_context_local_JSON = v1_security_context_convertToJSON(v1_container->security_context);
|
||||
@@ -711,6 +725,15 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){
|
||||
resources_local_nonprim = v1_resource_requirements_parseFromJSON(resources); //nonprimitive
|
||||
}
|
||||
|
||||
// v1_container->restart_policy
|
||||
cJSON *restart_policy = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "restartPolicy");
|
||||
if (restart_policy) {
|
||||
if(!cJSON_IsString(restart_policy) && !cJSON_IsNull(restart_policy))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
// v1_container->security_context
|
||||
cJSON *security_context = cJSON_GetObjectItemCaseSensitive(v1_containerJSON, "securityContext");
|
||||
if (security_context) {
|
||||
@@ -834,6 +857,7 @@ v1_container_t *v1_container_parseFromJSON(cJSON *v1_containerJSON){
|
||||
readiness_probe ? readiness_probe_local_nonprim : NULL,
|
||||
resize_policy ? resize_policyList : NULL,
|
||||
resources ? resources_local_nonprim : NULL,
|
||||
restart_policy && !cJSON_IsNull(restart_policy) ? strdup(restart_policy->valuestring) : NULL,
|
||||
security_context ? security_context_local_nonprim : NULL,
|
||||
startup_probe ? startup_probe_local_nonprim : NULL,
|
||||
_stdin ? _stdin->valueint : 0,
|
||||
|
||||
@@ -42,6 +42,7 @@ typedef struct v1_container_t {
|
||||
struct v1_probe_t *readiness_probe; //model
|
||||
list_t *resize_policy; //nonprimitive container
|
||||
struct v1_resource_requirements_t *resources; //model
|
||||
char *restart_policy; // string
|
||||
struct v1_security_context_t *security_context; //model
|
||||
struct v1_probe_t *startup_probe; //model
|
||||
int _stdin; //boolean
|
||||
@@ -69,6 +70,7 @@ v1_container_t *v1_container_create(
|
||||
v1_probe_t *readiness_probe,
|
||||
list_t *resize_policy,
|
||||
v1_resource_requirements_t *resources,
|
||||
char *restart_policy,
|
||||
v1_security_context_t *security_context,
|
||||
v1_probe_t *startup_probe,
|
||||
int _stdin,
|
||||
|
||||
@@ -19,6 +19,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_create(
|
||||
v1_probe_t *readiness_probe,
|
||||
list_t *resize_policy,
|
||||
v1_resource_requirements_t *resources,
|
||||
char *restart_policy,
|
||||
v1_security_context_t *security_context,
|
||||
v1_probe_t *startup_probe,
|
||||
int _stdin,
|
||||
@@ -48,6 +49,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_create(
|
||||
v1_ephemeral_container_local_var->readiness_probe = readiness_probe;
|
||||
v1_ephemeral_container_local_var->resize_policy = resize_policy;
|
||||
v1_ephemeral_container_local_var->resources = resources;
|
||||
v1_ephemeral_container_local_var->restart_policy = restart_policy;
|
||||
v1_ephemeral_container_local_var->security_context = security_context;
|
||||
v1_ephemeral_container_local_var->startup_probe = startup_probe;
|
||||
v1_ephemeral_container_local_var->_stdin = _stdin;
|
||||
@@ -139,6 +141,10 @@ void v1_ephemeral_container_free(v1_ephemeral_container_t *v1_ephemeral_containe
|
||||
v1_resource_requirements_free(v1_ephemeral_container->resources);
|
||||
v1_ephemeral_container->resources = NULL;
|
||||
}
|
||||
if (v1_ephemeral_container->restart_policy) {
|
||||
free(v1_ephemeral_container->restart_policy);
|
||||
v1_ephemeral_container->restart_policy = NULL;
|
||||
}
|
||||
if (v1_ephemeral_container->security_context) {
|
||||
v1_security_context_free(v1_ephemeral_container->security_context);
|
||||
v1_ephemeral_container->security_context = NULL;
|
||||
@@ -374,6 +380,14 @@ cJSON *v1_ephemeral_container_convertToJSON(v1_ephemeral_container_t *v1_ephemer
|
||||
}
|
||||
|
||||
|
||||
// v1_ephemeral_container->restart_policy
|
||||
if(v1_ephemeral_container->restart_policy) {
|
||||
if(cJSON_AddStringToObject(item, "restartPolicy", v1_ephemeral_container->restart_policy) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_ephemeral_container->security_context
|
||||
if(v1_ephemeral_container->security_context) {
|
||||
cJSON *security_context_local_JSON = v1_security_context_convertToJSON(v1_ephemeral_container->security_context);
|
||||
@@ -725,6 +739,15 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer
|
||||
resources_local_nonprim = v1_resource_requirements_parseFromJSON(resources); //nonprimitive
|
||||
}
|
||||
|
||||
// v1_ephemeral_container->restart_policy
|
||||
cJSON *restart_policy = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "restartPolicy");
|
||||
if (restart_policy) {
|
||||
if(!cJSON_IsString(restart_policy) && !cJSON_IsNull(restart_policy))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
// v1_ephemeral_container->security_context
|
||||
cJSON *security_context = cJSON_GetObjectItemCaseSensitive(v1_ephemeral_containerJSON, "securityContext");
|
||||
if (security_context) {
|
||||
@@ -857,6 +880,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_parseFromJSON(cJSON *v1_ephemer
|
||||
readiness_probe ? readiness_probe_local_nonprim : NULL,
|
||||
resize_policy ? resize_policyList : NULL,
|
||||
resources ? resources_local_nonprim : NULL,
|
||||
restart_policy && !cJSON_IsNull(restart_policy) ? strdup(restart_policy->valuestring) : NULL,
|
||||
security_context ? security_context_local_nonprim : NULL,
|
||||
startup_probe ? startup_probe_local_nonprim : NULL,
|
||||
_stdin ? _stdin->valueint : 0,
|
||||
|
||||
@@ -42,6 +42,7 @@ typedef struct v1_ephemeral_container_t {
|
||||
struct v1_probe_t *readiness_probe; //model
|
||||
list_t *resize_policy; //nonprimitive container
|
||||
struct v1_resource_requirements_t *resources; //model
|
||||
char *restart_policy; // string
|
||||
struct v1_security_context_t *security_context; //model
|
||||
struct v1_probe_t *startup_probe; //model
|
||||
int _stdin; //boolean
|
||||
@@ -70,6 +71,7 @@ v1_ephemeral_container_t *v1_ephemeral_container_create(
|
||||
v1_probe_t *readiness_probe,
|
||||
list_t *resize_policy,
|
||||
v1_resource_requirements_t *resources,
|
||||
char *restart_policy,
|
||||
v1_security_context_t *security_context,
|
||||
v1_probe_t *startup_probe,
|
||||
int _stdin,
|
||||
|
||||
73
kubernetes/model/v1_host_ip.c
Normal file
73
kubernetes/model/v1_host_ip.c
Normal file
@@ -0,0 +1,73 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "v1_host_ip.h"
|
||||
|
||||
|
||||
|
||||
v1_host_ip_t *v1_host_ip_create(
|
||||
char *ip
|
||||
) {
|
||||
v1_host_ip_t *v1_host_ip_local_var = malloc(sizeof(v1_host_ip_t));
|
||||
if (!v1_host_ip_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
v1_host_ip_local_var->ip = ip;
|
||||
|
||||
return v1_host_ip_local_var;
|
||||
}
|
||||
|
||||
|
||||
void v1_host_ip_free(v1_host_ip_t *v1_host_ip) {
|
||||
if(NULL == v1_host_ip){
|
||||
return ;
|
||||
}
|
||||
listEntry_t *listEntry;
|
||||
if (v1_host_ip->ip) {
|
||||
free(v1_host_ip->ip);
|
||||
v1_host_ip->ip = NULL;
|
||||
}
|
||||
free(v1_host_ip);
|
||||
}
|
||||
|
||||
cJSON *v1_host_ip_convertToJSON(v1_host_ip_t *v1_host_ip) {
|
||||
cJSON *item = cJSON_CreateObject();
|
||||
|
||||
// v1_host_ip->ip
|
||||
if(v1_host_ip->ip) {
|
||||
if(cJSON_AddStringToObject(item, "ip", v1_host_ip->ip) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
return item;
|
||||
fail:
|
||||
if (item) {
|
||||
cJSON_Delete(item);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v1_host_ip_t *v1_host_ip_parseFromJSON(cJSON *v1_host_ipJSON){
|
||||
|
||||
v1_host_ip_t *v1_host_ip_local_var = NULL;
|
||||
|
||||
// v1_host_ip->ip
|
||||
cJSON *ip = cJSON_GetObjectItemCaseSensitive(v1_host_ipJSON, "ip");
|
||||
if (ip) {
|
||||
if(!cJSON_IsString(ip) && !cJSON_IsNull(ip))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
v1_host_ip_local_var = v1_host_ip_create (
|
||||
ip && !cJSON_IsNull(ip) ? strdup(ip->valuestring) : NULL
|
||||
);
|
||||
|
||||
return v1_host_ip_local_var;
|
||||
end:
|
||||
return NULL;
|
||||
|
||||
}
|
||||
37
kubernetes/model/v1_host_ip.h
Normal file
37
kubernetes/model/v1_host_ip.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* v1_host_ip.h
|
||||
*
|
||||
* HostIP represents a single IP address allocated to the host.
|
||||
*/
|
||||
|
||||
#ifndef _v1_host_ip_H_
|
||||
#define _v1_host_ip_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
|
||||
typedef struct v1_host_ip_t v1_host_ip_t;
|
||||
|
||||
|
||||
|
||||
|
||||
typedef struct v1_host_ip_t {
|
||||
char *ip; // string
|
||||
|
||||
} v1_host_ip_t;
|
||||
|
||||
v1_host_ip_t *v1_host_ip_create(
|
||||
char *ip
|
||||
);
|
||||
|
||||
void v1_host_ip_free(v1_host_ip_t *v1_host_ip);
|
||||
|
||||
v1_host_ip_t *v1_host_ip_parseFromJSON(cJSON *v1_host_ipJSON);
|
||||
|
||||
cJSON *v1_host_ip_convertToJSON(v1_host_ip_t *v1_host_ip);
|
||||
|
||||
#endif /* _v1_host_ip_H_ */
|
||||
|
||||
@@ -8,11 +8,14 @@
|
||||
v1_job_spec_t *v1_job_spec_create(
|
||||
long active_deadline_seconds,
|
||||
int backoff_limit,
|
||||
int backoff_limit_per_index,
|
||||
char *completion_mode,
|
||||
int completions,
|
||||
int manual_selector,
|
||||
int max_failed_indexes,
|
||||
int parallelism,
|
||||
v1_pod_failure_policy_t *pod_failure_policy,
|
||||
char *pod_replacement_policy,
|
||||
v1_label_selector_t *selector,
|
||||
int suspend,
|
||||
v1_pod_template_spec_t *_template,
|
||||
@@ -24,11 +27,14 @@ v1_job_spec_t *v1_job_spec_create(
|
||||
}
|
||||
v1_job_spec_local_var->active_deadline_seconds = active_deadline_seconds;
|
||||
v1_job_spec_local_var->backoff_limit = backoff_limit;
|
||||
v1_job_spec_local_var->backoff_limit_per_index = backoff_limit_per_index;
|
||||
v1_job_spec_local_var->completion_mode = completion_mode;
|
||||
v1_job_spec_local_var->completions = completions;
|
||||
v1_job_spec_local_var->manual_selector = manual_selector;
|
||||
v1_job_spec_local_var->max_failed_indexes = max_failed_indexes;
|
||||
v1_job_spec_local_var->parallelism = parallelism;
|
||||
v1_job_spec_local_var->pod_failure_policy = pod_failure_policy;
|
||||
v1_job_spec_local_var->pod_replacement_policy = pod_replacement_policy;
|
||||
v1_job_spec_local_var->selector = selector;
|
||||
v1_job_spec_local_var->suspend = suspend;
|
||||
v1_job_spec_local_var->_template = _template;
|
||||
@@ -51,6 +57,10 @@ void v1_job_spec_free(v1_job_spec_t *v1_job_spec) {
|
||||
v1_pod_failure_policy_free(v1_job_spec->pod_failure_policy);
|
||||
v1_job_spec->pod_failure_policy = NULL;
|
||||
}
|
||||
if (v1_job_spec->pod_replacement_policy) {
|
||||
free(v1_job_spec->pod_replacement_policy);
|
||||
v1_job_spec->pod_replacement_policy = NULL;
|
||||
}
|
||||
if (v1_job_spec->selector) {
|
||||
v1_label_selector_free(v1_job_spec->selector);
|
||||
v1_job_spec->selector = NULL;
|
||||
@@ -81,6 +91,14 @@ cJSON *v1_job_spec_convertToJSON(v1_job_spec_t *v1_job_spec) {
|
||||
}
|
||||
|
||||
|
||||
// v1_job_spec->backoff_limit_per_index
|
||||
if(v1_job_spec->backoff_limit_per_index) {
|
||||
if(cJSON_AddNumberToObject(item, "backoffLimitPerIndex", v1_job_spec->backoff_limit_per_index) == NULL) {
|
||||
goto fail; //Numeric
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_job_spec->completion_mode
|
||||
if(v1_job_spec->completion_mode) {
|
||||
if(cJSON_AddStringToObject(item, "completionMode", v1_job_spec->completion_mode) == NULL) {
|
||||
@@ -105,6 +123,14 @@ cJSON *v1_job_spec_convertToJSON(v1_job_spec_t *v1_job_spec) {
|
||||
}
|
||||
|
||||
|
||||
// v1_job_spec->max_failed_indexes
|
||||
if(v1_job_spec->max_failed_indexes) {
|
||||
if(cJSON_AddNumberToObject(item, "maxFailedIndexes", v1_job_spec->max_failed_indexes) == NULL) {
|
||||
goto fail; //Numeric
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_job_spec->parallelism
|
||||
if(v1_job_spec->parallelism) {
|
||||
if(cJSON_AddNumberToObject(item, "parallelism", v1_job_spec->parallelism) == NULL) {
|
||||
@@ -126,6 +152,14 @@ cJSON *v1_job_spec_convertToJSON(v1_job_spec_t *v1_job_spec) {
|
||||
}
|
||||
|
||||
|
||||
// v1_job_spec->pod_replacement_policy
|
||||
if(v1_job_spec->pod_replacement_policy) {
|
||||
if(cJSON_AddStringToObject(item, "podReplacementPolicy", v1_job_spec->pod_replacement_policy) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_job_spec->selector
|
||||
if(v1_job_spec->selector) {
|
||||
cJSON *selector_local_JSON = v1_label_selector_convertToJSON(v1_job_spec->selector);
|
||||
@@ -207,6 +241,15 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){
|
||||
}
|
||||
}
|
||||
|
||||
// v1_job_spec->backoff_limit_per_index
|
||||
cJSON *backoff_limit_per_index = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "backoffLimitPerIndex");
|
||||
if (backoff_limit_per_index) {
|
||||
if(!cJSON_IsNumber(backoff_limit_per_index))
|
||||
{
|
||||
goto end; //Numeric
|
||||
}
|
||||
}
|
||||
|
||||
// v1_job_spec->completion_mode
|
||||
cJSON *completion_mode = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "completionMode");
|
||||
if (completion_mode) {
|
||||
@@ -234,6 +277,15 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){
|
||||
}
|
||||
}
|
||||
|
||||
// v1_job_spec->max_failed_indexes
|
||||
cJSON *max_failed_indexes = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "maxFailedIndexes");
|
||||
if (max_failed_indexes) {
|
||||
if(!cJSON_IsNumber(max_failed_indexes))
|
||||
{
|
||||
goto end; //Numeric
|
||||
}
|
||||
}
|
||||
|
||||
// v1_job_spec->parallelism
|
||||
cJSON *parallelism = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "parallelism");
|
||||
if (parallelism) {
|
||||
@@ -249,6 +301,15 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){
|
||||
pod_failure_policy_local_nonprim = v1_pod_failure_policy_parseFromJSON(pod_failure_policy); //nonprimitive
|
||||
}
|
||||
|
||||
// v1_job_spec->pod_replacement_policy
|
||||
cJSON *pod_replacement_policy = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "podReplacementPolicy");
|
||||
if (pod_replacement_policy) {
|
||||
if(!cJSON_IsString(pod_replacement_policy) && !cJSON_IsNull(pod_replacement_policy))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
// v1_job_spec->selector
|
||||
cJSON *selector = cJSON_GetObjectItemCaseSensitive(v1_job_specJSON, "selector");
|
||||
if (selector) {
|
||||
@@ -286,11 +347,14 @@ v1_job_spec_t *v1_job_spec_parseFromJSON(cJSON *v1_job_specJSON){
|
||||
v1_job_spec_local_var = v1_job_spec_create (
|
||||
active_deadline_seconds ? active_deadline_seconds->valuedouble : 0,
|
||||
backoff_limit ? backoff_limit->valuedouble : 0,
|
||||
backoff_limit_per_index ? backoff_limit_per_index->valuedouble : 0,
|
||||
completion_mode && !cJSON_IsNull(completion_mode) ? strdup(completion_mode->valuestring) : NULL,
|
||||
completions ? completions->valuedouble : 0,
|
||||
manual_selector ? manual_selector->valueint : 0,
|
||||
max_failed_indexes ? max_failed_indexes->valuedouble : 0,
|
||||
parallelism ? parallelism->valuedouble : 0,
|
||||
pod_failure_policy ? pod_failure_policy_local_nonprim : NULL,
|
||||
pod_replacement_policy && !cJSON_IsNull(pod_replacement_policy) ? strdup(pod_replacement_policy->valuestring) : NULL,
|
||||
selector ? selector_local_nonprim : NULL,
|
||||
suspend ? suspend->valueint : 0,
|
||||
_template_local_nonprim,
|
||||
|
||||
@@ -24,11 +24,14 @@ typedef struct v1_job_spec_t v1_job_spec_t;
|
||||
typedef struct v1_job_spec_t {
|
||||
long active_deadline_seconds; //numeric
|
||||
int backoff_limit; //numeric
|
||||
int backoff_limit_per_index; //numeric
|
||||
char *completion_mode; // string
|
||||
int completions; //numeric
|
||||
int manual_selector; //boolean
|
||||
int max_failed_indexes; //numeric
|
||||
int parallelism; //numeric
|
||||
struct v1_pod_failure_policy_t *pod_failure_policy; //model
|
||||
char *pod_replacement_policy; // string
|
||||
struct v1_label_selector_t *selector; //model
|
||||
int suspend; //boolean
|
||||
struct v1_pod_template_spec_t *_template; //model
|
||||
@@ -39,11 +42,14 @@ typedef struct v1_job_spec_t {
|
||||
v1_job_spec_t *v1_job_spec_create(
|
||||
long active_deadline_seconds,
|
||||
int backoff_limit,
|
||||
int backoff_limit_per_index,
|
||||
char *completion_mode,
|
||||
int completions,
|
||||
int manual_selector,
|
||||
int max_failed_indexes,
|
||||
int parallelism,
|
||||
v1_pod_failure_policy_t *pod_failure_policy,
|
||||
char *pod_replacement_policy,
|
||||
v1_label_selector_t *selector,
|
||||
int suspend,
|
||||
v1_pod_template_spec_t *_template,
|
||||
|
||||
@@ -11,9 +11,11 @@ v1_job_status_t *v1_job_status_create(
|
||||
char *completion_time,
|
||||
list_t *conditions,
|
||||
int failed,
|
||||
char *failed_indexes,
|
||||
int ready,
|
||||
char *start_time,
|
||||
int succeeded,
|
||||
int terminating,
|
||||
v1_uncounted_terminated_pods_t *uncounted_terminated_pods
|
||||
) {
|
||||
v1_job_status_t *v1_job_status_local_var = malloc(sizeof(v1_job_status_t));
|
||||
@@ -25,9 +27,11 @@ v1_job_status_t *v1_job_status_create(
|
||||
v1_job_status_local_var->completion_time = completion_time;
|
||||
v1_job_status_local_var->conditions = conditions;
|
||||
v1_job_status_local_var->failed = failed;
|
||||
v1_job_status_local_var->failed_indexes = failed_indexes;
|
||||
v1_job_status_local_var->ready = ready;
|
||||
v1_job_status_local_var->start_time = start_time;
|
||||
v1_job_status_local_var->succeeded = succeeded;
|
||||
v1_job_status_local_var->terminating = terminating;
|
||||
v1_job_status_local_var->uncounted_terminated_pods = uncounted_terminated_pods;
|
||||
|
||||
return v1_job_status_local_var;
|
||||
@@ -54,6 +58,10 @@ void v1_job_status_free(v1_job_status_t *v1_job_status) {
|
||||
list_freeList(v1_job_status->conditions);
|
||||
v1_job_status->conditions = NULL;
|
||||
}
|
||||
if (v1_job_status->failed_indexes) {
|
||||
free(v1_job_status->failed_indexes);
|
||||
v1_job_status->failed_indexes = NULL;
|
||||
}
|
||||
if (v1_job_status->start_time) {
|
||||
free(v1_job_status->start_time);
|
||||
v1_job_status->start_time = NULL;
|
||||
@@ -120,6 +128,14 @@ cJSON *v1_job_status_convertToJSON(v1_job_status_t *v1_job_status) {
|
||||
}
|
||||
|
||||
|
||||
// v1_job_status->failed_indexes
|
||||
if(v1_job_status->failed_indexes) {
|
||||
if(cJSON_AddStringToObject(item, "failedIndexes", v1_job_status->failed_indexes) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_job_status->ready
|
||||
if(v1_job_status->ready) {
|
||||
if(cJSON_AddNumberToObject(item, "ready", v1_job_status->ready) == NULL) {
|
||||
@@ -144,6 +160,14 @@ cJSON *v1_job_status_convertToJSON(v1_job_status_t *v1_job_status) {
|
||||
}
|
||||
|
||||
|
||||
// v1_job_status->terminating
|
||||
if(v1_job_status->terminating) {
|
||||
if(cJSON_AddNumberToObject(item, "terminating", v1_job_status->terminating) == NULL) {
|
||||
goto fail; //Numeric
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_job_status->uncounted_terminated_pods
|
||||
if(v1_job_status->uncounted_terminated_pods) {
|
||||
cJSON *uncounted_terminated_pods_local_JSON = v1_uncounted_terminated_pods_convertToJSON(v1_job_status->uncounted_terminated_pods);
|
||||
@@ -231,6 +255,15 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){
|
||||
}
|
||||
}
|
||||
|
||||
// v1_job_status->failed_indexes
|
||||
cJSON *failed_indexes = cJSON_GetObjectItemCaseSensitive(v1_job_statusJSON, "failedIndexes");
|
||||
if (failed_indexes) {
|
||||
if(!cJSON_IsString(failed_indexes) && !cJSON_IsNull(failed_indexes))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
// v1_job_status->ready
|
||||
cJSON *ready = cJSON_GetObjectItemCaseSensitive(v1_job_statusJSON, "ready");
|
||||
if (ready) {
|
||||
@@ -258,6 +291,15 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){
|
||||
}
|
||||
}
|
||||
|
||||
// v1_job_status->terminating
|
||||
cJSON *terminating = cJSON_GetObjectItemCaseSensitive(v1_job_statusJSON, "terminating");
|
||||
if (terminating) {
|
||||
if(!cJSON_IsNumber(terminating))
|
||||
{
|
||||
goto end; //Numeric
|
||||
}
|
||||
}
|
||||
|
||||
// v1_job_status->uncounted_terminated_pods
|
||||
cJSON *uncounted_terminated_pods = cJSON_GetObjectItemCaseSensitive(v1_job_statusJSON, "uncountedTerminatedPods");
|
||||
if (uncounted_terminated_pods) {
|
||||
@@ -271,9 +313,11 @@ v1_job_status_t *v1_job_status_parseFromJSON(cJSON *v1_job_statusJSON){
|
||||
completion_time && !cJSON_IsNull(completion_time) ? strdup(completion_time->valuestring) : NULL,
|
||||
conditions ? conditionsList : NULL,
|
||||
failed ? failed->valuedouble : 0,
|
||||
failed_indexes && !cJSON_IsNull(failed_indexes) ? strdup(failed_indexes->valuestring) : NULL,
|
||||
ready ? ready->valuedouble : 0,
|
||||
start_time && !cJSON_IsNull(start_time) ? strdup(start_time->valuestring) : NULL,
|
||||
succeeded ? succeeded->valuedouble : 0,
|
||||
terminating ? terminating->valuedouble : 0,
|
||||
uncounted_terminated_pods ? uncounted_terminated_pods_local_nonprim : NULL
|
||||
);
|
||||
|
||||
|
||||
@@ -26,9 +26,11 @@ typedef struct v1_job_status_t {
|
||||
char *completion_time; //date time
|
||||
list_t *conditions; //nonprimitive container
|
||||
int failed; //numeric
|
||||
char *failed_indexes; // string
|
||||
int ready; //numeric
|
||||
char *start_time; //date time
|
||||
int succeeded; //numeric
|
||||
int terminating; //numeric
|
||||
struct v1_uncounted_terminated_pods_t *uncounted_terminated_pods; //model
|
||||
|
||||
} v1_job_status_t;
|
||||
@@ -39,9 +41,11 @@ v1_job_status_t *v1_job_status_create(
|
||||
char *completion_time,
|
||||
list_t *conditions,
|
||||
int failed,
|
||||
char *failed_indexes,
|
||||
int ready,
|
||||
char *start_time,
|
||||
int succeeded,
|
||||
int terminating,
|
||||
v1_uncounted_terminated_pods_t *uncounted_terminated_pods
|
||||
);
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@ v1_network_policy_t *v1_network_policy_create(
|
||||
char *api_version,
|
||||
char *kind,
|
||||
v1_object_meta_t *metadata,
|
||||
v1_network_policy_spec_t *spec,
|
||||
v1_network_policy_status_t *status
|
||||
v1_network_policy_spec_t *spec
|
||||
) {
|
||||
v1_network_policy_t *v1_network_policy_local_var = malloc(sizeof(v1_network_policy_t));
|
||||
if (!v1_network_policy_local_var) {
|
||||
@@ -20,7 +19,6 @@ v1_network_policy_t *v1_network_policy_create(
|
||||
v1_network_policy_local_var->kind = kind;
|
||||
v1_network_policy_local_var->metadata = metadata;
|
||||
v1_network_policy_local_var->spec = spec;
|
||||
v1_network_policy_local_var->status = status;
|
||||
|
||||
return v1_network_policy_local_var;
|
||||
}
|
||||
@@ -47,10 +45,6 @@ void v1_network_policy_free(v1_network_policy_t *v1_network_policy) {
|
||||
v1_network_policy_spec_free(v1_network_policy->spec);
|
||||
v1_network_policy->spec = NULL;
|
||||
}
|
||||
if (v1_network_policy->status) {
|
||||
v1_network_policy_status_free(v1_network_policy->status);
|
||||
v1_network_policy->status = NULL;
|
||||
}
|
||||
free(v1_network_policy);
|
||||
}
|
||||
|
||||
@@ -98,19 +92,6 @@ cJSON *v1_network_policy_convertToJSON(v1_network_policy_t *v1_network_policy) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_network_policy->status
|
||||
if(v1_network_policy->status) {
|
||||
cJSON *status_local_JSON = v1_network_policy_status_convertToJSON(v1_network_policy->status);
|
||||
if(status_local_JSON == NULL) {
|
||||
goto fail; //model
|
||||
}
|
||||
cJSON_AddItemToObject(item, "status", status_local_JSON);
|
||||
if(item->child == NULL) {
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
return item;
|
||||
fail:
|
||||
if (item) {
|
||||
@@ -129,9 +110,6 @@ v1_network_policy_t *v1_network_policy_parseFromJSON(cJSON *v1_network_policyJSO
|
||||
// define the local variable for v1_network_policy->spec
|
||||
v1_network_policy_spec_t *spec_local_nonprim = NULL;
|
||||
|
||||
// define the local variable for v1_network_policy->status
|
||||
v1_network_policy_status_t *status_local_nonprim = NULL;
|
||||
|
||||
// v1_network_policy->api_version
|
||||
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_network_policyJSON, "apiVersion");
|
||||
if (api_version) {
|
||||
@@ -162,19 +140,12 @@ v1_network_policy_t *v1_network_policy_parseFromJSON(cJSON *v1_network_policyJSO
|
||||
spec_local_nonprim = v1_network_policy_spec_parseFromJSON(spec); //nonprimitive
|
||||
}
|
||||
|
||||
// v1_network_policy->status
|
||||
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_network_policyJSON, "status");
|
||||
if (status) {
|
||||
status_local_nonprim = v1_network_policy_status_parseFromJSON(status); //nonprimitive
|
||||
}
|
||||
|
||||
|
||||
v1_network_policy_local_var = v1_network_policy_create (
|
||||
api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL,
|
||||
kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL,
|
||||
metadata ? metadata_local_nonprim : NULL,
|
||||
spec ? spec_local_nonprim : NULL,
|
||||
status ? status_local_nonprim : NULL
|
||||
spec ? spec_local_nonprim : NULL
|
||||
);
|
||||
|
||||
return v1_network_policy_local_var;
|
||||
@@ -187,10 +158,6 @@ end:
|
||||
v1_network_policy_spec_free(spec_local_nonprim);
|
||||
spec_local_nonprim = NULL;
|
||||
}
|
||||
if (status_local_nonprim) {
|
||||
v1_network_policy_status_free(status_local_nonprim);
|
||||
status_local_nonprim = NULL;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
typedef struct v1_network_policy_t v1_network_policy_t;
|
||||
|
||||
#include "v1_network_policy_spec.h"
|
||||
#include "v1_network_policy_status.h"
|
||||
#include "v1_object_meta.h"
|
||||
|
||||
|
||||
@@ -26,7 +25,6 @@ typedef struct v1_network_policy_t {
|
||||
char *kind; // string
|
||||
struct v1_object_meta_t *metadata; //model
|
||||
struct v1_network_policy_spec_t *spec; //model
|
||||
struct v1_network_policy_status_t *status; //model
|
||||
|
||||
} v1_network_policy_t;
|
||||
|
||||
@@ -34,8 +32,7 @@ v1_network_policy_t *v1_network_policy_create(
|
||||
char *api_version,
|
||||
char *kind,
|
||||
v1_object_meta_t *metadata,
|
||||
v1_network_policy_spec_t *spec,
|
||||
v1_network_policy_status_t *status
|
||||
v1_network_policy_spec_t *spec
|
||||
);
|
||||
|
||||
void v1_network_policy_free(v1_network_policy_t *v1_network_policy);
|
||||
|
||||
@@ -1,112 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "v1_network_policy_status.h"
|
||||
|
||||
|
||||
|
||||
v1_network_policy_status_t *v1_network_policy_status_create(
|
||||
list_t *conditions
|
||||
) {
|
||||
v1_network_policy_status_t *v1_network_policy_status_local_var = malloc(sizeof(v1_network_policy_status_t));
|
||||
if (!v1_network_policy_status_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
v1_network_policy_status_local_var->conditions = conditions;
|
||||
|
||||
return v1_network_policy_status_local_var;
|
||||
}
|
||||
|
||||
|
||||
void v1_network_policy_status_free(v1_network_policy_status_t *v1_network_policy_status) {
|
||||
if(NULL == v1_network_policy_status){
|
||||
return ;
|
||||
}
|
||||
listEntry_t *listEntry;
|
||||
if (v1_network_policy_status->conditions) {
|
||||
list_ForEach(listEntry, v1_network_policy_status->conditions) {
|
||||
v1_condition_free(listEntry->data);
|
||||
}
|
||||
list_freeList(v1_network_policy_status->conditions);
|
||||
v1_network_policy_status->conditions = NULL;
|
||||
}
|
||||
free(v1_network_policy_status);
|
||||
}
|
||||
|
||||
cJSON *v1_network_policy_status_convertToJSON(v1_network_policy_status_t *v1_network_policy_status) {
|
||||
cJSON *item = cJSON_CreateObject();
|
||||
|
||||
// v1_network_policy_status->conditions
|
||||
if(v1_network_policy_status->conditions) {
|
||||
cJSON *conditions = cJSON_AddArrayToObject(item, "conditions");
|
||||
if(conditions == NULL) {
|
||||
goto fail; //nonprimitive container
|
||||
}
|
||||
|
||||
listEntry_t *conditionsListEntry;
|
||||
if (v1_network_policy_status->conditions) {
|
||||
list_ForEach(conditionsListEntry, v1_network_policy_status->conditions) {
|
||||
cJSON *itemLocal = v1_condition_convertToJSON(conditionsListEntry->data);
|
||||
if(itemLocal == NULL) {
|
||||
goto fail;
|
||||
}
|
||||
cJSON_AddItemToArray(conditions, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return item;
|
||||
fail:
|
||||
if (item) {
|
||||
cJSON_Delete(item);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v1_network_policy_status_t *v1_network_policy_status_parseFromJSON(cJSON *v1_network_policy_statusJSON){
|
||||
|
||||
v1_network_policy_status_t *v1_network_policy_status_local_var = NULL;
|
||||
|
||||
// define the local list for v1_network_policy_status->conditions
|
||||
list_t *conditionsList = NULL;
|
||||
|
||||
// v1_network_policy_status->conditions
|
||||
cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1_network_policy_statusJSON, "conditions");
|
||||
if (conditions) {
|
||||
cJSON *conditions_local_nonprimitive = NULL;
|
||||
if(!cJSON_IsArray(conditions)){
|
||||
goto end; //nonprimitive container
|
||||
}
|
||||
|
||||
conditionsList = list_createList();
|
||||
|
||||
cJSON_ArrayForEach(conditions_local_nonprimitive,conditions )
|
||||
{
|
||||
if(!cJSON_IsObject(conditions_local_nonprimitive)){
|
||||
goto end;
|
||||
}
|
||||
v1_condition_t *conditionsItem = v1_condition_parseFromJSON(conditions_local_nonprimitive);
|
||||
|
||||
list_addElement(conditionsList, conditionsItem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
v1_network_policy_status_local_var = v1_network_policy_status_create (
|
||||
conditions ? conditionsList : NULL
|
||||
);
|
||||
|
||||
return v1_network_policy_status_local_var;
|
||||
end:
|
||||
if (conditionsList) {
|
||||
listEntry_t *listEntry = NULL;
|
||||
list_ForEach(listEntry, conditionsList) {
|
||||
v1_condition_free(listEntry->data);
|
||||
listEntry->data = NULL;
|
||||
}
|
||||
list_freeList(conditionsList);
|
||||
conditionsList = NULL;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
/*
|
||||
* v1_network_policy_status.h
|
||||
*
|
||||
* NetworkPolicyStatus describes the current state of the NetworkPolicy.
|
||||
*/
|
||||
|
||||
#ifndef _v1_network_policy_status_H_
|
||||
#define _v1_network_policy_status_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
|
||||
typedef struct v1_network_policy_status_t v1_network_policy_status_t;
|
||||
|
||||
#include "v1_condition.h"
|
||||
|
||||
|
||||
|
||||
typedef struct v1_network_policy_status_t {
|
||||
list_t *conditions; //nonprimitive container
|
||||
|
||||
} v1_network_policy_status_t;
|
||||
|
||||
v1_network_policy_status_t *v1_network_policy_status_create(
|
||||
list_t *conditions
|
||||
);
|
||||
|
||||
void v1_network_policy_status_free(v1_network_policy_status_t *v1_network_policy_status);
|
||||
|
||||
v1_network_policy_status_t *v1_network_policy_status_parseFromJSON(cJSON *v1_network_policy_statusJSON);
|
||||
|
||||
cJSON *v1_network_policy_status_convertToJSON(v1_network_policy_status_t *v1_network_policy_status);
|
||||
|
||||
#endif /* _v1_network_policy_status_H_ */
|
||||
|
||||
@@ -7,22 +7,22 @@
|
||||
|
||||
v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status_create(
|
||||
list_t *access_modes,
|
||||
list_t* allocated_resource_statuses,
|
||||
list_t* allocated_resources,
|
||||
list_t* capacity,
|
||||
list_t *conditions,
|
||||
char *phase,
|
||||
char *resize_status
|
||||
char *phase
|
||||
) {
|
||||
v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status_local_var = malloc(sizeof(v1_persistent_volume_claim_status_t));
|
||||
if (!v1_persistent_volume_claim_status_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
v1_persistent_volume_claim_status_local_var->access_modes = access_modes;
|
||||
v1_persistent_volume_claim_status_local_var->allocated_resource_statuses = allocated_resource_statuses;
|
||||
v1_persistent_volume_claim_status_local_var->allocated_resources = allocated_resources;
|
||||
v1_persistent_volume_claim_status_local_var->capacity = capacity;
|
||||
v1_persistent_volume_claim_status_local_var->conditions = conditions;
|
||||
v1_persistent_volume_claim_status_local_var->phase = phase;
|
||||
v1_persistent_volume_claim_status_local_var->resize_status = resize_status;
|
||||
|
||||
return v1_persistent_volume_claim_status_local_var;
|
||||
}
|
||||
@@ -40,6 +40,16 @@ void v1_persistent_volume_claim_status_free(v1_persistent_volume_claim_status_t
|
||||
list_freeList(v1_persistent_volume_claim_status->access_modes);
|
||||
v1_persistent_volume_claim_status->access_modes = NULL;
|
||||
}
|
||||
if (v1_persistent_volume_claim_status->allocated_resource_statuses) {
|
||||
list_ForEach(listEntry, v1_persistent_volume_claim_status->allocated_resource_statuses) {
|
||||
keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data;
|
||||
free (localKeyValue->key);
|
||||
free (localKeyValue->value);
|
||||
keyValuePair_free(localKeyValue);
|
||||
}
|
||||
list_freeList(v1_persistent_volume_claim_status->allocated_resource_statuses);
|
||||
v1_persistent_volume_claim_status->allocated_resource_statuses = NULL;
|
||||
}
|
||||
if (v1_persistent_volume_claim_status->allocated_resources) {
|
||||
list_ForEach(listEntry, v1_persistent_volume_claim_status->allocated_resources) {
|
||||
keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data;
|
||||
@@ -71,10 +81,6 @@ void v1_persistent_volume_claim_status_free(v1_persistent_volume_claim_status_t
|
||||
free(v1_persistent_volume_claim_status->phase);
|
||||
v1_persistent_volume_claim_status->phase = NULL;
|
||||
}
|
||||
if (v1_persistent_volume_claim_status->resize_status) {
|
||||
free(v1_persistent_volume_claim_status->resize_status);
|
||||
v1_persistent_volume_claim_status->resize_status = NULL;
|
||||
}
|
||||
free(v1_persistent_volume_claim_status);
|
||||
}
|
||||
|
||||
@@ -98,6 +104,26 @@ cJSON *v1_persistent_volume_claim_status_convertToJSON(v1_persistent_volume_clai
|
||||
}
|
||||
|
||||
|
||||
// v1_persistent_volume_claim_status->allocated_resource_statuses
|
||||
if(v1_persistent_volume_claim_status->allocated_resource_statuses) {
|
||||
cJSON *allocated_resource_statuses = cJSON_AddObjectToObject(item, "allocatedResourceStatuses");
|
||||
if(allocated_resource_statuses == NULL) {
|
||||
goto fail; //primitive map container
|
||||
}
|
||||
cJSON *localMapObject = allocated_resource_statuses;
|
||||
listEntry_t *allocated_resource_statusesListEntry;
|
||||
if (v1_persistent_volume_claim_status->allocated_resource_statuses) {
|
||||
list_ForEach(allocated_resource_statusesListEntry, v1_persistent_volume_claim_status->allocated_resource_statuses) {
|
||||
keyValuePair_t *localKeyValue = (keyValuePair_t*)allocated_resource_statusesListEntry->data;
|
||||
if(cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL)
|
||||
{
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_persistent_volume_claim_status->allocated_resources
|
||||
if(v1_persistent_volume_claim_status->allocated_resources) {
|
||||
cJSON *allocated_resources = cJSON_AddObjectToObject(item, "allocatedResources");
|
||||
@@ -165,14 +191,6 @@ cJSON *v1_persistent_volume_claim_status_convertToJSON(v1_persistent_volume_clai
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_persistent_volume_claim_status->resize_status
|
||||
if(v1_persistent_volume_claim_status->resize_status) {
|
||||
if(cJSON_AddStringToObject(item, "resizeStatus", v1_persistent_volume_claim_status->resize_status) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
return item;
|
||||
fail:
|
||||
if (item) {
|
||||
@@ -188,6 +206,9 @@ v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status_parseFrom
|
||||
// define the local list for v1_persistent_volume_claim_status->access_modes
|
||||
list_t *access_modesList = NULL;
|
||||
|
||||
// define the local map for v1_persistent_volume_claim_status->allocated_resource_statuses
|
||||
list_t *allocated_resource_statusesList = NULL;
|
||||
|
||||
// define the local map for v1_persistent_volume_claim_status->allocated_resources
|
||||
list_t *allocated_resourcesList = NULL;
|
||||
|
||||
@@ -216,6 +237,31 @@ v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status_parseFrom
|
||||
}
|
||||
}
|
||||
|
||||
// v1_persistent_volume_claim_status->allocated_resource_statuses
|
||||
cJSON *allocated_resource_statuses = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_statusJSON, "allocatedResourceStatuses");
|
||||
if (allocated_resource_statuses) {
|
||||
cJSON *allocated_resource_statuses_local_map = NULL;
|
||||
if(!cJSON_IsObject(allocated_resource_statuses) && !cJSON_IsNull(allocated_resource_statuses))
|
||||
{
|
||||
goto end;//primitive map container
|
||||
}
|
||||
if(cJSON_IsObject(allocated_resource_statuses))
|
||||
{
|
||||
allocated_resource_statusesList = list_createList();
|
||||
keyValuePair_t *localMapKeyPair;
|
||||
cJSON_ArrayForEach(allocated_resource_statuses_local_map, allocated_resource_statuses)
|
||||
{
|
||||
cJSON *localMapObject = allocated_resource_statuses_local_map;
|
||||
if(!cJSON_IsString(localMapObject))
|
||||
{
|
||||
goto end;
|
||||
}
|
||||
localMapKeyPair = keyValuePair_create(strdup(localMapObject->string),strdup(localMapObject->valuestring));
|
||||
list_addElement(allocated_resource_statusesList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// v1_persistent_volume_claim_status->allocated_resources
|
||||
cJSON *allocated_resources = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_statusJSON, "allocatedResources");
|
||||
if (allocated_resources) {
|
||||
@@ -296,23 +342,14 @@ v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status_parseFrom
|
||||
}
|
||||
}
|
||||
|
||||
// v1_persistent_volume_claim_status->resize_status
|
||||
cJSON *resize_status = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_statusJSON, "resizeStatus");
|
||||
if (resize_status) {
|
||||
if(!cJSON_IsString(resize_status) && !cJSON_IsNull(resize_status))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
v1_persistent_volume_claim_status_local_var = v1_persistent_volume_claim_status_create (
|
||||
access_modes ? access_modesList : NULL,
|
||||
allocated_resource_statuses ? allocated_resource_statusesList : NULL,
|
||||
allocated_resources ? allocated_resourcesList : NULL,
|
||||
capacity ? capacityList : NULL,
|
||||
conditions ? conditionsList : NULL,
|
||||
phase && !cJSON_IsNull(phase) ? strdup(phase->valuestring) : NULL,
|
||||
resize_status && !cJSON_IsNull(resize_status) ? strdup(resize_status->valuestring) : NULL
|
||||
phase && !cJSON_IsNull(phase) ? strdup(phase->valuestring) : NULL
|
||||
);
|
||||
|
||||
return v1_persistent_volume_claim_status_local_var;
|
||||
@@ -326,6 +363,20 @@ end:
|
||||
list_freeList(access_modesList);
|
||||
access_modesList = NULL;
|
||||
}
|
||||
if (allocated_resource_statusesList) {
|
||||
listEntry_t *listEntry = NULL;
|
||||
list_ForEach(listEntry, allocated_resource_statusesList) {
|
||||
keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data;
|
||||
free(localKeyValue->key);
|
||||
localKeyValue->key = NULL;
|
||||
free(localKeyValue->value);
|
||||
localKeyValue->value = NULL;
|
||||
keyValuePair_free(localKeyValue);
|
||||
localKeyValue = NULL;
|
||||
}
|
||||
list_freeList(allocated_resource_statusesList);
|
||||
allocated_resource_statusesList = NULL;
|
||||
}
|
||||
if (allocated_resourcesList) {
|
||||
listEntry_t *listEntry = NULL;
|
||||
list_ForEach(listEntry, allocated_resourcesList) {
|
||||
|
||||
@@ -21,21 +21,21 @@ typedef struct v1_persistent_volume_claim_status_t v1_persistent_volume_claim_st
|
||||
|
||||
typedef struct v1_persistent_volume_claim_status_t {
|
||||
list_t *access_modes; //primitive container
|
||||
list_t* allocated_resource_statuses; //map
|
||||
list_t* allocated_resources; //map
|
||||
list_t* capacity; //map
|
||||
list_t *conditions; //nonprimitive container
|
||||
char *phase; // string
|
||||
char *resize_status; // string
|
||||
|
||||
} v1_persistent_volume_claim_status_t;
|
||||
|
||||
v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status_create(
|
||||
list_t *access_modes,
|
||||
list_t* allocated_resource_statuses,
|
||||
list_t* allocated_resources,
|
||||
list_t* capacity,
|
||||
list_t *conditions,
|
||||
char *phase,
|
||||
char *resize_status
|
||||
char *phase
|
||||
);
|
||||
|
||||
void v1_persistent_volume_claim_status_free(v1_persistent_volume_claim_status_t *v1_persistent_volume_claim_status);
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
|
||||
v1_persistent_volume_status_t *v1_persistent_volume_status_create(
|
||||
char *last_phase_transition_time,
|
||||
char *message,
|
||||
char *phase,
|
||||
char *reason
|
||||
@@ -14,6 +15,7 @@ v1_persistent_volume_status_t *v1_persistent_volume_status_create(
|
||||
if (!v1_persistent_volume_status_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
v1_persistent_volume_status_local_var->last_phase_transition_time = last_phase_transition_time;
|
||||
v1_persistent_volume_status_local_var->message = message;
|
||||
v1_persistent_volume_status_local_var->phase = phase;
|
||||
v1_persistent_volume_status_local_var->reason = reason;
|
||||
@@ -27,6 +29,10 @@ void v1_persistent_volume_status_free(v1_persistent_volume_status_t *v1_persiste
|
||||
return ;
|
||||
}
|
||||
listEntry_t *listEntry;
|
||||
if (v1_persistent_volume_status->last_phase_transition_time) {
|
||||
free(v1_persistent_volume_status->last_phase_transition_time);
|
||||
v1_persistent_volume_status->last_phase_transition_time = NULL;
|
||||
}
|
||||
if (v1_persistent_volume_status->message) {
|
||||
free(v1_persistent_volume_status->message);
|
||||
v1_persistent_volume_status->message = NULL;
|
||||
@@ -45,6 +51,14 @@ void v1_persistent_volume_status_free(v1_persistent_volume_status_t *v1_persiste
|
||||
cJSON *v1_persistent_volume_status_convertToJSON(v1_persistent_volume_status_t *v1_persistent_volume_status) {
|
||||
cJSON *item = cJSON_CreateObject();
|
||||
|
||||
// v1_persistent_volume_status->last_phase_transition_time
|
||||
if(v1_persistent_volume_status->last_phase_transition_time) {
|
||||
if(cJSON_AddStringToObject(item, "lastPhaseTransitionTime", v1_persistent_volume_status->last_phase_transition_time) == NULL) {
|
||||
goto fail; //Date-Time
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_persistent_volume_status->message
|
||||
if(v1_persistent_volume_status->message) {
|
||||
if(cJSON_AddStringToObject(item, "message", v1_persistent_volume_status->message) == NULL) {
|
||||
@@ -80,6 +94,15 @@ v1_persistent_volume_status_t *v1_persistent_volume_status_parseFromJSON(cJSON *
|
||||
|
||||
v1_persistent_volume_status_t *v1_persistent_volume_status_local_var = NULL;
|
||||
|
||||
// v1_persistent_volume_status->last_phase_transition_time
|
||||
cJSON *last_phase_transition_time = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_statusJSON, "lastPhaseTransitionTime");
|
||||
if (last_phase_transition_time) {
|
||||
if(!cJSON_IsString(last_phase_transition_time) && !cJSON_IsNull(last_phase_transition_time))
|
||||
{
|
||||
goto end; //DateTime
|
||||
}
|
||||
}
|
||||
|
||||
// v1_persistent_volume_status->message
|
||||
cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_statusJSON, "message");
|
||||
if (message) {
|
||||
@@ -109,6 +132,7 @@ v1_persistent_volume_status_t *v1_persistent_volume_status_parseFromJSON(cJSON *
|
||||
|
||||
|
||||
v1_persistent_volume_status_local_var = v1_persistent_volume_status_create (
|
||||
last_phase_transition_time && !cJSON_IsNull(last_phase_transition_time) ? strdup(last_phase_transition_time->valuestring) : NULL,
|
||||
message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL,
|
||||
phase && !cJSON_IsNull(phase) ? strdup(phase->valuestring) : NULL,
|
||||
reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL
|
||||
|
||||
@@ -19,6 +19,7 @@ typedef struct v1_persistent_volume_status_t v1_persistent_volume_status_t;
|
||||
|
||||
|
||||
typedef struct v1_persistent_volume_status_t {
|
||||
char *last_phase_transition_time; //date time
|
||||
char *message; // string
|
||||
char *phase; // string
|
||||
char *reason; // string
|
||||
@@ -26,6 +27,7 @@ typedef struct v1_persistent_volume_status_t {
|
||||
} v1_persistent_volume_status_t;
|
||||
|
||||
v1_persistent_volume_status_t *v1_persistent_volume_status_create(
|
||||
char *last_phase_transition_time,
|
||||
char *message,
|
||||
char *phase,
|
||||
char *reason
|
||||
|
||||
@@ -71,9 +71,7 @@ cJSON *v1_pod_failure_policy_rule_convertToJSON(v1_pod_failure_policy_rule_t *v1
|
||||
|
||||
|
||||
// v1_pod_failure_policy_rule->on_pod_conditions
|
||||
if (!v1_pod_failure_policy_rule->on_pod_conditions) {
|
||||
goto fail;
|
||||
}
|
||||
if(v1_pod_failure_policy_rule->on_pod_conditions) {
|
||||
cJSON *on_pod_conditions = cJSON_AddArrayToObject(item, "onPodConditions");
|
||||
if(on_pod_conditions == NULL) {
|
||||
goto fail; //nonprimitive container
|
||||
@@ -89,6 +87,7 @@ cJSON *v1_pod_failure_policy_rule_convertToJSON(v1_pod_failure_policy_rule_t *v1
|
||||
cJSON_AddItemToArray(on_pod_conditions, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return item;
|
||||
fail:
|
||||
@@ -128,11 +127,7 @@ v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule_parseFromJSON(cJSON *v1
|
||||
|
||||
// v1_pod_failure_policy_rule->on_pod_conditions
|
||||
cJSON *on_pod_conditions = cJSON_GetObjectItemCaseSensitive(v1_pod_failure_policy_ruleJSON, "onPodConditions");
|
||||
if (!on_pod_conditions) {
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (on_pod_conditions) {
|
||||
cJSON *on_pod_conditions_local_nonprimitive = NULL;
|
||||
if(!cJSON_IsArray(on_pod_conditions)){
|
||||
goto end; //nonprimitive container
|
||||
@@ -149,12 +144,13 @@ v1_pod_failure_policy_rule_t *v1_pod_failure_policy_rule_parseFromJSON(cJSON *v1
|
||||
|
||||
list_addElement(on_pod_conditionsList, on_pod_conditionsItem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
v1_pod_failure_policy_rule_local_var = v1_pod_failure_policy_rule_create (
|
||||
strdup(action->valuestring),
|
||||
on_exit_codes ? on_exit_codes_local_nonprim : NULL,
|
||||
on_pod_conditionsList
|
||||
on_pod_conditions ? on_pod_conditionsList : NULL
|
||||
);
|
||||
|
||||
return v1_pod_failure_policy_rule_local_var;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* v1_pod_ip.h
|
||||
*
|
||||
* IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster.
|
||||
* PodIP represents a single IP address allocated to the pod.
|
||||
*/
|
||||
|
||||
#ifndef _v1_pod_ip_H_
|
||||
|
||||
101
kubernetes/model/v1_pod_resource_claim_status.c
Normal file
101
kubernetes/model/v1_pod_resource_claim_status.c
Normal file
@@ -0,0 +1,101 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "v1_pod_resource_claim_status.h"
|
||||
|
||||
|
||||
|
||||
v1_pod_resource_claim_status_t *v1_pod_resource_claim_status_create(
|
||||
char *name,
|
||||
char *resource_claim_name
|
||||
) {
|
||||
v1_pod_resource_claim_status_t *v1_pod_resource_claim_status_local_var = malloc(sizeof(v1_pod_resource_claim_status_t));
|
||||
if (!v1_pod_resource_claim_status_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
v1_pod_resource_claim_status_local_var->name = name;
|
||||
v1_pod_resource_claim_status_local_var->resource_claim_name = resource_claim_name;
|
||||
|
||||
return v1_pod_resource_claim_status_local_var;
|
||||
}
|
||||
|
||||
|
||||
void v1_pod_resource_claim_status_free(v1_pod_resource_claim_status_t *v1_pod_resource_claim_status) {
|
||||
if(NULL == v1_pod_resource_claim_status){
|
||||
return ;
|
||||
}
|
||||
listEntry_t *listEntry;
|
||||
if (v1_pod_resource_claim_status->name) {
|
||||
free(v1_pod_resource_claim_status->name);
|
||||
v1_pod_resource_claim_status->name = NULL;
|
||||
}
|
||||
if (v1_pod_resource_claim_status->resource_claim_name) {
|
||||
free(v1_pod_resource_claim_status->resource_claim_name);
|
||||
v1_pod_resource_claim_status->resource_claim_name = NULL;
|
||||
}
|
||||
free(v1_pod_resource_claim_status);
|
||||
}
|
||||
|
||||
cJSON *v1_pod_resource_claim_status_convertToJSON(v1_pod_resource_claim_status_t *v1_pod_resource_claim_status) {
|
||||
cJSON *item = cJSON_CreateObject();
|
||||
|
||||
// v1_pod_resource_claim_status->name
|
||||
if (!v1_pod_resource_claim_status->name) {
|
||||
goto fail;
|
||||
}
|
||||
if(cJSON_AddStringToObject(item, "name", v1_pod_resource_claim_status->name) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
|
||||
|
||||
// v1_pod_resource_claim_status->resource_claim_name
|
||||
if(v1_pod_resource_claim_status->resource_claim_name) {
|
||||
if(cJSON_AddStringToObject(item, "resourceClaimName", v1_pod_resource_claim_status->resource_claim_name) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
return item;
|
||||
fail:
|
||||
if (item) {
|
||||
cJSON_Delete(item);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v1_pod_resource_claim_status_t *v1_pod_resource_claim_status_parseFromJSON(cJSON *v1_pod_resource_claim_statusJSON){
|
||||
|
||||
v1_pod_resource_claim_status_t *v1_pod_resource_claim_status_local_var = NULL;
|
||||
|
||||
// v1_pod_resource_claim_status->name
|
||||
cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_pod_resource_claim_statusJSON, "name");
|
||||
if (!name) {
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if(!cJSON_IsString(name))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
|
||||
// v1_pod_resource_claim_status->resource_claim_name
|
||||
cJSON *resource_claim_name = cJSON_GetObjectItemCaseSensitive(v1_pod_resource_claim_statusJSON, "resourceClaimName");
|
||||
if (resource_claim_name) {
|
||||
if(!cJSON_IsString(resource_claim_name) && !cJSON_IsNull(resource_claim_name))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
v1_pod_resource_claim_status_local_var = v1_pod_resource_claim_status_create (
|
||||
strdup(name->valuestring),
|
||||
resource_claim_name && !cJSON_IsNull(resource_claim_name) ? strdup(resource_claim_name->valuestring) : NULL
|
||||
);
|
||||
|
||||
return v1_pod_resource_claim_status_local_var;
|
||||
end:
|
||||
return NULL;
|
||||
|
||||
}
|
||||
39
kubernetes/model/v1_pod_resource_claim_status.h
Normal file
39
kubernetes/model/v1_pod_resource_claim_status.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* v1_pod_resource_claim_status.h
|
||||
*
|
||||
* PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.
|
||||
*/
|
||||
|
||||
#ifndef _v1_pod_resource_claim_status_H_
|
||||
#define _v1_pod_resource_claim_status_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
|
||||
typedef struct v1_pod_resource_claim_status_t v1_pod_resource_claim_status_t;
|
||||
|
||||
|
||||
|
||||
|
||||
typedef struct v1_pod_resource_claim_status_t {
|
||||
char *name; // string
|
||||
char *resource_claim_name; // string
|
||||
|
||||
} v1_pod_resource_claim_status_t;
|
||||
|
||||
v1_pod_resource_claim_status_t *v1_pod_resource_claim_status_create(
|
||||
char *name,
|
||||
char *resource_claim_name
|
||||
);
|
||||
|
||||
void v1_pod_resource_claim_status_free(v1_pod_resource_claim_status_t *v1_pod_resource_claim_status);
|
||||
|
||||
v1_pod_resource_claim_status_t *v1_pod_resource_claim_status_parseFromJSON(cJSON *v1_pod_resource_claim_statusJSON);
|
||||
|
||||
cJSON *v1_pod_resource_claim_status_convertToJSON(v1_pod_resource_claim_status_t *v1_pod_resource_claim_status);
|
||||
|
||||
#endif /* _v1_pod_resource_claim_status_H_ */
|
||||
|
||||
@@ -10,6 +10,7 @@ v1_pod_status_t *v1_pod_status_create(
|
||||
list_t *container_statuses,
|
||||
list_t *ephemeral_container_statuses,
|
||||
char *host_ip,
|
||||
list_t *host_ips,
|
||||
list_t *init_container_statuses,
|
||||
char *message,
|
||||
char *nominated_node_name,
|
||||
@@ -19,6 +20,7 @@ v1_pod_status_t *v1_pod_status_create(
|
||||
char *qos_class,
|
||||
char *reason,
|
||||
char *resize,
|
||||
list_t *resource_claim_statuses,
|
||||
char *start_time
|
||||
) {
|
||||
v1_pod_status_t *v1_pod_status_local_var = malloc(sizeof(v1_pod_status_t));
|
||||
@@ -29,6 +31,7 @@ v1_pod_status_t *v1_pod_status_create(
|
||||
v1_pod_status_local_var->container_statuses = container_statuses;
|
||||
v1_pod_status_local_var->ephemeral_container_statuses = ephemeral_container_statuses;
|
||||
v1_pod_status_local_var->host_ip = host_ip;
|
||||
v1_pod_status_local_var->host_ips = host_ips;
|
||||
v1_pod_status_local_var->init_container_statuses = init_container_statuses;
|
||||
v1_pod_status_local_var->message = message;
|
||||
v1_pod_status_local_var->nominated_node_name = nominated_node_name;
|
||||
@@ -38,6 +41,7 @@ v1_pod_status_t *v1_pod_status_create(
|
||||
v1_pod_status_local_var->qos_class = qos_class;
|
||||
v1_pod_status_local_var->reason = reason;
|
||||
v1_pod_status_local_var->resize = resize;
|
||||
v1_pod_status_local_var->resource_claim_statuses = resource_claim_statuses;
|
||||
v1_pod_status_local_var->start_time = start_time;
|
||||
|
||||
return v1_pod_status_local_var;
|
||||
@@ -74,6 +78,13 @@ void v1_pod_status_free(v1_pod_status_t *v1_pod_status) {
|
||||
free(v1_pod_status->host_ip);
|
||||
v1_pod_status->host_ip = NULL;
|
||||
}
|
||||
if (v1_pod_status->host_ips) {
|
||||
list_ForEach(listEntry, v1_pod_status->host_ips) {
|
||||
v1_host_ip_free(listEntry->data);
|
||||
}
|
||||
list_freeList(v1_pod_status->host_ips);
|
||||
v1_pod_status->host_ips = NULL;
|
||||
}
|
||||
if (v1_pod_status->init_container_statuses) {
|
||||
list_ForEach(listEntry, v1_pod_status->init_container_statuses) {
|
||||
v1_container_status_free(listEntry->data);
|
||||
@@ -116,6 +127,13 @@ void v1_pod_status_free(v1_pod_status_t *v1_pod_status) {
|
||||
free(v1_pod_status->resize);
|
||||
v1_pod_status->resize = NULL;
|
||||
}
|
||||
if (v1_pod_status->resource_claim_statuses) {
|
||||
list_ForEach(listEntry, v1_pod_status->resource_claim_statuses) {
|
||||
v1_pod_resource_claim_status_free(listEntry->data);
|
||||
}
|
||||
list_freeList(v1_pod_status->resource_claim_statuses);
|
||||
v1_pod_status->resource_claim_statuses = NULL;
|
||||
}
|
||||
if (v1_pod_status->start_time) {
|
||||
free(v1_pod_status->start_time);
|
||||
v1_pod_status->start_time = NULL;
|
||||
@@ -194,6 +212,26 @@ cJSON *v1_pod_status_convertToJSON(v1_pod_status_t *v1_pod_status) {
|
||||
}
|
||||
|
||||
|
||||
// v1_pod_status->host_ips
|
||||
if(v1_pod_status->host_ips) {
|
||||
cJSON *host_ips = cJSON_AddArrayToObject(item, "hostIPs");
|
||||
if(host_ips == NULL) {
|
||||
goto fail; //nonprimitive container
|
||||
}
|
||||
|
||||
listEntry_t *host_ipsListEntry;
|
||||
if (v1_pod_status->host_ips) {
|
||||
list_ForEach(host_ipsListEntry, v1_pod_status->host_ips) {
|
||||
cJSON *itemLocal = v1_host_ip_convertToJSON(host_ipsListEntry->data);
|
||||
if(itemLocal == NULL) {
|
||||
goto fail;
|
||||
}
|
||||
cJSON_AddItemToArray(host_ips, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_pod_status->init_container_statuses
|
||||
if(v1_pod_status->init_container_statuses) {
|
||||
cJSON *init_container_statuses = cJSON_AddArrayToObject(item, "initContainerStatuses");
|
||||
@@ -290,6 +328,26 @@ cJSON *v1_pod_status_convertToJSON(v1_pod_status_t *v1_pod_status) {
|
||||
}
|
||||
|
||||
|
||||
// v1_pod_status->resource_claim_statuses
|
||||
if(v1_pod_status->resource_claim_statuses) {
|
||||
cJSON *resource_claim_statuses = cJSON_AddArrayToObject(item, "resourceClaimStatuses");
|
||||
if(resource_claim_statuses == NULL) {
|
||||
goto fail; //nonprimitive container
|
||||
}
|
||||
|
||||
listEntry_t *resource_claim_statusesListEntry;
|
||||
if (v1_pod_status->resource_claim_statuses) {
|
||||
list_ForEach(resource_claim_statusesListEntry, v1_pod_status->resource_claim_statuses) {
|
||||
cJSON *itemLocal = v1_pod_resource_claim_status_convertToJSON(resource_claim_statusesListEntry->data);
|
||||
if(itemLocal == NULL) {
|
||||
goto fail;
|
||||
}
|
||||
cJSON_AddItemToArray(resource_claim_statuses, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_pod_status->start_time
|
||||
if(v1_pod_status->start_time) {
|
||||
if(cJSON_AddStringToObject(item, "startTime", v1_pod_status->start_time) == NULL) {
|
||||
@@ -318,12 +376,18 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){
|
||||
// define the local list for v1_pod_status->ephemeral_container_statuses
|
||||
list_t *ephemeral_container_statusesList = NULL;
|
||||
|
||||
// define the local list for v1_pod_status->host_ips
|
||||
list_t *host_ipsList = NULL;
|
||||
|
||||
// define the local list for v1_pod_status->init_container_statuses
|
||||
list_t *init_container_statusesList = NULL;
|
||||
|
||||
// define the local list for v1_pod_status->pod_ips
|
||||
list_t *pod_ipsList = NULL;
|
||||
|
||||
// define the local list for v1_pod_status->resource_claim_statuses
|
||||
list_t *resource_claim_statusesList = NULL;
|
||||
|
||||
// v1_pod_status->conditions
|
||||
cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "conditions");
|
||||
if (conditions) {
|
||||
@@ -396,6 +460,27 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){
|
||||
}
|
||||
}
|
||||
|
||||
// v1_pod_status->host_ips
|
||||
cJSON *host_ips = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "hostIPs");
|
||||
if (host_ips) {
|
||||
cJSON *host_ips_local_nonprimitive = NULL;
|
||||
if(!cJSON_IsArray(host_ips)){
|
||||
goto end; //nonprimitive container
|
||||
}
|
||||
|
||||
host_ipsList = list_createList();
|
||||
|
||||
cJSON_ArrayForEach(host_ips_local_nonprimitive,host_ips )
|
||||
{
|
||||
if(!cJSON_IsObject(host_ips_local_nonprimitive)){
|
||||
goto end;
|
||||
}
|
||||
v1_host_ip_t *host_ipsItem = v1_host_ip_parseFromJSON(host_ips_local_nonprimitive);
|
||||
|
||||
list_addElement(host_ipsList, host_ipsItem);
|
||||
}
|
||||
}
|
||||
|
||||
// v1_pod_status->init_container_statuses
|
||||
cJSON *init_container_statuses = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "initContainerStatuses");
|
||||
if (init_container_statuses) {
|
||||
@@ -501,6 +586,27 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){
|
||||
}
|
||||
}
|
||||
|
||||
// v1_pod_status->resource_claim_statuses
|
||||
cJSON *resource_claim_statuses = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "resourceClaimStatuses");
|
||||
if (resource_claim_statuses) {
|
||||
cJSON *resource_claim_statuses_local_nonprimitive = NULL;
|
||||
if(!cJSON_IsArray(resource_claim_statuses)){
|
||||
goto end; //nonprimitive container
|
||||
}
|
||||
|
||||
resource_claim_statusesList = list_createList();
|
||||
|
||||
cJSON_ArrayForEach(resource_claim_statuses_local_nonprimitive,resource_claim_statuses )
|
||||
{
|
||||
if(!cJSON_IsObject(resource_claim_statuses_local_nonprimitive)){
|
||||
goto end;
|
||||
}
|
||||
v1_pod_resource_claim_status_t *resource_claim_statusesItem = v1_pod_resource_claim_status_parseFromJSON(resource_claim_statuses_local_nonprimitive);
|
||||
|
||||
list_addElement(resource_claim_statusesList, resource_claim_statusesItem);
|
||||
}
|
||||
}
|
||||
|
||||
// v1_pod_status->start_time
|
||||
cJSON *start_time = cJSON_GetObjectItemCaseSensitive(v1_pod_statusJSON, "startTime");
|
||||
if (start_time) {
|
||||
@@ -516,6 +622,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){
|
||||
container_statuses ? container_statusesList : NULL,
|
||||
ephemeral_container_statuses ? ephemeral_container_statusesList : NULL,
|
||||
host_ip && !cJSON_IsNull(host_ip) ? strdup(host_ip->valuestring) : NULL,
|
||||
host_ips ? host_ipsList : NULL,
|
||||
init_container_statuses ? init_container_statusesList : NULL,
|
||||
message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL,
|
||||
nominated_node_name && !cJSON_IsNull(nominated_node_name) ? strdup(nominated_node_name->valuestring) : NULL,
|
||||
@@ -525,6 +632,7 @@ v1_pod_status_t *v1_pod_status_parseFromJSON(cJSON *v1_pod_statusJSON){
|
||||
qos_class && !cJSON_IsNull(qos_class) ? strdup(qos_class->valuestring) : NULL,
|
||||
reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL,
|
||||
resize && !cJSON_IsNull(resize) ? strdup(resize->valuestring) : NULL,
|
||||
resource_claim_statuses ? resource_claim_statusesList : NULL,
|
||||
start_time && !cJSON_IsNull(start_time) ? strdup(start_time->valuestring) : NULL
|
||||
);
|
||||
|
||||
@@ -557,6 +665,15 @@ end:
|
||||
list_freeList(ephemeral_container_statusesList);
|
||||
ephemeral_container_statusesList = NULL;
|
||||
}
|
||||
if (host_ipsList) {
|
||||
listEntry_t *listEntry = NULL;
|
||||
list_ForEach(listEntry, host_ipsList) {
|
||||
v1_host_ip_free(listEntry->data);
|
||||
listEntry->data = NULL;
|
||||
}
|
||||
list_freeList(host_ipsList);
|
||||
host_ipsList = NULL;
|
||||
}
|
||||
if (init_container_statusesList) {
|
||||
listEntry_t *listEntry = NULL;
|
||||
list_ForEach(listEntry, init_container_statusesList) {
|
||||
@@ -575,6 +692,15 @@ end:
|
||||
list_freeList(pod_ipsList);
|
||||
pod_ipsList = NULL;
|
||||
}
|
||||
if (resource_claim_statusesList) {
|
||||
listEntry_t *listEntry = NULL;
|
||||
list_ForEach(listEntry, resource_claim_statusesList) {
|
||||
v1_pod_resource_claim_status_free(listEntry->data);
|
||||
listEntry->data = NULL;
|
||||
}
|
||||
list_freeList(resource_claim_statusesList);
|
||||
resource_claim_statusesList = NULL;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
@@ -16,8 +16,10 @@
|
||||
typedef struct v1_pod_status_t v1_pod_status_t;
|
||||
|
||||
#include "v1_container_status.h"
|
||||
#include "v1_host_ip.h"
|
||||
#include "v1_pod_condition.h"
|
||||
#include "v1_pod_ip.h"
|
||||
#include "v1_pod_resource_claim_status.h"
|
||||
|
||||
|
||||
|
||||
@@ -26,6 +28,7 @@ typedef struct v1_pod_status_t {
|
||||
list_t *container_statuses; //nonprimitive container
|
||||
list_t *ephemeral_container_statuses; //nonprimitive container
|
||||
char *host_ip; // string
|
||||
list_t *host_ips; //nonprimitive container
|
||||
list_t *init_container_statuses; //nonprimitive container
|
||||
char *message; // string
|
||||
char *nominated_node_name; // string
|
||||
@@ -35,6 +38,7 @@ typedef struct v1_pod_status_t {
|
||||
char *qos_class; // string
|
||||
char *reason; // string
|
||||
char *resize; // string
|
||||
list_t *resource_claim_statuses; //nonprimitive container
|
||||
char *start_time; //date time
|
||||
|
||||
} v1_pod_status_t;
|
||||
@@ -44,6 +48,7 @@ v1_pod_status_t *v1_pod_status_create(
|
||||
list_t *container_statuses,
|
||||
list_t *ephemeral_container_statuses,
|
||||
char *host_ip,
|
||||
list_t *host_ips,
|
||||
list_t *init_container_statuses,
|
||||
char *message,
|
||||
char *nominated_node_name,
|
||||
@@ -53,6 +58,7 @@ v1_pod_status_t *v1_pod_status_create(
|
||||
char *qos_class,
|
||||
char *reason,
|
||||
char *resize,
|
||||
list_t *resource_claim_statuses,
|
||||
char *start_time
|
||||
);
|
||||
|
||||
|
||||
163
kubernetes/model/v1_self_subject_review.c
Normal file
163
kubernetes/model/v1_self_subject_review.c
Normal file
@@ -0,0 +1,163 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "v1_self_subject_review.h"
|
||||
|
||||
|
||||
|
||||
v1_self_subject_review_t *v1_self_subject_review_create(
|
||||
char *api_version,
|
||||
char *kind,
|
||||
v1_object_meta_t *metadata,
|
||||
v1_self_subject_review_status_t *status
|
||||
) {
|
||||
v1_self_subject_review_t *v1_self_subject_review_local_var = malloc(sizeof(v1_self_subject_review_t));
|
||||
if (!v1_self_subject_review_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
v1_self_subject_review_local_var->api_version = api_version;
|
||||
v1_self_subject_review_local_var->kind = kind;
|
||||
v1_self_subject_review_local_var->metadata = metadata;
|
||||
v1_self_subject_review_local_var->status = status;
|
||||
|
||||
return v1_self_subject_review_local_var;
|
||||
}
|
||||
|
||||
|
||||
void v1_self_subject_review_free(v1_self_subject_review_t *v1_self_subject_review) {
|
||||
if(NULL == v1_self_subject_review){
|
||||
return ;
|
||||
}
|
||||
listEntry_t *listEntry;
|
||||
if (v1_self_subject_review->api_version) {
|
||||
free(v1_self_subject_review->api_version);
|
||||
v1_self_subject_review->api_version = NULL;
|
||||
}
|
||||
if (v1_self_subject_review->kind) {
|
||||
free(v1_self_subject_review->kind);
|
||||
v1_self_subject_review->kind = NULL;
|
||||
}
|
||||
if (v1_self_subject_review->metadata) {
|
||||
v1_object_meta_free(v1_self_subject_review->metadata);
|
||||
v1_self_subject_review->metadata = NULL;
|
||||
}
|
||||
if (v1_self_subject_review->status) {
|
||||
v1_self_subject_review_status_free(v1_self_subject_review->status);
|
||||
v1_self_subject_review->status = NULL;
|
||||
}
|
||||
free(v1_self_subject_review);
|
||||
}
|
||||
|
||||
cJSON *v1_self_subject_review_convertToJSON(v1_self_subject_review_t *v1_self_subject_review) {
|
||||
cJSON *item = cJSON_CreateObject();
|
||||
|
||||
// v1_self_subject_review->api_version
|
||||
if(v1_self_subject_review->api_version) {
|
||||
if(cJSON_AddStringToObject(item, "apiVersion", v1_self_subject_review->api_version) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_self_subject_review->kind
|
||||
if(v1_self_subject_review->kind) {
|
||||
if(cJSON_AddStringToObject(item, "kind", v1_self_subject_review->kind) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_self_subject_review->metadata
|
||||
if(v1_self_subject_review->metadata) {
|
||||
cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1_self_subject_review->metadata);
|
||||
if(metadata_local_JSON == NULL) {
|
||||
goto fail; //model
|
||||
}
|
||||
cJSON_AddItemToObject(item, "metadata", metadata_local_JSON);
|
||||
if(item->child == NULL) {
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_self_subject_review->status
|
||||
if(v1_self_subject_review->status) {
|
||||
cJSON *status_local_JSON = v1_self_subject_review_status_convertToJSON(v1_self_subject_review->status);
|
||||
if(status_local_JSON == NULL) {
|
||||
goto fail; //model
|
||||
}
|
||||
cJSON_AddItemToObject(item, "status", status_local_JSON);
|
||||
if(item->child == NULL) {
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
return item;
|
||||
fail:
|
||||
if (item) {
|
||||
cJSON_Delete(item);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v1_self_subject_review_t *v1_self_subject_review_parseFromJSON(cJSON *v1_self_subject_reviewJSON){
|
||||
|
||||
v1_self_subject_review_t *v1_self_subject_review_local_var = NULL;
|
||||
|
||||
// define the local variable for v1_self_subject_review->metadata
|
||||
v1_object_meta_t *metadata_local_nonprim = NULL;
|
||||
|
||||
// define the local variable for v1_self_subject_review->status
|
||||
v1_self_subject_review_status_t *status_local_nonprim = NULL;
|
||||
|
||||
// v1_self_subject_review->api_version
|
||||
cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1_self_subject_reviewJSON, "apiVersion");
|
||||
if (api_version) {
|
||||
if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
// v1_self_subject_review->kind
|
||||
cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_self_subject_reviewJSON, "kind");
|
||||
if (kind) {
|
||||
if(!cJSON_IsString(kind) && !cJSON_IsNull(kind))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
// v1_self_subject_review->metadata
|
||||
cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1_self_subject_reviewJSON, "metadata");
|
||||
if (metadata) {
|
||||
metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive
|
||||
}
|
||||
|
||||
// v1_self_subject_review->status
|
||||
cJSON *status = cJSON_GetObjectItemCaseSensitive(v1_self_subject_reviewJSON, "status");
|
||||
if (status) {
|
||||
status_local_nonprim = v1_self_subject_review_status_parseFromJSON(status); //nonprimitive
|
||||
}
|
||||
|
||||
|
||||
v1_self_subject_review_local_var = v1_self_subject_review_create (
|
||||
api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL,
|
||||
kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL,
|
||||
metadata ? metadata_local_nonprim : NULL,
|
||||
status ? status_local_nonprim : NULL
|
||||
);
|
||||
|
||||
return v1_self_subject_review_local_var;
|
||||
end:
|
||||
if (metadata_local_nonprim) {
|
||||
v1_object_meta_free(metadata_local_nonprim);
|
||||
metadata_local_nonprim = NULL;
|
||||
}
|
||||
if (status_local_nonprim) {
|
||||
v1_self_subject_review_status_free(status_local_nonprim);
|
||||
status_local_nonprim = NULL;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
}
|
||||
45
kubernetes/model/v1_self_subject_review.h
Normal file
45
kubernetes/model/v1_self_subject_review.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* v1_self_subject_review.h
|
||||
*
|
||||
* SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
|
||||
*/
|
||||
|
||||
#ifndef _v1_self_subject_review_H_
|
||||
#define _v1_self_subject_review_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
|
||||
typedef struct v1_self_subject_review_t v1_self_subject_review_t;
|
||||
|
||||
#include "v1_object_meta.h"
|
||||
#include "v1_self_subject_review_status.h"
|
||||
|
||||
|
||||
|
||||
typedef struct v1_self_subject_review_t {
|
||||
char *api_version; // string
|
||||
char *kind; // string
|
||||
struct v1_object_meta_t *metadata; //model
|
||||
struct v1_self_subject_review_status_t *status; //model
|
||||
|
||||
} v1_self_subject_review_t;
|
||||
|
||||
v1_self_subject_review_t *v1_self_subject_review_create(
|
||||
char *api_version,
|
||||
char *kind,
|
||||
v1_object_meta_t *metadata,
|
||||
v1_self_subject_review_status_t *status
|
||||
);
|
||||
|
||||
void v1_self_subject_review_free(v1_self_subject_review_t *v1_self_subject_review);
|
||||
|
||||
v1_self_subject_review_t *v1_self_subject_review_parseFromJSON(cJSON *v1_self_subject_reviewJSON);
|
||||
|
||||
cJSON *v1_self_subject_review_convertToJSON(v1_self_subject_review_t *v1_self_subject_review);
|
||||
|
||||
#endif /* _v1_self_subject_review_H_ */
|
||||
|
||||
82
kubernetes/model/v1_self_subject_review_status.c
Normal file
82
kubernetes/model/v1_self_subject_review_status.c
Normal file
@@ -0,0 +1,82 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "v1_self_subject_review_status.h"
|
||||
|
||||
|
||||
|
||||
v1_self_subject_review_status_t *v1_self_subject_review_status_create(
|
||||
v1_user_info_t *user_info
|
||||
) {
|
||||
v1_self_subject_review_status_t *v1_self_subject_review_status_local_var = malloc(sizeof(v1_self_subject_review_status_t));
|
||||
if (!v1_self_subject_review_status_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
v1_self_subject_review_status_local_var->user_info = user_info;
|
||||
|
||||
return v1_self_subject_review_status_local_var;
|
||||
}
|
||||
|
||||
|
||||
void v1_self_subject_review_status_free(v1_self_subject_review_status_t *v1_self_subject_review_status) {
|
||||
if(NULL == v1_self_subject_review_status){
|
||||
return ;
|
||||
}
|
||||
listEntry_t *listEntry;
|
||||
if (v1_self_subject_review_status->user_info) {
|
||||
v1_user_info_free(v1_self_subject_review_status->user_info);
|
||||
v1_self_subject_review_status->user_info = NULL;
|
||||
}
|
||||
free(v1_self_subject_review_status);
|
||||
}
|
||||
|
||||
cJSON *v1_self_subject_review_status_convertToJSON(v1_self_subject_review_status_t *v1_self_subject_review_status) {
|
||||
cJSON *item = cJSON_CreateObject();
|
||||
|
||||
// v1_self_subject_review_status->user_info
|
||||
if(v1_self_subject_review_status->user_info) {
|
||||
cJSON *user_info_local_JSON = v1_user_info_convertToJSON(v1_self_subject_review_status->user_info);
|
||||
if(user_info_local_JSON == NULL) {
|
||||
goto fail; //model
|
||||
}
|
||||
cJSON_AddItemToObject(item, "userInfo", user_info_local_JSON);
|
||||
if(item->child == NULL) {
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
return item;
|
||||
fail:
|
||||
if (item) {
|
||||
cJSON_Delete(item);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v1_self_subject_review_status_t *v1_self_subject_review_status_parseFromJSON(cJSON *v1_self_subject_review_statusJSON){
|
||||
|
||||
v1_self_subject_review_status_t *v1_self_subject_review_status_local_var = NULL;
|
||||
|
||||
// define the local variable for v1_self_subject_review_status->user_info
|
||||
v1_user_info_t *user_info_local_nonprim = NULL;
|
||||
|
||||
// v1_self_subject_review_status->user_info
|
||||
cJSON *user_info = cJSON_GetObjectItemCaseSensitive(v1_self_subject_review_statusJSON, "userInfo");
|
||||
if (user_info) {
|
||||
user_info_local_nonprim = v1_user_info_parseFromJSON(user_info); //nonprimitive
|
||||
}
|
||||
|
||||
|
||||
v1_self_subject_review_status_local_var = v1_self_subject_review_status_create (
|
||||
user_info ? user_info_local_nonprim : NULL
|
||||
);
|
||||
|
||||
return v1_self_subject_review_status_local_var;
|
||||
end:
|
||||
if (user_info_local_nonprim) {
|
||||
v1_user_info_free(user_info_local_nonprim);
|
||||
user_info_local_nonprim = NULL;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
}
|
||||
38
kubernetes/model/v1_self_subject_review_status.h
Normal file
38
kubernetes/model/v1_self_subject_review_status.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* v1_self_subject_review_status.h
|
||||
*
|
||||
* SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.
|
||||
*/
|
||||
|
||||
#ifndef _v1_self_subject_review_status_H_
|
||||
#define _v1_self_subject_review_status_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
|
||||
typedef struct v1_self_subject_review_status_t v1_self_subject_review_status_t;
|
||||
|
||||
#include "v1_user_info.h"
|
||||
|
||||
|
||||
|
||||
typedef struct v1_self_subject_review_status_t {
|
||||
struct v1_user_info_t *user_info; //model
|
||||
|
||||
} v1_self_subject_review_status_t;
|
||||
|
||||
v1_self_subject_review_status_t *v1_self_subject_review_status_create(
|
||||
v1_user_info_t *user_info
|
||||
);
|
||||
|
||||
void v1_self_subject_review_status_free(v1_self_subject_review_status_t *v1_self_subject_review_status);
|
||||
|
||||
v1_self_subject_review_status_t *v1_self_subject_review_status_parseFromJSON(cJSON *v1_self_subject_review_statusJSON);
|
||||
|
||||
cJSON *v1_self_subject_review_status_convertToJSON(v1_self_subject_review_status_t *v1_self_subject_review_status);
|
||||
|
||||
#endif /* _v1_self_subject_review_status_H_ */
|
||||
|
||||
@@ -6,16 +6,20 @@
|
||||
|
||||
|
||||
v1_validation_rule_t *v1_validation_rule_create(
|
||||
char *field_path,
|
||||
char *message,
|
||||
char *message_expression,
|
||||
char *reason,
|
||||
char *rule
|
||||
) {
|
||||
v1_validation_rule_t *v1_validation_rule_local_var = malloc(sizeof(v1_validation_rule_t));
|
||||
if (!v1_validation_rule_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
v1_validation_rule_local_var->field_path = field_path;
|
||||
v1_validation_rule_local_var->message = message;
|
||||
v1_validation_rule_local_var->message_expression = message_expression;
|
||||
v1_validation_rule_local_var->reason = reason;
|
||||
v1_validation_rule_local_var->rule = rule;
|
||||
|
||||
return v1_validation_rule_local_var;
|
||||
@@ -27,6 +31,10 @@ void v1_validation_rule_free(v1_validation_rule_t *v1_validation_rule) {
|
||||
return ;
|
||||
}
|
||||
listEntry_t *listEntry;
|
||||
if (v1_validation_rule->field_path) {
|
||||
free(v1_validation_rule->field_path);
|
||||
v1_validation_rule->field_path = NULL;
|
||||
}
|
||||
if (v1_validation_rule->message) {
|
||||
free(v1_validation_rule->message);
|
||||
v1_validation_rule->message = NULL;
|
||||
@@ -35,6 +43,10 @@ void v1_validation_rule_free(v1_validation_rule_t *v1_validation_rule) {
|
||||
free(v1_validation_rule->message_expression);
|
||||
v1_validation_rule->message_expression = NULL;
|
||||
}
|
||||
if (v1_validation_rule->reason) {
|
||||
free(v1_validation_rule->reason);
|
||||
v1_validation_rule->reason = NULL;
|
||||
}
|
||||
if (v1_validation_rule->rule) {
|
||||
free(v1_validation_rule->rule);
|
||||
v1_validation_rule->rule = NULL;
|
||||
@@ -45,6 +57,14 @@ void v1_validation_rule_free(v1_validation_rule_t *v1_validation_rule) {
|
||||
cJSON *v1_validation_rule_convertToJSON(v1_validation_rule_t *v1_validation_rule) {
|
||||
cJSON *item = cJSON_CreateObject();
|
||||
|
||||
// v1_validation_rule->field_path
|
||||
if(v1_validation_rule->field_path) {
|
||||
if(cJSON_AddStringToObject(item, "fieldPath", v1_validation_rule->field_path) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_validation_rule->message
|
||||
if(v1_validation_rule->message) {
|
||||
if(cJSON_AddStringToObject(item, "message", v1_validation_rule->message) == NULL) {
|
||||
@@ -61,6 +81,14 @@ cJSON *v1_validation_rule_convertToJSON(v1_validation_rule_t *v1_validation_rule
|
||||
}
|
||||
|
||||
|
||||
// v1_validation_rule->reason
|
||||
if(v1_validation_rule->reason) {
|
||||
if(cJSON_AddStringToObject(item, "reason", v1_validation_rule->reason) == NULL) {
|
||||
goto fail; //String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// v1_validation_rule->rule
|
||||
if (!v1_validation_rule->rule) {
|
||||
goto fail;
|
||||
@@ -81,6 +109,15 @@ v1_validation_rule_t *v1_validation_rule_parseFromJSON(cJSON *v1_validation_rule
|
||||
|
||||
v1_validation_rule_t *v1_validation_rule_local_var = NULL;
|
||||
|
||||
// v1_validation_rule->field_path
|
||||
cJSON *field_path = cJSON_GetObjectItemCaseSensitive(v1_validation_ruleJSON, "fieldPath");
|
||||
if (field_path) {
|
||||
if(!cJSON_IsString(field_path) && !cJSON_IsNull(field_path))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
// v1_validation_rule->message
|
||||
cJSON *message = cJSON_GetObjectItemCaseSensitive(v1_validation_ruleJSON, "message");
|
||||
if (message) {
|
||||
@@ -99,6 +136,15 @@ v1_validation_rule_t *v1_validation_rule_parseFromJSON(cJSON *v1_validation_rule
|
||||
}
|
||||
}
|
||||
|
||||
// v1_validation_rule->reason
|
||||
cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1_validation_ruleJSON, "reason");
|
||||
if (reason) {
|
||||
if(!cJSON_IsString(reason) && !cJSON_IsNull(reason))
|
||||
{
|
||||
goto end; //String
|
||||
}
|
||||
}
|
||||
|
||||
// v1_validation_rule->rule
|
||||
cJSON *rule = cJSON_GetObjectItemCaseSensitive(v1_validation_ruleJSON, "rule");
|
||||
if (!rule) {
|
||||
@@ -113,8 +159,10 @@ v1_validation_rule_t *v1_validation_rule_parseFromJSON(cJSON *v1_validation_rule
|
||||
|
||||
|
||||
v1_validation_rule_local_var = v1_validation_rule_create (
|
||||
field_path && !cJSON_IsNull(field_path) ? strdup(field_path->valuestring) : NULL,
|
||||
message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL,
|
||||
message_expression && !cJSON_IsNull(message_expression) ? strdup(message_expression->valuestring) : NULL,
|
||||
reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL,
|
||||
strdup(rule->valuestring)
|
||||
);
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user