File tree Expand file tree Collapse file tree 5 files changed +28
-13
lines changed Expand file tree Collapse file tree 5 files changed +28
-13
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : networking.k8s.io/v1
2
2
kind : Ingress
3
3
metadata :
4
- name : argocd-server-ingress
4
+ name : argocd
5
5
namespace : argocd
6
6
annotations :
7
7
cert-manager.io/cluster-issuer : letsencrypt-production
@@ -12,7 +12,6 @@ metadata:
12
12
nginx.ingress.kubernetes.io/auth-tls-pass-certificate-to-upstream : " true"
13
13
nginx.ingress.kubernetes.io/auth-tls-verify-client : " on"
14
14
nginx.ingress.kubernetes.io/auth-tls-verify-depth : " 1"
15
-
16
15
# FIXME: part of declarative secret management
17
16
nginx.ingress.kubernetes.io/auth-tls-secret : default/ca-secret
18
17
spec :
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Namespace
3
+ metadata :
4
+ name : ingress
Original file line number Diff line number Diff line change 1
- apiVersion : v1
2
- kind : Namespace
3
- metadata :
4
- name : ingress
5
- ---
6
1
apiVersion : argoproj.io/v1alpha1
7
2
kind : Application
8
3
metadata :
Original file line number Diff line number Diff line change 72
72
} ;
73
73
in
74
74
{
75
- options . jix . argocd . targetRevision = lib . mkOption {
76
- type = lib . types . str ;
75
+ options . jix . argocd = {
76
+ targetRevision = lib . mkOption {
77
+ type = lib . types . str ;
78
+ } ;
79
+
80
+ sources = lib . mkOption {
81
+ type = with lib . types ; listOf str ;
82
+ } ;
77
83
} ;
78
84
79
85
config . services . kubernetes . addonManager = {
101
107
spec = {
102
108
project = appsProject . metadata . name ;
103
109
104
- source = {
110
+ sources = map ( path : {
105
111
inherit ( config . jix . argocd ) targetRevision ;
106
112
repoURL = "https://github.com/ttrssreal/jix" ;
107
- path = "k8s" ;
113
+ inherit path ;
108
114
directory . recurse = true ;
109
- } ;
115
+ } ) config . jix . argocd . sources ;
110
116
111
117
destination = {
112
118
server = "https://kubernetes.default.svc" ;
Original file line number Diff line number Diff line change 10
10
./argocd
11
11
] ;
12
12
13
- jix . argocd . targetRevision = "73c33e78b938258628355c2d01547ab3d6572934" ;
13
+ jix . argocd = {
14
+ targetRevision = "73c33e78b938258628355c2d01547ab3d6572934" ;
15
+
16
+ sources = [
17
+ "k8s/argocd-server"
18
+ "k8s/cert-manager"
19
+ "k8s/github-runners"
20
+ "k8s/ingress"
21
+ "k8s/k8s-dashboard"
22
+ ] ;
23
+ } ;
24
+
14
25
networking . firewall . enable = false ;
15
26
16
27
services = {
You can’t perform that action at this time.
0 commit comments