mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-09-11 07:25:47 +03:00
Update top-level README and examples (#164)
Currently CI does not enforce that they stay in sync with the `1.17/` package, so I had to explicitly run the `generate.sh` script to update them. I will follow up with another change to automate this check.
This commit is contained in:
parent
2b6210de20
commit
058e24fb5f
10
README.md
10
README.md
@ -53,7 +53,7 @@ In the following example, we:
|
||||
-- examples/deploymentSimple.dhall
|
||||
|
||||
let kubernetes =
|
||||
https://raw.githubusercontent.com/dhall-lang/dhall-kubernetes/master/package.dhall sha256:3ae2db78413714b7f7c5b2b3d92c78599a2be8e5371f567593eb0b3170c57656
|
||||
https://raw.githubusercontent.com/dhall-lang/dhall-kubernetes/master/package.dhall sha256:532e110f424ea8a9f960a13b2ca54779ddcac5d5aa531f86d82f41f8f18d7ef1
|
||||
|
||||
let deployment =
|
||||
kubernetes.Deployment::{
|
||||
@ -62,7 +62,7 @@ let deployment =
|
||||
, selector = kubernetes.LabelSelector::{
|
||||
, matchLabels = Some (toMap { name = "nginx" })
|
||||
}
|
||||
, replicas = Some 2
|
||||
, replicas = Some +2
|
||||
, template = kubernetes.PodTemplateSpec::{
|
||||
, metadata = Some kubernetes.ObjectMeta::{ name = Some "nginx" }
|
||||
, spec = Some kubernetes.PodSpec::{
|
||||
@ -71,7 +71,7 @@ let deployment =
|
||||
, name = "nginx"
|
||||
, image = Some "nginx:1.15.3"
|
||||
, ports = Some
|
||||
[ kubernetes.ContainerPort::{ containerPort = 80 } ]
|
||||
[ kubernetes.ContainerPort::{ containerPort = +80 } ]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -148,7 +148,7 @@ let Prelude =
|
||||
let map = Prelude.List.map
|
||||
|
||||
let kubernetes =
|
||||
https://raw.githubusercontent.com/dhall-lang/dhall-kubernetes/master/package.dhall sha256:3ae2db78413714b7f7c5b2b3d92c78599a2be8e5371f567593eb0b3170c57656
|
||||
https://raw.githubusercontent.com/dhall-lang/dhall-kubernetes/master/package.dhall sha256:532e110f424ea8a9f960a13b2ca54779ddcac5d5aa531f86d82f41f8f18d7ef1
|
||||
|
||||
let Service = { name : Text, host : Text, version : Text }
|
||||
|
||||
@ -169,7 +169,7 @@ let makeRule
|
||||
{ paths =
|
||||
[ { backend =
|
||||
{ serviceName = service.name
|
||||
, servicePort = kubernetes.IntOrString.Int 80
|
||||
, servicePort = kubernetes.IntOrString.Int +80
|
||||
}
|
||||
, path = None Text
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
let kubernetes =
|
||||
../package.dhall sha256:3ae2db78413714b7f7c5b2b3d92c78599a2be8e5371f567593eb0b3170c57656
|
||||
../package.dhall sha256:532e110f424ea8a9f960a13b2ca54779ddcac5d5aa531f86d82f41f8f18d7ef1
|
||||
|
||||
let release = "wintering-rodent"
|
||||
|
||||
|
@ -2,7 +2,7 @@ let Prelude =
|
||||
../Prelude.dhall sha256:10db3c919c25e9046833df897a8ffe2701dc390fa0893d958c3430524be5a43e
|
||||
|
||||
let kubernetes =
|
||||
../package.dhall sha256:7989d5b6cc77b1a453e5f4aa62c1b18a1ae019161e27e3c3061e70ff514a4f9f
|
||||
../package.dhall sha256:532e110f424ea8a9f960a13b2ca54779ddcac5d5aa531f86d82f41f8f18d7ef1
|
||||
|
||||
let deployment =
|
||||
kubernetes.Deployment::{
|
||||
|
@ -1,5 +1,5 @@
|
||||
let kubernetes =
|
||||
../package.dhall sha256:3ae2db78413714b7f7c5b2b3d92c78599a2be8e5371f567593eb0b3170c57656
|
||||
../package.dhall sha256:532e110f424ea8a9f960a13b2ca54779ddcac5d5aa531f86d82f41f8f18d7ef1
|
||||
|
||||
let deployment =
|
||||
kubernetes.Deployment::{
|
||||
|
@ -4,7 +4,7 @@ let Prelude =
|
||||
let map = Prelude.List.map
|
||||
|
||||
let kubernetes =
|
||||
../package.dhall sha256:7989d5b6cc77b1a453e5f4aa62c1b18a1ae019161e27e3c3061e70ff514a4f9f
|
||||
../package.dhall sha256:532e110f424ea8a9f960a13b2ca54779ddcac5d5aa531f86d82f41f8f18d7ef1
|
||||
|
||||
let Service = { name : Text, host : Text, version : Text }
|
||||
|
||||
|
@ -2,7 +2,7 @@ let Prelude =
|
||||
../Prelude.dhall sha256:10db3c919c25e9046833df897a8ffe2701dc390fa0893d958c3430524be5a43e
|
||||
|
||||
let kubernetes =
|
||||
../package.dhall sha256:7989d5b6cc77b1a453e5f4aa62c1b18a1ae019161e27e3c3061e70ff514a4f9f
|
||||
../package.dhall sha256:532e110f424ea8a9f960a13b2ca54779ddcac5d5aa531f86d82f41f8f18d7ef1
|
||||
|
||||
let spec =
|
||||
{ selector = Some (toMap { app = "nginx" })
|
||||
|
Loading…
Reference in New Issue
Block a user