2020-03-18 17:24:33 +08:00
|
|
|
/*
|
|
|
|
|
* v1_rolling_update_daemon_set.h
|
|
|
|
|
*
|
|
|
|
|
* Spec to control the desired behavior of daemon set rolling update.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _v1_rolling_update_daemon_set_H_
|
|
|
|
|
#define _v1_rolling_update_daemon_set_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_rolling_update_daemon_set_t v1_rolling_update_daemon_set_t;
|
|
|
|
|
|
2021-12-20 17:14:46 +08:00
|
|
|
#include "int_or_string.h"
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct v1_rolling_update_daemon_set_t {
|
2021-12-20 17:14:46 +08:00
|
|
|
int_or_string_t *max_surge; // custom
|
|
|
|
|
int_or_string_t *max_unavailable; // custom
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
} v1_rolling_update_daemon_set_t;
|
|
|
|
|
|
|
|
|
|
v1_rolling_update_daemon_set_t *v1_rolling_update_daemon_set_create(
|
2021-12-20 17:14:46 +08:00
|
|
|
int_or_string_t *max_surge,
|
|
|
|
|
int_or_string_t *max_unavailable
|
2020-03-18 17:24:33 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
void v1_rolling_update_daemon_set_free(v1_rolling_update_daemon_set_t *v1_rolling_update_daemon_set);
|
|
|
|
|
|
|
|
|
|
v1_rolling_update_daemon_set_t *v1_rolling_update_daemon_set_parseFromJSON(cJSON *v1_rolling_update_daemon_setJSON);
|
|
|
|
|
|
|
|
|
|
cJSON *v1_rolling_update_daemon_set_convertToJSON(v1_rolling_update_daemon_set_t *v1_rolling_update_daemon_set);
|
|
|
|
|
|
|
|
|
|
#endif /* _v1_rolling_update_daemon_set_H_ */
|
|
|
|
|
|