Compare commits

..

5 Commits

Author SHA1 Message Date
2496b12a7c feat: Add security context
All checks were successful
Build and deploy / build (push) Successful in 11m49s
2025-12-22 01:16:24 +01:00
3c387ca803 fix: Outdated glibc 2025-12-22 01:15:50 +01:00
dba119951b chore: Renamed credentials secret in deployment 2025-12-22 01:15:50 +01:00
8072de7c4b feat: Update to new workflow 2025-12-21 22:22:26 +01:00
72bb27aae0 chore: Update dependencies 2025-12-21 06:19:04 +01:00
9 changed files with 10 additions and 33 deletions

View File

@@ -10,6 +10,7 @@ on:
jobs:
build:
uses: infra/workflows/.gitea/workflows/docker.yaml@956337b9bd5e72a93d3a57513cd421e7554dd61d
secrets: inherit
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}

View File

@@ -1,7 +1,7 @@
FROM rust:1.92 AS base
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN cargo install cargo-chef --locked --version 0.1.73 && \
cargo install cargo-auditable --locked --version 0.7.2
RUN cargo install cargo-chef --locked --version 0.1.71 && \
cargo install cargo-auditable --locked --version 0.6.6
WORKDIR /app
FROM base AS planner

View File

@@ -6,23 +6,9 @@ group "default" {
}
target "docker-metadata-action" {}
target "cache" {
cache-from = [
{
type = "gha",
}
]
cache-to = [
{
type = "gha",
mode = "max"
}
]
}
target "lldap-controller" {
inherits = ["docker-metadata-action", "cache"]
inherits = ["docker-metadata-action"]
context = "./"
dockerfile = "Dockerfile"
tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"]
@@ -30,7 +16,6 @@ target "lldap-controller" {
}
target "manifests" {
inherits = ["cache"]
context = "./"
dockerfile = "Dockerfile"
target = "manifests"

View File

@@ -2,11 +2,9 @@ kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: lldap-controller
namespace: lldap
subjects:
- kind: ServiceAccount
name: lldap-controller
namespace: lldap
roleRef:
kind: ClusterRole
name: lldap-controller

View File

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

View File

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

View File

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

View File

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

View File

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