Migrate dagger.#Secret and dagger.#Stream to new format
- Refactored to keep every transformation of built-in types (e.g. FS, Secret, etc) to/from CUE in the same place (plancontext) - dagger.#Service and dagger.#Secret are now following the new FS-like format (e.g. `_service: id: string`) - Backward compatibility - dagger.#Stream is now an alias for dagger.#Service Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ Create an ArgoCD application
|
||||
|*config.version* | `*"v2.0.5" \| string` |ArgoCD CLI binary version |
|
||||
|*config.server* | `string` |ArgoCD server |
|
||||
|*config.project* | `*"default" \| string` |ArgoCD project |
|
||||
|*config.token* | `dagger.#Secret` |ArgoCD authentication token |
|
||||
|*config.token* | `*null \| {}` |ArgoCD authentication token |
|
||||
|*name* | `string` |App name |
|
||||
|*repo* | `string` |Repository url (git or helm) |
|
||||
|*path* | `string` |Folder to deploy |
|
||||
@@ -29,7 +29,7 @@ Create an ArgoCD application
|
||||
|*image.config.version* | `*"v2.0.5" \| string` |ArgoCD CLI binary version |
|
||||
|*image.config.server* | `string` |ArgoCD server |
|
||||
|*image.config.project* | `*"default" \| string` |ArgoCD project |
|
||||
|*image.config.token* | `dagger.#Secret` |ArgoCD authentication token |
|
||||
|*image.config.token* | `*null \| {}` |ArgoCD authentication token |
|
||||
|*namespace* | `*"default" \| string` |Destination namespace |
|
||||
|*env.APP_NAME* | `string` |- |
|
||||
|*env.APP_REPO* | `string` |- |
|
||||
@@ -52,7 +52,7 @@ Re-usable CLI component
|
||||
|*config.version* | `*"v2.0.5" \| string` |ArgoCD CLI binary version |
|
||||
|*config.server* | `string` |ArgoCD server |
|
||||
|*config.project* | `*"default" \| string` |ArgoCD project |
|
||||
|*config.token* | `dagger.#Secret` |ArgoCD authentication token |
|
||||
|*config.token* | `*null \| {}` |ArgoCD authentication token |
|
||||
|
||||
### argocd.#CLI Outputs
|
||||
|
||||
@@ -69,7 +69,7 @@ ArgoCD configuration
|
||||
|*version* | `*"v2.0.5" \| string` |ArgoCD CLI binary version |
|
||||
|*server* | `string` |ArgoCD server |
|
||||
|*project* | `*"default" \| string` |ArgoCD project |
|
||||
|*token* | `dagger.#Secret` |ArgoCD authentication token |
|
||||
|*token* | `*null \| {}` |ArgoCD authentication token |
|
||||
|
||||
### argocd.#Config Outputs
|
||||
|
||||
@@ -86,7 +86,7 @@ Get application's status
|
||||
|*config.version* | `*"v2.0.5" \| string` |ArgoCD CLI binary version |
|
||||
|*config.server* | `string` |ArgoCD server |
|
||||
|*config.project* | `*"default" \| string` |ArgoCD project |
|
||||
|*config.token* | `dagger.#Secret` |ArgoCD authentication token |
|
||||
|*config.token* | `*null \| {}` |ArgoCD authentication token |
|
||||
|*name* | `string` |ArgoCD application |
|
||||
|
||||
### argocd.#Status Outputs
|
||||
@@ -111,18 +111,18 @@ Sync an application to its targer state
|
||||
|*config.version* | `*"v2.0.5" \| string` |ArgoCD CLI binary version |
|
||||
|*config.server* | `string` |ArgoCD server |
|
||||
|*config.project* | `*"default" \| string` |ArgoCD project |
|
||||
|*config.token* | `dagger.#Secret` |ArgoCD authentication token |
|
||||
|*config.token* | `*null \| {}` |ArgoCD authentication token |
|
||||
|*application* | `string` |ArgoCD application |
|
||||
|*wait* | `*false \| bool` |Wait the application to sync correctly |
|
||||
|*ctr.image.config.version* | `*"v2.0.5" \| string` |ArgoCD CLI binary version |
|
||||
|*ctr.image.config.server* | `string` |ArgoCD server |
|
||||
|*ctr.image.config.project* | `*"default" \| string` |ArgoCD project |
|
||||
|*ctr.image.config.token* | `dagger.#Secret` |ArgoCD authentication token |
|
||||
|*ctr.image.config.token* | `*null \| {}` |ArgoCD authentication token |
|
||||
|*ctr.env.APPLICATION* | `string` |- |
|
||||
|*status.config.version* | `*"v2.0.5" \| string` |ArgoCD CLI binary version |
|
||||
|*status.config.server* | `string` |ArgoCD server |
|
||||
|*status.config.project* | `*"default" \| string` |ArgoCD project |
|
||||
|*status.config.token* | `dagger.#Secret` |ArgoCD authentication token |
|
||||
|*status.config.token* | `*null \| {}` |ArgoCD authentication token |
|
||||
|*status.name* | `string` |ArgoCD application |
|
||||
|
||||
### argocd.#Sync Outputs
|
||||
|
@@ -56,6 +56,18 @@ _No input._
|
||||
|
||||
_No output._
|
||||
|
||||
## dagger.#Service
|
||||
|
||||
A reference to a network service endpoint, for example: - A TCP or UDP port - A unix or npipe socket - An HTTPS endpoint
|
||||
|
||||
### dagger.#Service Inputs
|
||||
|
||||
_No input._
|
||||
|
||||
### dagger.#Service Outputs
|
||||
|
||||
_No output._
|
||||
|
||||
## dagger.#Stream
|
||||
|
||||
Dagger stream. Can be mounted as a UNIX socket.
|
||||
|
@@ -19,7 +19,7 @@ Commit & push to git repository
|
||||
| Name | Type | Description |
|
||||
| ------------- |:-------------: |:-------------: |
|
||||
|*repository.remote* | `string` |Repository remote URL |
|
||||
|*repository.authToken* | `dagger.#Secret` |Authentication token (PAT or password) |
|
||||
|*repository.authToken* | `*null \| {}` |Authentication token (PAT or password) |
|
||||
|*repository.branch* | `string` |Git branch |
|
||||
|*name* | `string` |Username |
|
||||
|*email* | `string` |Email |
|
||||
@@ -69,8 +69,8 @@ A git repository
|
||||
|*remote* | `string` |Git remote link |
|
||||
|*ref* | `string` |Git ref: can be a commit, tag or branch. Example: "main" |
|
||||
|*subdir* | `*null \| string` |(optional) Subdirectory |
|
||||
|*authToken* | `dagger.#Secret` |(optional) Add Personal Access Token |
|
||||
|*authHeader* | `dagger.#Secret` |(optional) Add OAuth Token |
|
||||
|*authToken* | `*null \| {}` |(optional) Add Personal Access Token |
|
||||
|*authHeader* | `*null \| {}` |(optional) Add OAuth Token |
|
||||
|
||||
### git.#Repository Outputs
|
||||
|
||||
|
@@ -37,7 +37,7 @@ Apply Kubernetes resources
|
||||
|*url* | `*null \| string` |Kubernetes manifest url to deploy remote configuration |
|
||||
|*namespace* | `*"default" \| string` |Kubernetes Namespace to deploy to |
|
||||
|*version* | `*"v1.19.9" \| string` |Version of kubectl client |
|
||||
|*kubeconfig* | `dagger.#Secret` |Kube config file |
|
||||
|*kubeconfig* | `(string\|struct)` |Kube config file |
|
||||
|
||||
### kubernetes.#Resources Outputs
|
||||
|
||||
|
@@ -27,7 +27,7 @@ Install a Helm chart
|
||||
|*timeout* | `*"5m" \| string` |time to wait for any individual Kubernetes operation (like Jobs for hooks) |
|
||||
|*wait* | `*true \| bool` |if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment, StatefulSet, or ReplicaSet are in a ready state before marking the release as successful. It will wait for as long as timeout |
|
||||
|*atomic* | `*true \| bool` |if set, installation process purges chart on fail. The wait option will be set automatically if atomic is used |
|
||||
|*kubeconfig* | `dagger.#Secret` |Kube config file |
|
||||
|*kubeconfig* | `(string\|struct)` |Kube config file |
|
||||
|*version* | `*"3.5.2" \| string` |Helm version |
|
||||
|*kubectlVersion* | `*"v1.19.9" \| string` |Kubectl version |
|
||||
|
||||
|
Reference in New Issue
Block a user