kaxil commented on a change in pull request #17625:
URL: https://github.com/apache/airflow/pull/17625#discussion_r689124494
##########
File path: airflow/provider.yaml.schema.json
##########
@@ -210,6 +210,20 @@
"additional-extras": {
"type": "object",
"description": "Additional extras that the provider should have"
+ },
+ "secret-backends": {
Review comment:
```suggestion
"secrets-backends": {
```
##########
File path: airflow/provider.yaml.schema.json
##########
@@ -210,6 +210,20 @@
"additional-extras": {
"type": "object",
"description": "Additional extras that the provider should have"
+ },
+ "secret-backends": {
+ "type": "array",
+ "description": "Secret Backend class names",
Review comment:
```suggestion
"description": "Secrets Backend class names",
```
##########
File path: airflow/provider_info.schema.json
##########
@@ -27,6 +27,20 @@
"items": {
"type": "string"
}
+ },
+ "secret-backends": {
+ "type": "array",
+ "description": "Secret Backend class names",
Review comment:
```suggestion
"description": "Secrets Backend class names",
```
##########
File path: airflow/cli/commands/provider_command.py
##########
@@ -113,3 +113,27 @@ def extra_links_list(args):
"extra_link_class_name": x,
},
)
+
+
+@suppress_logs_and_warning
+def logging_list(args):
+ """Lists all log task handlers at the command line"""
+ AirflowConsole().print_as(
+ data=list(ProvidersManager().logging_class_names),
+ output=args.output,
+ mapper=lambda x: {
+ "logging_class_name": x,
+ },
+ )
+
+
+@suppress_logs_and_warning
+def secret_backends_list(args):
+ """Lists all Secret Backends at the command line"""
Review comment:
```suggestion
"""Lists all Secrets Backends at the command line"""
```
##########
File path: airflow/cli/commands/provider_command.py
##########
@@ -113,3 +113,27 @@ def extra_links_list(args):
"extra_link_class_name": x,
},
)
+
+
+@suppress_logs_and_warning
+def logging_list(args):
+ """Lists all log task handlers at the command line"""
+ AirflowConsole().print_as(
+ data=list(ProvidersManager().logging_class_names),
+ output=args.output,
+ mapper=lambda x: {
+ "logging_class_name": x,
+ },
+ )
+
+
+@suppress_logs_and_warning
+def secret_backends_list(args):
Review comment:
```suggestion
def secrets_backends_list(args):
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]