Fix yamllint errors, use SubM-standard config

Use similar yamllint configuration as other Submariner repos.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
This commit is contained in:
Daniel Farrell
2022-03-15 10:13:58 -04:00
committed by Thomas Pantelis
parent 295890d3b5
commit f151c3f3dc
7 changed files with 174 additions and 171 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ on:
- reopened - reopened
- synchronize - synchronize
schedule: schedule:
- cron: '0 0/6 * * *' # every 6 hours - cron: '0 0/6 * * *' # every 6 hours
jobs: jobs:
check: check:
-1
View File
@@ -107,6 +107,5 @@ jobs:
- name: Run yamllint - name: Run yamllint
uses: ibiqlik/action-yamllint@ed2b6e911569708ed121c14b87d513860a7e36a7 uses: ibiqlik/action-yamllint@ed2b6e911569708ed121c14b87d513860a7e36a7
with: with:
file_or_dir: submariner-k8s-broker/Chart.yaml submariner-k8s-broker/values.yaml submariner-operator/Chart.yaml submariner-operator/values.yaml
config_file: .yamllint.yml config_file: .yamllint.yml
strict: true strict: true
+1
View File
@@ -1,3 +1,4 @@
---
label-approved: label-approved:
approvals: 2 approvals: 2
label: ready-to-test label: ready-to-test
+11 -11
View File
@@ -1,15 +1,15 @@
--- ---
extends: default extends: default
rules: rules:
comments: disable
comments-indentation: disable
line-length: line-length:
max: 150 max: 140
braces: # Allow standard GHA syntax for "on: *"
min-spaces-inside: 0 truthy:
max-spaces-inside: 0 ignore: '.github/workflows/*.yml'
brackets:
min-spaces-inside: 0 ignore: |
max-spaces-inside: 0 /submariner-k8s-broker/crds
indentation: /submariner-operator/crds
indent-sequences: consistent /submariner-k8s-broker/templates
/submariner-operator/templates
+1
View File
@@ -1,3 +1,4 @@
---
charts: charts:
- submariner-operator - submariner-operator
- submariner-k8s-broker - submariner-k8s-broker
+19 -18
View File
@@ -1,19 +1,20 @@
---
questions: questions:
- variable: submariner-k8s-broker.rbac.create - variable: submariner-k8s-broker.rbac.create
type: boolean type: boolean
default: true default: true
group: "Role Based Access Control" group: "Role Based Access Control"
description: "Create the role/rolebinding for the Submariner client" description: "Create the role/rolebinding for the Submariner client"
label: "RBAC Creation Enabled" label: "RBAC Creation Enabled"
- variable: submariner-k8s-broker.crd.create - variable: submariner-k8s-broker.crd.create
type: boolean type: boolean
default: true default: true
group: "Submariner CRD" group: "Submariner CRD"
description: "Create the submariner CRDs for the Submariner client" description: "Create the submariner CRDs for the Submariner client"
label: "Submariner CRD Creation Enabled" label: "Submariner CRD Creation Enabled"
- variable: submariner-k8s-broker.serviceAccounts.client.create - variable: submariner-k8s-broker.serviceAccounts.client.create
type: boolean type: boolean
default: true default: true
group: "Service Account" group: "Service Account"
description: "Create the service account for the Submariner client" description: "Create the service account for the Submariner client"
label: "Submariner Service Account Creation Enabled" label: "Submariner Service Account Creation Enabled"
+141 -140
View File
@@ -1,144 +1,145 @@
---
questions: questions:
- variable: defaultOperatorImage - variable: defaultOperatorImage
default: true default: true
description: "Use default Submariner operator image or specify a custom one" description: "Use default Submariner operator image or specify a custom one"
label: Use default Submariner operator image label: Use default Submariner operator image
type: boolean type: boolean
show_subquestion_if: false show_subquestion_if: false
group: "Container Images" group: "Container Images"
subquestions: subquestions:
- variable: operator.image.repository - variable: operator.image.repository
default: "quay.io/submariner/submariner-operator" default: "quay.io/submariner/submariner-operator"
description: "Submariner Operator Image Repository" description: "Submariner Operator Image Repository"
type: string type: string
label: Submariner Operator Image Repository label: Submariner Operator Image Repository
- variable: operator.image.tag - variable: operator.image.tag
default: "0.10.1" default: "0.10.1"
description: "Submariner Operator Image Tag" description: "Submariner Operator Image Tag"
type: string type: string
label: Submariner Operator Image Tag label: Submariner Operator Image Tag
- variable: defaultSubmarinerImages - variable: defaultSubmarinerImages
default: true default: true
description: "Use default Submariner images or specify custom ones" description: "Use default Submariner images or specify custom ones"
label: Use default Submariner images label: Use default Submariner images
type: boolean type: boolean
show_subquestion_if: false show_subquestion_if: false
group: "Container images" group: "Container images"
subquestions: subquestions:
- variable: submariner.images.repository - variable: submariner.images.repository
default: "quay.io/submariner" default: "quay.io/submariner"
description: "Submariner Repository (base for all non-operator images)" description: "Submariner Repository (base for all non-operator images)"
type: string type: string
label: Submariner Repository label: Submariner Repository
- variable: submariner.images.tag - variable: submariner.images.tag
default: "0.10.1" default: "0.10.1"
description: "Submariner Images Tag (shared for all non-operator images)" description: "Submariner Images Tag (shared for all non-operator images)"
type: string type: string
label: Submariner Images Tag label: Submariner Images Tag
- variable: submariner.clusterId - variable: submariner.clusterId
default: ""
description: "Enter a unique cluster ID to identify this cluster"
type: string
label: "Cluster ID"
group: "Configuration"
required: true
- variable: ipsec.psk
default: ""
description: "Enter the pre-shared key for the IPsec Cable Engine"
type: string
label: "IPsec Pre-Shared Key"
group: "Configuration"
required: true
- variable: broker.server
type: string
default: ""
group: "Broker Configuration"
label: "Broker Server"
description: "Broker server to use (without the https://)"
- variable: broker.insecure
type: boolean
default: false
show_subquestion_if: false
group: "Broker Configuration"
label: "Insecure Broker"
description: "Connect to K8s broker without validating CA"
subquestions:
- variable: broker.ca
type: string
description: "Base64 encoded broker ca.crt"
label: "Broker CA encoded in base64"
default: "" default: ""
- variable: broker.token description: "Enter a unique cluster ID to identify this cluster"
type: string
group: "Broker Configuration"
label: "Broker Token"
description: "Bearer token for broker"
- variable: broker.namespace
type: string
group: "Broker Configuration"
label: "Broker Namespace"
description: "Enter namespace to use on central broker"
- variable: submariner.clusterCidr
default: ""
description: "Enter the cluster CIDR (i.e. 10.42.0.0/16) for this cluster"
type: string
label: "Cluster CIDR"
group: "CIDR Configuration"
required: true
- variable: submariner.serviceCidr
default: ""
description: "Enter the service CIDR (i.e. 10.43.0.0/16) for this cluster"
type: string
label: "Service CIDR"
group: "CIDR Configuration"
required: true
- variable: submariner.serviceDiscovery
type: boolean
default: false
group: "Advanced Configuration"
description: "Enable multicluster service discovery"
label: "Service Discovery Enabled"
- variable: broker.globalnet
type: boolean
default: false
group: "Broker Configuration"
description: "Enable support for overlapping Cluster/Service CIDRs in connecting clusters"
label: "Globalnet Enabled"
subquestions:
- variable: submariner.globalCidr
default: ""
description: "Enter the globalnet CIDR (i.e. 169.254.1.0/24) for this cluster if using globalnet"
type: string type: string
label: "Globalnet CIDR" label: "Cluster ID"
group: "Configuration"
required: true
- variable: ipsec.psk
default: ""
description: "Enter the pre-shared key for the IPsec Cable Engine"
type: string
label: "IPsec Pre-Shared Key"
group: "Configuration"
required: true
- variable: broker.server
type: string
default: ""
group: "Broker Configuration"
label: "Broker Server"
description: "Broker server to use (without the https://)"
- variable: broker.insecure
type: boolean
default: false
show_subquestion_if: false
group: "Broker Configuration"
label: "Insecure Broker"
description: "Connect to K8s broker without validating CA"
subquestions:
- variable: broker.ca
type: string
description: "Base64 encoded broker ca.crt"
label: "Broker CA encoded in base64"
default: ""
- variable: broker.token
type: string
group: "Broker Configuration"
label: "Broker Token"
description: "Bearer token for broker"
- variable: broker.namespace
type: string
group: "Broker Configuration"
label: "Broker Namespace"
description: "Enter namespace to use on central broker"
- variable: submariner.clusterCidr
default: ""
description: "Enter the cluster CIDR (i.e. 10.42.0.0/16) for this cluster"
type: string
label: "Cluster CIDR"
group: "CIDR Configuration" group: "CIDR Configuration"
required: false required: true
- variable: submariner.natEnabled - variable: submariner.serviceCidr
type: boolean default: ""
default: false description: "Enter the service CIDR (i.e. 10.43.0.0/16) for this cluster"
group: "Advanced Configuration" type: string
description: "If the gateway nodes for this cluster are behind 1:1 NAT, you should enable NAT" label: "Service CIDR"
label: "NAT Enabled" group: "CIDR Configuration"
- variable: submariner.debug required: true
type: boolean - variable: submariner.serviceDiscovery
default: false type: boolean
group: "Advanced Configuration" default: false
description: "Enable submariner debug mode" group: "Advanced Configuration"
label: "Submariner Debug Enabled" description: "Enable multicluster service discovery"
- variable: ipsec.debug label: "Service Discovery Enabled"
type: boolean - variable: broker.globalnet
default: false type: boolean
group: "Advanced Configuration" default: false
description: "Enable Charon debug mode" group: "Broker Configuration"
label: "Charon Enabled" description: "Enable support for overlapping Cluster/Service CIDRs in connecting clusters"
- variable: submariner.cableDriver label: "Globalnet Enabled"
type: string subquestions:
default: "" - variable: submariner.globalCidr
group: "Advanced Configuration" default: ""
description: "Cable driver implementation" description: "Enter the globalnet CIDR (i.e. 169.254.1.0/24) for this cluster if using globalnet"
label: "Cable Driver" type: string
- variable: submariner.healthcheckEnabled label: "Globalnet CIDR"
type: boolean group: "CIDR Configuration"
default: true required: false
group: "Advanced Configuration" - variable: submariner.natEnabled
description: "Disable Healthcheck" type: boolean
label: "Healthcheck Disabled" default: false
group: "Advanced Configuration"
description: "If the gateway nodes for this cluster are behind 1:1 NAT, you should enable NAT"
label: "NAT Enabled"
- variable: submariner.debug
type: boolean
default: false
group: "Advanced Configuration"
description: "Enable submariner debug mode"
label: "Submariner Debug Enabled"
- variable: ipsec.debug
type: boolean
default: false
group: "Advanced Configuration"
description: "Enable Charon debug mode"
label: "Charon Enabled"
- variable: submariner.cableDriver
type: string
default: ""
group: "Advanced Configuration"
description: "Cable driver implementation"
label: "Cable Driver"
- variable: submariner.healthcheckEnabled
type: boolean
default: true
group: "Advanced Configuration"
description: "Disable Healthcheck"
label: "Healthcheck Disabled"