-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitlab.tf
32 lines (26 loc) · 968 Bytes
/
gitlab.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
locals {
gitlab_operatorgroup = file("${path.module}/manifests/gitlab/gitlab-operatorgroup.yaml")
gitlab_subscription = file("${path.module}/manifests/gitlab/gitlab-subscription.yaml")
}
resource "kubernetes_namespace" "gitlab" {
metadata {
name = "gitlab"
}
lifecycle {
ignore_changes = [
metadata.0.annotations["openshift.io/sa.scc.mcs"],
metadata.0.annotations["openshift.io/sa.scc.supplemental-groups"],
metadata.0.annotations["openshift.io/sa.scc.uid-range"],
metadata.0.labels
]
}
}
resource "kubernetes_manifest" "gitlab_subscription" {
depends_on = [ resource.kubernetes_namespace.gitlab ]
manifest = provider::kubernetes::manifest_decode(local.gitlab_subscription)
}
# Subscription resource
resource "kubernetes_manifest" "gitlab_operatorgroup" {
depends_on = [ resource.kubernetes_namespace.gitlab ]
manifest = provider::kubernetes::manifest_decode(local.gitlab_operatorgroup)
}