feat: Create namespace and set it explicitly
Some checks failed
Build and deploy / build (push) Has been cancelled

This commit is contained in:
2025-12-23 00:48:44 +01:00
parent 0078ae6100
commit 766a487962
6 changed files with 9 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: lldap-controller
namespace: lldap
subjects:
- kind: ServiceAccount
name: lldap-controller

View File

@@ -2,6 +2,7 @@ kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: lldap-controller
namespace: lldap
rules:
- apiGroups:
- lldap.huizinga.dev

View File

@@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: lldap-controller
namespace: lldap
labels:
app: lldap-controller
app.kubernetes.io/name: lldap-controller

View File

@@ -1,7 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: lldap
resources:
- ./namespace.yaml
- ./crds.yaml
- ./service-account.yaml
- ./cluster-role.yaml

4
manifests/namespace.yaml Normal file
View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: lldap

View File

@@ -2,6 +2,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: lldap-controller
namespace: lldap
labels:
app: lldap-controller
app.kubernetes.io/name: lldap-controller