2020-03-18 17:24:33 +08:00
|
|
|
/*
|
|
|
|
|
* v1_config_map_node_config_source.h
|
|
|
|
|
*
|
2021-09-14 21:52:06 +08:00
|
|
|
* ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
|
2020-03-18 17:24:33 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _v1_config_map_node_config_source_H_
|
|
|
|
|
#define _v1_config_map_node_config_source_H_
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include "../external/cJSON.h"
|
|
|
|
|
#include "../include/list.h"
|
|
|
|
|
#include "../include/keyValuePair.h"
|
2020-06-20 09:41:15 +08:00
|
|
|
#include "../include/binary.h"
|
|
|
|
|
|
|
|
|
|
typedef struct v1_config_map_node_config_source_t v1_config_map_node_config_source_t;
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct v1_config_map_node_config_source_t {
|
|
|
|
|
char *kubelet_config_key; // string
|
|
|
|
|
char *name; // string
|
2021-01-05 15:42:34 +08:00
|
|
|
char *_namespace; // string
|
2020-03-18 17:24:33 +08:00
|
|
|
char *resource_version; // string
|
|
|
|
|
char *uid; // string
|
|
|
|
|
|
|
|
|
|
} v1_config_map_node_config_source_t;
|
|
|
|
|
|
|
|
|
|
v1_config_map_node_config_source_t *v1_config_map_node_config_source_create(
|
|
|
|
|
char *kubelet_config_key,
|
|
|
|
|
char *name,
|
2021-01-05 15:42:34 +08:00
|
|
|
char *_namespace,
|
2020-03-18 17:24:33 +08:00
|
|
|
char *resource_version,
|
|
|
|
|
char *uid
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
void v1_config_map_node_config_source_free(v1_config_map_node_config_source_t *v1_config_map_node_config_source);
|
|
|
|
|
|
|
|
|
|
v1_config_map_node_config_source_t *v1_config_map_node_config_source_parseFromJSON(cJSON *v1_config_map_node_config_sourceJSON);
|
|
|
|
|
|
|
|
|
|
cJSON *v1_config_map_node_config_source_convertToJSON(v1_config_map_node_config_source_t *v1_config_map_node_config_source);
|
|
|
|
|
|
|
|
|
|
#endif /* _v1_config_map_node_config_source_H_ */
|
|
|
|
|
|