Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator lbconfig-operator (0.4.1) #3605

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
control-plane: controller-manager
name: lbconfig-operator-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: d8d64ee1.lbconfig.carlosedp.com
kind: ConfigMap
metadata:
name: lbconfig-operator-manager-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: lbconfig-operator-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions operators/lbconfig-operator/0.4.1/metadata/annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
annotations:
# Core bundle annotations.
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
operators.operatorframework.io.bundle.manifests.v1: manifests/
operators.operatorframework.io.bundle.metadata.v1: metadata/
operators.operatorframework.io.bundle.package.v1: lbconfig-operator
operators.operatorframework.io.bundle.channels.v1: beta
operators.operatorframework.io.bundle.channel.default.v1: beta
operators.operatorframework.io.metrics.builder: operator-sdk-v1.32.0
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3

# Annotations for testing.
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
operators.operatorframework.io.test.config.v1: tests/scorecard/
77 changes: 77 additions & 0 deletions operators/lbconfig-operator/0.4.1/tests/scorecard/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
apiVersion: scorecard.operatorframework.io/v1alpha3
kind: Configuration
metadata:
name: config
stages:
- parallel: true
tests:
- entrypoint:
- scorecard-test
- basic-check-spec
image: quay.io/operator-framework/scorecard-test:v1.22.2
labels:
suite: basic
test: basic-check-spec-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-bundle-validation
image: quay.io/operator-framework/scorecard-test:v1.22.2
labels:
suite: olm
test: olm-bundle-validation-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-crds-have-validation
image: quay.io/operator-framework/scorecard-test:v1.22.2
labels:
suite: olm
test: olm-crds-have-validation-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-crds-have-resources
image: quay.io/operator-framework/scorecard-test:v1.22.2
labels:
suite: olm
test: olm-crds-have-resources-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-spec-descriptors
image: quay.io/operator-framework/scorecard-test:v1.22.2
labels:
suite: olm
test: olm-spec-descriptors-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-status-descriptors
image: quay.io/operator-framework/scorecard-test:v1.22.2
labels:
suite: olm
test: olm-status-descriptors-test
storage:
spec:
mountPath: {}
- image: quay.io/operator-framework/scorecard-test-kuttl:v2.0.0
labels:
suite: kuttlsuite
test: kuttltest1
storage:
spec:
mountPath: {}
storage:
spec:
mountPath: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
data:
password: YWRtaW4=
username: YWRtaW4=
kind: Secret
metadata:
name: dummy-creds
namespace: lbconfig-operator-system
type: Opaque
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: lb.lbconfig.carlosedp.com/v1
kind: ExternalLoadBalancer
metadata:
name: externalloadbalancer-master-dummy-test
namespace: lbconfig-operator-system
spec:
vip: "10.0.0.10"
nodelabels:
"node-role.kubernetes.io/control-plane": ""
ports:
- 6443
monitor:
path: "/healthz"
port: 6443
monitortype: "https"
provider:
vendor: Dummy
host: "https://10.0.0.1"
port: 443
creds: dummy-creds
validatecerts: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: lb.lbconfig.carlosedp.com/v1
kind: ExternalLoadBalancer
metadata:
name: externalloadbalancer-master-dummy-test
namespace: lbconfig-operator-system
status:
labels:
node-role.kubernetes.io/control-plane: ""
monitor:
monitortype: https
name: Monitor-externalloadbalancer-master-dummy-test
path: /healthz
port: 6443
nodes:
- 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
ports:
- 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kudo.dev/v1beta1
kind: TestSuite
parallel: 1
timeout: 240
startControlPlane: false
Loading