Skip to content

Commit

Permalink
Lint yaml files to be accepted on prod operatorhub
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosedp committed Sep 13, 2024
1 parent fac21b5 commit b2a3385
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ metadata:
categories: Networking
certified: "false"
containerImage: quay.io/carlosedp/lbconfig-operator:v0.5.0
createdAt: "2024-09-13T20:01:51Z"
createdAt: "2024-09-13T20:45:41Z"
description: The LBConfig Operator, manages the configuration of External Load
Balancer instances (on third-party equipment) and creates VIPs and IP Pools
dynamically via API.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
data:
password: YWRtaW4=
Expand All @@ -6,4 +7,4 @@ kind: Secret
metadata:
name: dummy-creds
namespace: lbconfig-operator-system
type: Opaque
type: Opaque
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: lb.lbconfig.carlosedp.com/v1
kind: ExternalLoadBalancer
metadata:
Expand All @@ -18,4 +19,4 @@ spec:
host: "https://10.0.0.1"
port: 443
creds: dummy-creds
validatecerts: false
validatecerts: false
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: lb.lbconfig.carlosedp.com/v1
kind: ExternalLoadBalancer
metadata:
Expand All @@ -12,31 +13,31 @@ status:
path: /healthz
port: 6443
nodes:
- host: 172.26.0.2
label:
node-role.kubernetes.io/control-plane: ""
name: test-operator-control-plane
- host: 172.26.0.2
label:
node-role.kubernetes.io/control-plane: ""
name: test-operator-control-plane
numnodes: 1
pools:
- members:
- node:
host: 172.26.0.2
label:
node-role.kubernetes.io/control-plane: ""
name: test-operator-control-plane
port: 6443
monitor: Monitor-externalloadbalancer-master-dummy-test
name: Pool-externalloadbalancer-master-dummy-test-6443
- members:
- node:
host: 172.26.0.2
label:
node-role.kubernetes.io/control-plane: ""
name: test-operator-control-plane
port: 6443
monitor: Monitor-externalloadbalancer-master-dummy-test
name: Pool-externalloadbalancer-master-dummy-test-6443
ports:
- 6443
- 6443
provider:
creds: dummy-creds
host: https://10.0.0.1
port: 443
validatecerts: false
vendor: Dummy
vips:
- ip: 10.0.0.10
name: VIP-externalloadbalancer-master-dummy-test-6443
pool: Pool-externalloadbalancer-master-dummy-test-6443
port: 6443
- ip: 10.0.0.10
name: VIP-externalloadbalancer-master-dummy-test-6443
pool: Pool-externalloadbalancer-master-dummy-test-6443
port: 6443
1 change: 1 addition & 0 deletions bundle/tests/scorecard/kuttl/kuttl-test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: kudo.dev/v1beta1
kind: TestSuite
parallel: 1
Expand Down
21 changes: 11 additions & 10 deletions config/default/manager_config_patch.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -7,14 +8,14 @@ spec:
template:
spec:
containers:
- name: manager
args:
- "--config=controller_manager_config.yaml"
volumeMounts:
- name: manager-config
mountPath: /controller_manager_config.yaml
subPath: controller_manager_config.yaml
- name: manager
args:
- "--config=controller_manager_config.yaml"
volumeMounts:
- name: manager-config
mountPath: /controller_manager_config.yaml
subPath: controller_manager_config.yaml
volumes:
- name: manager-config
configMap:
name: manager-config
- name: manager-config
configMap:
name: manager-config
3 changes: 2 additions & 1 deletion config/kuttl/create-externalloadbalancer/01-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
data:
password: YWRtaW4=
Expand All @@ -6,4 +7,4 @@ kind: Secret
metadata:
name: dummy-creds
namespace: lbconfig-operator-system
type: Opaque
type: Opaque
3 changes: 2 additions & 1 deletion config/kuttl/create-externalloadbalancer/10-create-elb.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: lb.lbconfig.carlosedp.com/v1
kind: ExternalLoadBalancer
metadata:
Expand All @@ -18,4 +19,4 @@ spec:
host: "https://10.0.0.1"
port: 443
creds: dummy-creds
validatecerts: false
validatecerts: false
37 changes: 19 additions & 18 deletions config/kuttl/create-externalloadbalancer/11-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: lb.lbconfig.carlosedp.com/v1
kind: ExternalLoadBalancer
metadata:
Expand All @@ -12,31 +13,31 @@ status:
path: /healthz
port: 6443
nodes:
- host: 172.26.0.2
label:
node-role.kubernetes.io/control-plane: ""
name: test-operator-control-plane
- host: 172.26.0.2
label:
node-role.kubernetes.io/control-plane: ""
name: test-operator-control-plane
numnodes: 1
pools:
- members:
- node:
host: 172.26.0.2
label:
node-role.kubernetes.io/control-plane: ""
name: test-operator-control-plane
port: 6443
monitor: Monitor-externalloadbalancer-master-dummy-test
name: Pool-externalloadbalancer-master-dummy-test-6443
- members:
- node:
host: 172.26.0.2
label:
node-role.kubernetes.io/control-plane: ""
name: test-operator-control-plane
port: 6443
monitor: Monitor-externalloadbalancer-master-dummy-test
name: Pool-externalloadbalancer-master-dummy-test-6443
ports:
- 6443
- 6443
provider:
creds: dummy-creds
host: https://10.0.0.1
port: 443
validatecerts: false
vendor: Dummy
vips:
- ip: 10.0.0.10
name: VIP-externalloadbalancer-master-dummy-test-6443
pool: Pool-externalloadbalancer-master-dummy-test-6443
port: 6443
- ip: 10.0.0.10
name: VIP-externalloadbalancer-master-dummy-test-6443
pool: Pool-externalloadbalancer-master-dummy-test-6443
port: 6443
1 change: 1 addition & 0 deletions config/kuttl/kuttl-test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: kudo.dev/v1beta1
kind: TestSuite
parallel: 1
Expand Down
1 change: 1 addition & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
Expand Down
5 changes: 3 additions & 2 deletions config/scorecard/bases/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
apiVersion: scorecard.operatorframework.io/v1alpha3
kind: Configuration
metadata:
name: config
stages:
- parallel: true
tests: []
- parallel: true
tests: []

0 comments on commit b2a3385

Please sign in to comment.