chore(work): testing rabbitmq operator deployment

RabbitMQ has two operators. Their docs claim you have to install the first,
spin up a cluster, _then_ add the other operator. I'm testing installing both
operators at once.
This commit is contained in:
David Landry 2024-09-12 13:11:33 -04:00
parent ef7e4fb7d1
commit b96a568c4d
8 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: rabbitmq-system
resources:
- ../upstream/cluster-operator
- ../upstream/message-topology-operator
- namespace.yaml

View file

@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
app.kubernetes.io/component: rabbitmq-operator
app.kubernetes.io/name: rabbitmq-system
app.kubernetes.io/part-of: rabbitmq
name: rabbitmq-system

View file

@ -0,0 +1,11 @@
{
"appName": "rabbitmq-cluster",
"userGivenName": "rabbitmq-cluster",
"destNamespace": "rabbitmq-system",
"destServer": "https://kubernetes.default.svc",
"srcPath": "apps/rabbitmq-cluster/overlays/work",
"srcRepoURL": "ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View file

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base

View file

@ -0,0 +1,14 @@
# Both upstream operators define the namespace 'rabbitmq-system'. We need to
# remove one of those resources to avoid problems.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: rabbitmq-system # This is the NS that the upstream manifest creates
resources:
- https://github.com/rabbitmq/cluster-operator/config/installation?ref=v2.10.0
images:
- name: rabbitmqoperator/cluster-operator
newTag: 2.10.0
patches:
- path: ns.delete.yaml

View file

@ -0,0 +1,5 @@
$patch: delete
apiVersion: v1
kind: Namespace
metadata:
name: rabbitmq-system

View file

@ -0,0 +1,14 @@
# Both upstream operators define the namespace
# 'rabbitmq-system'. To avoid issues, we're removing the
# namespace from the upstream, then readding it downstream.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/rabbitmq/messaging-topology-operator/config/installation/cert-manager?ref=v1.14.2
images:
- name: rabbitmqoperator/messaging-topology-operator
newTag: 1.14.2
patches:
- path: ns.delete.yaml

View file

@ -0,0 +1,5 @@
$patch: delete
apiVersion: v1
kind: Namespace
metadata:
name: rabbitmq-system