Compare commits
3 Commits
2b1e66b4d1
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
20b058b221
|
|||
|
5a2926b76f
|
|||
|
0de7c36592
|
@@ -6,9 +6,23 @@ group "default" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
target "docker-metadata-action" {}
|
target "docker-metadata-action" {}
|
||||||
|
target "cache" {
|
||||||
|
cache-from = [
|
||||||
|
{
|
||||||
|
type = "gha",
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
cache-to = [
|
||||||
|
{
|
||||||
|
type = "gha",
|
||||||
|
mode = "max"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
target "lldap-controller" {
|
target "lldap-controller" {
|
||||||
inherits = ["docker-metadata-action"]
|
inherits = ["docker-metadata-action", "cache"]
|
||||||
context = "./"
|
context = "./"
|
||||||
dockerfile = "Dockerfile"
|
dockerfile = "Dockerfile"
|
||||||
tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"]
|
tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"]
|
||||||
@@ -16,6 +30,7 @@ target "lldap-controller" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
target "manifests" {
|
target "manifests" {
|
||||||
|
inherits = ["cache"]
|
||||||
context = "./"
|
context = "./"
|
||||||
dockerfile = "Dockerfile"
|
dockerfile = "Dockerfile"
|
||||||
target = "manifests"
|
target = "manifests"
|
||||||
|
|||||||
@@ -2,9 +2,11 @@ kind: ClusterRoleBinding
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: lldap-controller
|
name: lldap-controller
|
||||||
|
namespace: lldap
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: lldap-controller
|
name: lldap-controller
|
||||||
|
namespace: lldap
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: lldap-controller
|
name: lldap-controller
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ kind: ClusterRole
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: lldap-controller
|
name: lldap-controller
|
||||||
|
namespace: lldap
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- lldap.huizinga.dev
|
- lldap.huizinga.dev
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: lldap-controller
|
name: lldap-controller
|
||||||
|
namespace: lldap
|
||||||
labels:
|
labels:
|
||||||
app: lldap-controller
|
app: lldap-controller
|
||||||
app.kubernetes.io/name: lldap-controller
|
app.kubernetes.io/name: lldap-controller
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: lldap
|
|
||||||
resources:
|
resources:
|
||||||
- ./crds.yaml
|
- namespace.yaml
|
||||||
- ./service-account.yaml
|
- crds.yaml
|
||||||
- ./cluster-role.yaml
|
- service-account.yaml
|
||||||
- ./cluster-role-binding.yaml
|
- cluster-role.yaml
|
||||||
- ./deployment.yaml
|
- cluster-role-binding.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
|||||||
4
manifests/namespace.yaml
Normal file
4
manifests/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: lldap
|
||||||
@@ -2,6 +2,7 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: lldap-controller
|
name: lldap-controller
|
||||||
|
namespace: lldap
|
||||||
labels:
|
labels:
|
||||||
app: lldap-controller
|
app: lldap-controller
|
||||||
app.kubernetes.io/name: lldap-controller
|
app.kubernetes.io/name: lldap-controller
|
||||||
|
|||||||
Reference in New Issue
Block a user