Skip to content

Commit

Permalink
[kots]: add standard labels to KOTS manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Emms committed Mar 10, 2022
1 parent cc2f3b3 commit 2055320
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-certificate-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: https-certificates
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl ConfigOptionEquals "cert_manager_enabled" "0" }}'
type: kubernetes.io/tls
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: https-certificates
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl or (ConfigOptionEquals "tls_self_signed_enabled" "1") (ConfigOptionEquals "cert_manager_enabled" "1") }}'
spec:
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-cloudsql-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: cloudsql
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl and (ConfigOptionEquals "db_incluster" "0") (ConfigOptionEquals "db_cloudsql_enabled" "1") }}'
data:
Expand Down
1 change: 1 addition & 0 deletions install/kots/manifests/gitpod-config-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ metadata:
name: gitpod-config-patch
labels:
app: gitpod
component: gitpod-installer
data:
gitpod-config-patch.yaml: '{{repl if and (ConfigOptionEquals "advanced_mode_enabled" "1") (ConfigOptionNotEquals "config_patch" "") }}{{repl ConfigOption "config_patch" }}{{repl else }}{{repl printf "{}" | Base64Encode }}{{repl end }}'
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-database-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: database
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl and (ConfigOptionEquals "db_incluster" "0") (ConfigOptionEquals "db_cloudsql_enabled" "0") }}'
data:
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-dns-gcp-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: cert-manager-gcp-dns-solver
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl and (ConfigOptionEquals "cert_manager_enabled" "1") (ConfigOptionEquals "cert_manager_provider" "gcp") }}'
data:
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-installation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: gitpod-installation
labels:
app: gitpod
component: gitpod-installer
data:
channelName: '{{repl ChannelName }}'
cursor: '{{repl Cursor }}'
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-issuer-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: gitpod-issuer
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl and (ConfigOptionEquals "cert_manager_enabled" "1") (ConfigOptionEquals "cert_manager_provider" "azure") }}'
spec:
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-issuer-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: gitpod-issuer
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl and (ConfigOptionEquals "cert_manager_enabled" "1") (ConfigOptionEquals "cert_manager_provider" "gcp") }}'
spec:
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: gitpod-license
labels:
app: gitpod
component: gitpod-installer
data:
license: '{{repl LicenseFieldValue "signature" | Base64Encode }}'
type: '{{repl printf "replicated" | Base64Encode }}'
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-registry-s3-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: container-registry-s3-backend
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl and (ConfigOptionEquals "reg_incluster" "0") (ConfigOptionEquals "reg_s3storage" "1") }}'
data:
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-storage-azure-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: storage-azure
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl ConfigOptionEquals "store_provider" "azure" }}'
data:
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-storage-gcp-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: storage-gcp
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl ConfigOptionEquals "store_provider" "gcp" }}'
data:
Expand Down
3 changes: 3 additions & 0 deletions install/kots/manifests/gitpod-storage-s3-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: storage-azure
labels:
app: gitpod
component: gitpod-installer
annotations:
kots.io/when: '{{repl ConfigOptionEquals "store_provider" "s3" }}'
data:
Expand Down

0 comments on commit 2055320

Please sign in to comment.