Skip to content

Commit

Permalink
Added kustomization file
Browse files Browse the repository at this point in the history
  • Loading branch information
sleipnir committed Dec 16, 2023
1 parent 8c5666c commit f52d034
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .k8s/install/manifests/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- serviceaccount.yaml
- clusterrole.yaml
- clusterrolebinding.yaml
- flamepool.crd.yaml
- flamerunner.crd.yaml
- service.yaml
- deployment.yaml
- mutatingwebhookconfiguration.yaml
- flamepool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ defmodule Mix.Tasks.Flame.Gen.Manifest do
Operator.cluster_role(operators),
Operator.service_account(namespace),
Operator.cluster_role_binding(namespace),
default_flame_pool(namespace)
default_flame_pool(namespace),
kustomize(namespace)
]
end

Expand Down Expand Up @@ -249,4 +250,23 @@ defmodule Mix.Tasks.Flame.Gen.Manifest do
memory: 128Mi
"""
end

@spec kustomize(namespace :: binary()) :: map()
defp kustomize(_namespace) do
~y"""
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- serviceaccount.yaml
- clusterrole.yaml
- clusterrolebinding.yaml
- flamepool.crd.yaml
- flamerunner.crd.yaml
- service.yaml
- deployment.yaml
- mutatingwebhookconfiguration.yaml
- flamepool.yaml
"""
end
end

0 comments on commit f52d034

Please sign in to comment.