Skip to content

Commit

Permalink
really fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
l3acon committed May 29, 2024
1 parent b393f77 commit 7352573
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The task `operators/operator_config.yaml` needs following variables:
- **Variable Name**: `cluster_config_operators`
- **Type**: List
- **Description**: A list of operators to be installed on OCP cluster
- **Variable Name**: `cluster_config_[OPERATOR_NAME]`
- **Variable Name**: `cluster_config_[OPERATOR_NAME]`
- **Type**: Dict
- **Description**: Configuration specific to each operator listed in `cluster_config_operators`. Includes settings for namespace, operator group, subscription, and any extra resources
- **Example**: Assume the `cluster_config_operators` specifies these operators:
Expand All @@ -71,11 +71,11 @@ The task `operators/operator_config.yaml` needs following variables:
```yaml
cluster_config_cnv_namespace: openshift-cnv
cluster_config_cnv:
namespace:
namespace:
name: "{{ cluster_config_cnv_namespace }}"
operator_group:
name: kubevirt-hyperconverged-group
target_namespaces:
target_namespaces:
- "{{ cluster_config_cnv_namespace }}"
subscription:
name: kubevirt-hyperconverged
Expand All @@ -88,18 +88,18 @@ The task `operators/operator_config.yaml` needs following variables:
namespace: "{{ cluster_config_cnv_namespace }}"
spec:
BareMetalPlatform: true
cluster_config_oadp_namespace: openshift-adp
cluster_config_oadp:
namespace:
namespace:
name: "{{ cluster_config_oadp_namespace }}"
operator_group:
name: redhat-oadp-operator-group
target_namespaces:
target_namespaces:
- "{{ cluster_config_oadp_namespace }}"
subscription:
name: redhat-oadp-operator-subscription
spec_name: redhat-oadp-operator
spec_name: redhat-oadp-operator
```
Dependencies
------------
Expand All @@ -115,7 +115,7 @@ An example of configuring a CatalogSource resource:
hosts: localhost
gather_facts: false
tasks:
- ansible.builtin.include_role:
- ansible.builtin.include_role:
name: cluster_config
tasks_from: operators/catalog_sources
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
priority: {{ item.priority }}
{% endif -%}
{% if item.grpc_pod_config is defined -%}
grpcPodConfig:
grpcPodConfig:
{{ item.grpc_pod_config | indent(4) }}
{% endif -%}
{% if item.icon is defined -%}
Expand All @@ -32,4 +32,3 @@ spec:
registryPoll:
interval: {{ item.registry_poll_interval }}
{% endif -%}

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: Namespace
metadata:
name: {{ _operator.namespace.name }}
{% if _operator.namespace.labels is defined %}
labels:
labels:
{% for key, value in _operator.namespace.labels.items() -%}
{{ key }}: "{{ value }}"
{% endfor -%}
{% endif -%}
{% endif -%}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ spec:
{% for item in _operator.operator_group.target_namespaces %}
- {{ item }}
{% endfor %}
{% endif -%}
{% endif -%}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ spec:
sourceNamespace: {{ _operator.subscription.source_namespace | d('openshift-marketplace', true) }}
{% if _operator.subscription.starting_csv is defined %}
startingCSV: {{ _operator.subscription.starting_csv }}
{% endif -%}
{% endif -%}
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
localhost

0 comments on commit 7352573

Please sign in to comment.