-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Kustomize Specs #15
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ repoURL : Text | ||
, targetRevision : Optional Text | ||
, path : Text | ||
, kustomize : | ||
../KustomizeSpec/Type.dhall sha256:848e4aebf31c48fe0d0e136832a3733ac27c9f796fe6efb72ca99cb28d803a77 | ||
? ../KustomizeSpec/Type.dhall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ targetRevision = None Text } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ Type = | ||
./Type.dhall sha256:196d546b6eba891eb4e8b3a4994182ed56046b93ce3385aba3abc3b4c6711183 | ||
? ./Type.dhall | ||
, default = | ||
./default.dhall sha256:8acdc984bfd6b5ab47caf4d0c3f66b95621e5ffb3bc1fe5cd6e3f81a82421c5d | ||
? ./default.dhall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ commonLabels : Optional { additionalProperties : Text } | ||
, images : List Text | ||
, namePrefix : Optional Text | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ commonLabels = None { additionalProperties : Text } | ||
, images = [] : List Text | ||
, namePrefix = None Text | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ Type = | ||
./Type.dhall sha256:848e4aebf31c48fe0d0e136832a3733ac27c9f796fe6efb72ca99cb28d803a77 | ||
? ./Type.dhall | ||
, default = | ||
./default.dhall sha256:6136a078b6a8203be267380f2c914dca10a3e83424102d6ef400ddd0609306da | ||
? ./default.dhall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ TypesUnion = | ||
./TypesUnion.dhall sha256:aec4d2be8e7be016de0d9eadf718dad737cdd5e7ecee4d4fa6c548894a1a0e2d | ||
./TypesUnion.dhall sha256:1e1e3c2d309acb6f9e9e1da8686d6e1ad126589d0bc4a1a0a1e42acc96dd3f77 | ||
? ./TypesUnion.dhall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ name : Text | ||
, project : Text | ||
, destination : | ||
../../DestinationSpec/Type.dhall sha256:689554a30489cd60c83a1581ebf4b8de25acd1f6fc9fe7fbfff940b87ae018a3 | ||
? ../../DestinationSpec/Type.dhall | ||
, source : | ||
../Source/Type.dhall sha256:67125442fdf84e7c9f4a613237be378974cfe6a26a7fec08fedc5045fceed45d | ||
? ../Source/Type.dhall | ||
, ignoreDifferences : | ||
List | ||
( ../../Difference/Type.dhall sha256:34e396f57549c6855081ee922624f429efd83112e32b707017efdffe0ef6db7f | ||
? ../../Difference/Type.dhall | ||
) | ||
, syncPolicy : | ||
Optional | ||
( ../../SyncPolicy/Type.dhall sha256:c08cba845720619a88473776d513ea1f9fcb360f93b509caa59ef724df77f1ef | ||
? ../../SyncPolicy/Type.dhall | ||
) | ||
, commonLabels : Optional { additionalProperties : Text } | ||
, images : List Text | ||
, namePrefix : Optional Text | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ ignoreDifferences = | ||
[] : List | ||
( ../../Difference/Type.dhall sha256:34e396f57549c6855081ee922624f429efd83112e32b707017efdffe0ef6db7f | ||
? ../../Difference/Type.dhall | ||
) | ||
, syncPolicy = | ||
None | ||
( ../../SyncPolicy/Type.dhall sha256:c08cba845720619a88473776d513ea1f9fcb360f93b509caa59ef724df77f1ef | ||
? ../../SyncPolicy/Type.dhall | ||
) | ||
, commonLabels = None { additionalProperties : Text } | ||
, images = [] : List Text | ||
, namePrefix = None Text | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ default = | ||
./default.dhall sha256:9f767a2799d1bcfc14464a6fd449ea282710e49860041a1b9042d17ee565e3a6 | ||
? ./default.dhall | ||
, Type = | ||
./Type.dhall sha256:d560f8d2c54266c35fdc696e123ca5decd2a99c5fff9240a7492b8f90ee1f726 | ||
? ./Type.dhall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
let TypesUnion = | ||
../../TypesUnion.dhall sha256:b4e4bdf2908414ae238ef26e14388ea6e74f401355412a2dc43ca6299e34f388 | ||
? ../../TypesUnion.dhall | ||
|
||
let Application = | ||
../../Application/package.dhall sha256:47bd28e686730591bffb30ddb014ea47470bfd47b2cf3b2aff72fd79167f4089 | ||
? ../../Application/package.dhall | ||
|
||
let ApplicationSpec = | ||
../../ApplicationSpec/package.dhall sha256:29e5cc3a22a0e4fd786871d6c285ea7333d9cbef6341d91ba4045491b0bde157 | ||
? ../../ApplicationSpec/package.dhall | ||
|
||
let SourceSpec = | ||
../../SourceSpec/package.dhall sha256:f1b96820008516f6b2e5a3fb8a2a30197a0c3e828db3d105a04b5a4c060729a0 | ||
? ../../SourceSpec/package.dhall | ||
|
||
let KustomizeSourceSpec = | ||
../../KustomizeSourceSpec/package.dhall sha256:49e0444ed3ea52ee9cc5268c0db9bd9a06e865ec305828870a5403f67c3c4ec9 | ||
? ../../KustomizeSourceSpec/package.dhall | ||
|
||
let KustomizeSpec = | ||
../../KustomizeSpec/package.dhall sha256:152e77012457d05abc56b34957634ddee7c7ff2dbd4f3c9f828312a454648877 | ||
? ../../KustomizeSpec/package.dhall | ||
|
||
let k8s = | ||
../../../k8s/package.dhall sha256:4c9c40f1762e95578c86c3efbccb87ce74ff67c5111a4c92c4393c6d163bb51b | ||
? ../../../k8s/package.dhall | ||
|
||
in \ ( appConfig | ||
: ../KustomizeAppConfig/Type.dhall sha256:d560f8d2c54266c35fdc696e123ca5decd2a99c5fff9240a7492b8f90ee1f726 | ||
? ../KustomizeAppConfig/Type.dhall | ||
) | ||
-> TypesUnion.Application | ||
( Application.default | ||
// { metadata = | ||
k8s.defaults.ObjectMeta // { name = appConfig.name } | ||
, spec = | ||
ApplicationSpec.default | ||
// { project = appConfig.project | ||
, source = | ||
SourceSpec.TypesUnion.Kustomize | ||
( KustomizeSourceSpec.default | ||
// { repoURL = appConfig.source.url | ||
, path = appConfig.source.path | ||
, targetRevision = | ||
appConfig.source.targetRevision | ||
, helm = | ||
KustomizeSpec.default | ||
// { commonLabels = | ||
appConfig.commonLabels | ||
, images = appConfig.images | ||
, namePrefix = | ||
appConfig.namePrefix | ||
} | ||
} | ||
) | ||
, destination = appConfig.destination | ||
, syncPolicy = appConfig.syncPolicy | ||
, ignoreDifferences = Some appConfig.ignoreDifferences | ||
} | ||
} | ||
) | ||
: TypesUnion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In kubernetes empty list and
null
often mean different things. Can we make this an optional list for consistency? I plan to switch to use--omitNull
soon in our plugin (see dhall-lang/dhall-kubernetes#86)