This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Typositoire/concourse-helm3-resource (#17)
- Loading branch information
1 parent
68552b1
commit 7077fbc
Showing
4 changed files
with
170 additions
and
8 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ resource-types = | ||
./resource-types/package.dhall sha256:94ec73f7b06436fa1c38b53905e059fab56546fdd51679eef802a62a5446991e | ||
./resource-types/package.dhall sha256:44660ad120799084b30751f4e8d7a628255b6e76f0b93ab6fc0e43643328a854 | ||
? ./resource-types/package.dhall | ||
} | ||
∧ ./domain.dhall | ||
∧ ( ./domain.dhall sha256:036b9de47a7f54d4ed21b87c50987fb8a318c62524d7f6317d3ec98bbe9c784c | ||
? ./domain.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,156 @@ | ||
{ meta = { name = "helm3", repository = "typositoire/concourse-helm3-resource" } | ||
, Version = { Type = { revision : Text, release : Text }, default = {=} } | ||
, Params = | ||
{ Get = let not-supported = { Type = {}, default = {=} } in not-supported | ||
, Put = | ||
let Values = < Text : Text | Array : List Text > | ||
|
||
let OverrideValue = | ||
let Common = | ||
{ Type = | ||
{ key : Text | ||
, hide : Optional Bool | ||
, type : Optional Text | ||
, verbatim : Optional Bool | ||
} | ||
, default = | ||
{ hide = None Bool, type = None Text, verbatim = None Bool } | ||
} | ||
|
||
let Options = | ||
{ Path = | ||
{ Type = Common.Type ⩓ { path : Text } | ||
, default = Common.default | ||
} | ||
, Value = | ||
let Untyped = | ||
< String : Text | Number : Natural | Bool : Bool > | ||
|
||
in { Type = Common.Type ⩓ { value : Untyped } | ||
, default = Common.default | ||
, Untyped | ||
} | ||
} | ||
|
||
let _Type = | ||
< Path : Options.Path.Type | Value : Options.Value.Type > | ||
|
||
in { Type = _Type | ||
, Path = λ(path : Options.Path.Type) → _Type.Path path | ||
, Value = λ(value : Options.Value.Type) → _Type.Value value | ||
, Options | ||
} | ||
|
||
let Put = | ||
{ Type = | ||
{ chart : Text | ||
, namespace : Optional Text | ||
, create_namespace : Optional Bool | ||
, release : Optional Text | ||
, values : Optional Values | ||
, override_values : Optional (List OverrideValue.Type) | ||
, token_path : Optional Text | ||
, version : Optional Text | ||
, test : Optional Bool | ||
, test_logs : Optional Bool | ||
, delete : Optional Bool | ||
, replace : Optional Bool | ||
, force : Optional Bool | ||
, devel : Optional Bool | ||
, debug : Optional Bool | ||
, check_is_ready : Optional Bool | ||
, atomic : Optional Bool | ||
, reuse_values : Optional Bool | ||
, timeout : Optional Text | ||
, wait : Optional Natural | ||
, kubeconfig_path : Optional Text | ||
, show_diff : Optional Bool | ||
} | ||
, default = | ||
{ namespace = None Text | ||
, create_namespace = None Bool | ||
, release = None Text | ||
, values = None Values | ||
, override_values = None (List OverrideValue.Type) | ||
, token_path = None Text | ||
, version = None Text | ||
, test = None Bool | ||
, test_logs = None Bool | ||
, delete = None Bool | ||
, replace = None Bool | ||
, force = None Bool | ||
, devel = None Bool | ||
, debug = None Bool | ||
, check_is_ready = None Bool | ||
, atomic = None Bool | ||
, reuse_values = None Bool | ||
, timeout = None Text | ||
, wait = None Natural | ||
, kubeconfig_path = None Text | ||
, show_diff = None Bool | ||
} | ||
} | ||
|
||
let test = Put::{ chart = "test" } | ||
|
||
in Put | ||
} | ||
, Source = | ||
let Plugin = | ||
{ Type = { url : Text, version : Optional Text } | ||
, default.version = None Text | ||
} | ||
|
||
let Repository = | ||
{ Type = | ||
{ name : Text | ||
, url : Text | ||
, username : Optional Text | ||
, password : Optional Text | ||
} | ||
, default = { username = None Text, password = None Text } | ||
} | ||
|
||
let Source = | ||
{ Type = | ||
{ cluster_url : Optional Text | ||
, cluster_ca : Optional Text | ||
, insecure_cluster : Optional Bool | ||
, token : Optional Text | ||
, token_path : Optional Text | ||
, admin_key : Optional Text | ||
, admin_cert : Optional Text | ||
, release : Optional Text | ||
, namespace : Optional Text | ||
, helm_history_max : Optional Natural | ||
, repos : Optional (List Repository.Type) | ||
, plugins : Optional (List Plugin.Type) | ||
, stable_repo : Optional Text | ||
, tracing_enabled : Optional Bool | ||
, helm_setup_purge_all : Optional Bool | ||
} | ||
, default = | ||
{ cluster_url = None Text | ||
, cluster_ca = None Text | ||
, insecure_cluster = None Bool | ||
, token = None Text | ||
, token_path = None Text | ||
, admin_key = None Text | ||
, admin_cert = None Text | ||
, release = None Text | ||
, namespace = None Text | ||
, helm_history_max = None Natural | ||
, repos = None (List Repository.Type) | ||
, plugins = None (List Plugin.Type) | ||
, stable_repo = None Text | ||
, tracing_enabled = None Bool | ||
, helm_setup_purge_all = None Bool | ||
} | ||
, Plugin | ||
, Repository | ||
} | ||
|
||
let test = Source::{=} | ||
|
||
in Source | ||
} |
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