Fix suggested style changes

pull/178/head
HubbeKing 4 years ago
parent 4ca425dd12
commit 9eca34c7a9

@ -50,8 +50,8 @@
// Uncomment and give a secretName for ingress, if required for ingress TLS // Uncomment and give a secretName for ingress, if required for ingress TLS
//ingress_secret_name: "wubloader-tls", //ingress_secret_name: "wubloader-tls",
// Additional metadata labels for Ingress (cert-manager, etc.) - uncomment if needed, adjust as necessary // Additional metadata labels for Ingress (cert-manager, etc.) - adjust as needed for your setup
//ingress_labels: {"cert-manager.io/cluster-issuer": "name-of-issuer"}, ingress_labels: {},
// Connection args for the database. // Connection args for the database.
// If database is defined in this config, host and port should be postgres:5432. // If database is defined in this config, host and port should be postgres:5432.
@ -210,7 +210,7 @@
apiVersion: "networking.k8s.io/v1beta1", apiVersion: "networking.k8s.io/v1beta1",
metadata: { metadata: {
name: "wubloader", name: "wubloader",
labels: {app: "wubloader"} + (if (std.objectHas($.config, "ingress_labels")) then $.config.ingress_labels else {}), labels: {app: "wubloader"} + $.config.ingress_labels,
}, },
spec: { spec: {
rules: [ rules: [
@ -241,12 +241,12 @@
}, },
}, },
], ],
[if ($.config.ingress_tls) then 'tls']: [ [if $.config.ingress_tls then 'tls']: [
{ {
hosts: [ hosts: [
$.config.ingress_host, $.config.ingress_host,
], ],
[if (std.objectHas($.config, "ingress_secret_name")) then 'secretName']: $.config.ingress_secret_name, [if "ingress_secret_name" in $.config then 'secretName']: $.config.ingress_secret_name,
}, },
], ],
}, },

Loading…
Cancel
Save