Skip to content

Commit 10e97c2

Browse files
committed
defered wg.wait()
1 parent 41073df commit 10e97c2

File tree

3 files changed

+32
-35
lines changed

3 files changed

+32
-35
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# metaGraf
2+
3+
metaGraf is a opinionated specification for describing a software
4+
component and what its requirements from the runtime environment are.
5+
The *mg*, the command, turns metaGraf specifications into Kubernetes
6+
resources, supporting CI, CD and GitOps software delivery.
7+
8+
The specification takes inspiration from the <a href="https://12factor.net">twelve-factor app</a>
9+
methodology.
10+
11+
12+
13+
## Status
14+
15+
The model is maturing but should still be considered a work in progress. It is getting heavy
16+
usage internally (Norsk Tipping AS) in our CI, CD and GitOps . It is also getting internal usage in a GitOps setting for the
17+
CD parts. Better public examples are forthcoming.
18+
19+
This repository contains the WIP specification and a tool called **[mg](/docs/mg.md)**
20+
that consumes the specification or specifications and turns that into
21+
actionable items or kubernets resources.
22+
23+
The repository will split in two in the future. One for the datastructure specification
24+
and one for the **[mg](/docs/mg.md)** utility.
25+
26+
27+
# Acknowledgement
28+
29+
Appreciation goes out to my current employer <a href="https://www.norsk-tipping.no">Norsk Tipping AS</a>,
30+
for letting me work on this in the open.

mg/cmd/dev.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var devCmdWatch = &cobra.Command{
108108
chProcessing := make(chan bool, 1)
109109

110110
wg.Add(2)
111-
111+
defer wg.Wait()
112112
go filteredFileWatcher(chEvents, chProcessing)
113113

114114
for {
@@ -129,7 +129,7 @@ var devCmdWatch = &cobra.Command{
129129
chProcessing<-false
130130
}
131131
}
132-
wg.Wait()
132+
133133
},
134134
}
135135

readme.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)