diff --git a/README.md b/README.md index 2446148..4af3179 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ Or, download the binaries for your platform from the [latest Github releases](ht $ wget https://github.com/score-spec/score-k8s/releases/download//score-k8s__.tar.gz ``` -Or, install the Go module directly (Go > 1.22): +Or, install the Go module directly (Go > 1.23): ``` $ go install -v github.com/score-spec/score-k8s@latest diff --git a/internal/provisioners/default/zz-default.provisioners.yaml b/internal/provisioners/default/zz-default.provisioners.yaml index cedcc15..e0dd48b 100644 --- a/internal/provisioners/default/zz-default.provisioners.yaml +++ b/internal/provisioners/default/zz-default.provisioners.yaml @@ -50,6 +50,16 @@ data: key: {{ .Init.key }} +# The 'cmd' scheme has a "host" + path component that indicates the path to the binary to execute. If the host starts +# with "." it is interpreted as a relative path, if it starts with "~" it resolves to the home directory. +- uri: cmd://bash#example-provisioner + type: example-provisioner-resource + class: default + id: specific + # (Optional) additional args that the binary gets run with + # If any of the args are '' it will be replaced with "provision" + args: ["-c", "echo '{\"resource_outputs\":{\"key\":\"value\"},\"manifests\":[]}'"] + # The default provisioner for service resources, this expects a workload and port name and will return the hostname and # port required to contact it. This will validate that the workload and port exist, but won't enforce a dependency # relationship yet. @@ -64,16 +74,6 @@ {{ if not $p }}{{ fail "unknown service port" }}{{ end }} hostname: {{ $w.ServiceName | quote }} port: {{ $p.TargetPort }} - -# The 'cmd' scheme has a "host" + path component that indicates the path to the binary to execute. If the host starts -# with "." it is interpreted as a relative path, if it starts with "~" it resolves to the home directory. -- uri: cmd://bash#example-provisioner - type: example-provisioner-resource - class: default - id: specific - # (Optional) additional args that the binary gets run with - # If any of the args are '' it will be replaced with "provision" - args: ["-c", "echo '{\"resource_outputs\":{\"key\":\"value\"},\"manifests\":[]}'"] # As an example we have a 'volume' type which returns an emptyDir volume. # In production or for real applications you may want to replace this with a provisioner for a tmpfs, host path, or