Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: tools: List common fencing resource instance attributes via crm_resource #3399

Merged
merged 58 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
e8cfc51
Doc: libcrmcommon: Drop duplicate log level doxygen from header file
nrwahl2 Mar 25, 2024
9833e93
Refactor: libcrmcommon: New pcmk__output_fencing_params()
nrwahl2 Mar 25, 2024
75d9578
Refactor: libcrmcommon: New pcmk__opt_fencing enum value
nrwahl2 Feb 23, 2024
0389fc4
Refactor: libcrmcommon, fencer: Use pcmk__daemon_metadata() for fencer
nrwahl2 Mar 25, 2024
7e95742
Doc: libcrmcommon: Mark pcmk__opt_DAEMON flags as deprecated
nrwahl2 Feb 23, 2024
351d5f8
Refactor: libpacemaker: New pcmk__list_fencing_params()
nrwahl2 Feb 23, 2024
d4774a9
API: libpacemaker: New pcmk_list_fencing_params()
nrwahl2 Feb 23, 2024
5c8409a
Low: schemas: Copy schema in preparation for changes
nrwahl2 Feb 23, 2024
31b3c36
API: schemas: Allow options in crm_resource output
nrwahl2 Feb 24, 2024
6a354ba
Feature: crm_resource: New --list-options=fencing option
nrwahl2 Feb 25, 2024
5f8d616
Test: cts-cli: Add tests for crm_resource --list-options=fencing
nrwahl2 Mar 25, 2024
3a3fb6b
Test: cts-cli: Reorder a couple of crm_attribute --list-options tests
nrwahl2 Mar 25, 2024
1d4afa6
API: fencer: Deprecate metadata CLI option
nrwahl2 Mar 25, 2024
a241b47
Refactor: libcrmcommon: Declare options arrays as const
nrwahl2 Mar 25, 2024
72bac9d
Refactor: libcrmcommon: Use PCMK_VALUE_INTEGER as option type
nrwahl2 Mar 26, 2024
cca9624
Refactor: libcrmcommon: Use PCMK_VALUE_STRING as option type
nrwahl2 Mar 26, 2024
3c89c5a
API: libcrmcommon: New PCMK_VALUE_BOOLEAN string constant
nrwahl2 Mar 26, 2024
14d1035
Refactor: libcrmcommon: Use PCMK_VALUE_BOOLEAN as option type
nrwahl2 Mar 26, 2024
ea18d15
API: libcrmcommon: New PCMK_VALUE_SELECT string constant
nrwahl2 Mar 26, 2024
5c0a6ea
Refactor: libcrmcommon: Use PCMK_VALUE_SELECT as option type
nrwahl2 Mar 26, 2024
3eda445
API: libcrmcommon: New PCMK_VALUE_PERCENTAGE string constant
nrwahl2 Mar 26, 2024
ed7706c
Refactor: libcrmcommon: Use PCMK_VALUE_PERCENTAGE as option type
nrwahl2 Mar 26, 2024
2d4eaf4
Low: schemas: Copy API schemas in preparation for changes
nrwahl2 Mar 26, 2024
0402bd4
Feature: schemas: Allow more types in options API schema
nrwahl2 Mar 26, 2024
cf73948
API: libcrmcommon: New PCMK_VALUE_DURATION string constant
nrwahl2 Mar 26, 2024
bb447f8
Refactor: libcrmcommon: Use PCMK_VALUE_DURATION as option type
nrwahl2 Mar 26, 2024
beb26cd
Test: cts-cli: Update tests for PCMK_VALUE_DURATION as option type
nrwahl2 Mar 26, 2024
a98a0ee
API: libcrmcommon: New PCMK_VALUE_NONNEGATIVE_INTEGER string constant
nrwahl2 Mar 26, 2024
98bf79e
Refactor: libcrmcommon: Use PCMK_VALUE_NONNEGATIVE_INTEGER as opt type
nrwahl2 Mar 26, 2024
94e7f93
Test: cts-cli: Update tests for use of PCMK_VALUE_NONNEGATIVE_INTEGER
nrwahl2 Mar 26, 2024
0134659
API: libcrmcommon: New PCMK_VALUE_SCORE string constant
nrwahl2 Mar 26, 2024
6b0ca5f
Low: libcrmcommon: Use PCMK_VALUE_SCORE as option type
nrwahl2 Mar 26, 2024
fdbb8e3
Test: cts-cli: Update tests for PCMK_VALUE_SCORE as option type
nrwahl2 Mar 26, 2024
5156ca6
API: libcrmcommon: New PCMK_VALUE_TIMEOUT string constant
nrwahl2 Mar 26, 2024
c965fe2
Refactor: libcrmcommon: Use PCMK_VALUE_TIMEOUT as option type
nrwahl2 Mar 26, 2024
b15d8d2
Test: cts-cli: Update for PCMK_VALUE_TIMEOUT as option type
nrwahl2 Mar 26, 2024
b5e291d
Refactor: libcrmcommon: Use PCMK_VALUE_VERSION as option type
nrwahl2 Mar 26, 2024
904eb3a
Test: cts-cli: Update tests for PCMK_VALUE_VERSION as option type
nrwahl2 Mar 26, 2024
0edaa13
Doc: Pacemaker Explained: pcmk_delay_base is a text option
nrwahl2 Mar 26, 2024
8db4f2a
API: libcrmcommon: New PCMK_VALUE_DYNAMIC_LIST string constant
nrwahl2 Mar 26, 2024
834fd59
API: libcrmcommon: New PCMK_VALUE_STATIC_LIST string constant
nrwahl2 Mar 26, 2024
52fd4b5
API: libcrmcommon: New PCMK_VALUE_STATUS string constant
nrwahl2 Mar 26, 2024
534e1c3
API: libcrmcommon: New PCMK_ROLE_STOPPED string constant
nrwahl2 Mar 26, 2024
c486999
API: libcrmcommon: New PCMK_ROLE_STARTED string constant
nrwahl2 Mar 26, 2024
e595495
API: libcrmcommon: New PCMK_ROLE_UNPROMOTED string constant
nrwahl2 Mar 26, 2024
89b8f20
API: libcrmcommon: New PCMK_ROLE_PROMOTED string constant
nrwahl2 Mar 26, 2024
c53719b
API: libcrmcommon: New PCMK_VALUE_STOP_ONLY string constant
nrwahl2 Mar 26, 2024
503e36a
API: libcrmcommon: New PCMK_VALUE_STOP_START string constant
nrwahl2 Mar 26, 2024
1e8b6aa
API: libcrmcommon: New PCMK_VALUE_STOP_UNEXPECTED string constant
nrwahl2 Mar 26, 2024
3687074
API: libcrmcommon: New PCMK_VALUE_PORT string constant
nrwahl2 Mar 26, 2024
1ea50d5
Refactor: libcrmcommon: New pcmk__output_primitive_meta()
nrwahl2 Mar 26, 2024
a0ea432
Refactor: libpacemaker: New pcmk__list_primitive_meta()
nrwahl2 Mar 26, 2024
52c76d7
API: libpacemaker: New pcmk_list_primitive_meta()
nrwahl2 Mar 26, 2024
9108504
Refactor: libcrmcommon: New pcmk__opt_primitive enum value
nrwahl2 Apr 8, 2024
7c8e051
Feature: tools: New crm_resource --list-options=primitive option
nrwahl2 Mar 26, 2024
037e08c
Test: cts-cli: Add tests for crm_resource --list-options=primitive
nrwahl2 Mar 26, 2024
613ef38
Doc: Pacemaker Explained: Minor primitive meta-attribute fixes
nrwahl2 Mar 26, 2024
6056905
Refactor: libcrmcommon: Drop pcmk__valid_script()
nrwahl2 Mar 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor: libcrmcommon: Use PCMK_VALUE_VERSION as option type
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
  • Loading branch information
nrwahl2 committed Apr 8, 2024
commit b5e291dbc148e312e9babd5b3ea0f81e6389d144
2 changes: 1 addition & 1 deletion lib/common/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static const pcmk__cluster_option_t cluster_options[] = {
* long description
*/
{
PCMK_OPT_DC_VERSION, NULL, PCMK_VALUE_STRING, NULL,
PCMK_OPT_DC_VERSION, NULL, PCMK_VALUE_VERSION, NULL,
NULL, NULL,
pcmk__opt_controld|pcmk__opt_generated,
N_("Pacemaker version on cluster node elected Designated Controller "
Expand Down
3 changes: 3 additions & 0 deletions lib/common/options_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ map_legacy_option_type(const char *type)
PCMK_VALUE_SCORE, NULL)) {
return PCMK_VALUE_INTEGER;

} else if (pcmk__str_eq(type, PCMK_VALUE_VERSION, pcmk__str_none)) {
return PCMK_VALUE_STRING;

} else {
return type;
}
Expand Down