From: Tatjana Dehler Date: Thu, 28 Jun 2018 14:08:23 +0000 (+0200) Subject: mgr/dashboard: add flag info to config options documentation page X-Git-Tag: v14.0.1~967^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abf9d35aaa5c93c22c3abb29ea61ba89143306a4;p=ceph.git mgr/dashboard: add flag info to config options documentation page Add information about the supported flags (introduced by https://github.com/ceph/ceph/pull/22595) to the config options documentation page. Fixes: https://tracker.ceph.com/issues/24605 Signed-off-by: Tatjana Dehler --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.html index 9e7c64082b44..834a21479d04 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.html @@ -35,4 +35,13 @@ + + + + + {{ flag | uppercase }}{{ !isLast ? "," : "" }}
+
+
+
+
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts index ef06274935b5..5a6dc0eac9e7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts @@ -62,8 +62,19 @@ export class ConfigurationComponent implements OnInit { } } ]; + flags = { + runtime: 'The value can be updated at runtime.', + no_mon_update: + 'Daemons/clients do not pull this value from the monitor config database. ' + + 'We disallow setting this option via \'ceph config set ...\'. This option should be ' + + 'configured via ceph.conf or via the command line.', + startup: 'Option takes effect only during daemon startup.', + cluster_create: 'Option only affects cluster creation.', + create: 'Option only affects daemon creation.' + }; @ViewChild('confValTpl') public confValTpl: TemplateRef; + @ViewChild('confFlagTpl') public confFlagTpl: TemplateRef; constructor(private configurationService: ConfigurationService) {} @@ -80,6 +91,13 @@ export class ConfigurationComponent implements OnInit { { flexGrow: 1, prop: 'source' }, { flexGrow: 2, prop: 'desc', name: 'Description', cellClass: 'wrap' }, { flexGrow: 2, prop: 'long_desc', name: 'Long description', cellClass: 'wrap' }, + { + flexGrow: 2, + prop: 'flags', + name: 'Flags', + cellClass: 'wrap', + cellTemplate: this.confFlagTpl + }, { flexGrow: 1, prop: 'type' }, { flexGrow: 1, prop: 'level' }, { flexGrow: 1, prop: 'default', cellClass: 'wrap' },