2020-03-18 17:24:33 +08:00
|
|
|
/*
|
|
|
|
|
* v1_stateful_set_update_strategy.h
|
|
|
|
|
*
|
|
|
|
|
* StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _v1_stateful_set_update_strategy_H_
|
|
|
|
|
#define _v1_stateful_set_update_strategy_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_stateful_set_update_strategy_t v1_stateful_set_update_strategy_t;
|
|
|
|
|
|
2020-03-18 17:24:33 +08:00
|
|
|
#include "v1_rolling_update_stateful_set_strategy.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct v1_stateful_set_update_strategy_t {
|
|
|
|
|
struct v1_rolling_update_stateful_set_strategy_t *rolling_update; //model
|
2022-06-05 18:16:17 +00:00
|
|
|
char *type; // string
|
2020-03-18 17:24:33 +08:00
|
|
|
|
|
|
|
|
} v1_stateful_set_update_strategy_t;
|
|
|
|
|
|
|
|
|
|
v1_stateful_set_update_strategy_t *v1_stateful_set_update_strategy_create(
|
|
|
|
|
v1_rolling_update_stateful_set_strategy_t *rolling_update,
|
2022-06-05 18:16:17 +00:00
|
|
|
char *type
|
2020-03-18 17:24:33 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
void v1_stateful_set_update_strategy_free(v1_stateful_set_update_strategy_t *v1_stateful_set_update_strategy);
|
|
|
|
|
|
|
|
|
|
v1_stateful_set_update_strategy_t *v1_stateful_set_update_strategy_parseFromJSON(cJSON *v1_stateful_set_update_strategyJSON);
|
|
|
|
|
|
|
|
|
|
cJSON *v1_stateful_set_update_strategy_convertToJSON(v1_stateful_set_update_strategy_t *v1_stateful_set_update_strategy);
|
|
|
|
|
|
|
|
|
|
#endif /* _v1_stateful_set_update_strategy_H_ */
|
|
|
|
|
|