Prettier
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
parent
3f5725de87
commit
6d2a9874ba
|
|
@ -40,4 +40,4 @@
|
|||
"state/oci",
|
||||
"state/utils"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,76 +1,76 @@
|
|||
{
|
||||
"name": "Dapr Components Contributor Environment",
|
||||
"image": "ghcr.io/dapr/dapr-dev:latest",
|
||||
"containerEnv": {
|
||||
// Uncomment to overwrite devcontainer .kube/config and .minikube certs with the localhost versions
|
||||
// each time the devcontainer starts, if the respective .kube-localhost/config and .minikube-localhost
|
||||
// folders respectively are bind mounted to the devcontainer.
|
||||
// "SYNC_LOCALHOST_KUBECONFIG": "true",
|
||||
"name": "Dapr Components Contributor Environment",
|
||||
"image": "ghcr.io/dapr/dapr-dev:latest",
|
||||
"containerEnv": {
|
||||
// Uncomment to overwrite devcontainer .kube/config and .minikube certs with the localhost versions
|
||||
// each time the devcontainer starts, if the respective .kube-localhost/config and .minikube-localhost
|
||||
// folders respectively are bind mounted to the devcontainer.
|
||||
// "SYNC_LOCALHOST_KUBECONFIG": "true",
|
||||
|
||||
// Uncomment to disable docker-in-docker and automatically proxy default /var/run/docker.sock to
|
||||
// the localhost bind-mount /var/run/docker-host.sock.
|
||||
// "BIND_LOCALHOST_DOCKER": "true",
|
||||
// Uncomment to disable docker-in-docker and automatically proxy default /var/run/docker.sock to
|
||||
// the localhost bind-mount /var/run/docker-host.sock.
|
||||
// "BIND_LOCALHOST_DOCKER": "true",
|
||||
|
||||
// Necessary for components-contrib's certification tests
|
||||
"GOLANG_PROTOBUF_REGISTRATION_CONFLICT": "true"
|
||||
},
|
||||
"extensions": [
|
||||
"davidanson.vscode-markdownlint",
|
||||
"golang.go",
|
||||
"ms-azuretools.vscode-dapr",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"ms-kubernetes-tools.vscode-kubernetes-tools"
|
||||
],
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/sshd:1": {},
|
||||
"ghcr.io/devcontainers/features/github-cli:1": {},
|
||||
"ghcr.io/devcontainers/features/azure-cli:1": {}
|
||||
},
|
||||
"mounts": [
|
||||
// Mount docker-in-docker library volume
|
||||
"type=volume,source=dind-var-lib-docker,target=/var/lib/docker",
|
||||
// Necessary for components-contrib's certification tests
|
||||
"GOLANG_PROTOBUF_REGISTRATION_CONFLICT": "true"
|
||||
},
|
||||
"extensions": [
|
||||
"davidanson.vscode-markdownlint",
|
||||
"golang.go",
|
||||
"ms-azuretools.vscode-dapr",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"ms-kubernetes-tools.vscode-kubernetes-tools"
|
||||
],
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/sshd:1": {},
|
||||
"ghcr.io/devcontainers/features/github-cli:1": {},
|
||||
"ghcr.io/devcontainers/features/azure-cli:1": {}
|
||||
},
|
||||
"mounts": [
|
||||
// Mount docker-in-docker library volume
|
||||
"type=volume,source=dind-var-lib-docker,target=/var/lib/docker",
|
||||
|
||||
// Bind mount docker socket under an alias to support docker-from-docker
|
||||
"type=bind,source=/var/run/docker.sock,target=/var/run/docker-host.sock",
|
||||
// Bind mount docker socket under an alias to support docker-from-docker
|
||||
"type=bind,source=/var/run/docker.sock,target=/var/run/docker-host.sock"
|
||||
|
||||
// Uncomment to clone local .kube/config into devcontainer
|
||||
// "type=bind,source=${env:HOME}${env:USERPROFILE}/.kube,target=/home/dapr/.kube-localhost",
|
||||
// Uncomment to clone local .kube/config into devcontainer
|
||||
// "type=bind,source=${env:HOME}${env:USERPROFILE}/.kube,target=/home/dapr/.kube-localhost",
|
||||
|
||||
// Uncomment to additionally clone minikube certs into devcontainer for use with .kube/config
|
||||
// "type=bind,source=${env:HOME}${env:USERPROFILE}/.minikube,target=/home/dapr/.minikube-localhost"
|
||||
],
|
||||
// Always run image-defined default command
|
||||
"overrideCommand": false,
|
||||
// On Linux, this will prevent new files getting created as root, but you
|
||||
// may need to update the USER_UID and USER_GID in docker/Dockerfile-dev
|
||||
// to match your user if not 1000.
|
||||
"remoteUser": "dapr",
|
||||
"runArgs": [
|
||||
// Enable ptrace-based debugging for go
|
||||
"--cap-add=SYS_PTRACE",
|
||||
"--security-opt",
|
||||
"seccomp=unconfined",
|
||||
// Uncomment to additionally clone minikube certs into devcontainer for use with .kube/config
|
||||
// "type=bind,source=${env:HOME}${env:USERPROFILE}/.minikube,target=/home/dapr/.minikube-localhost"
|
||||
],
|
||||
// Always run image-defined default command
|
||||
"overrideCommand": false,
|
||||
// On Linux, this will prevent new files getting created as root, but you
|
||||
// may need to update the USER_UID and USER_GID in docker/Dockerfile-dev
|
||||
// to match your user if not 1000.
|
||||
"remoteUser": "dapr",
|
||||
"runArgs": [
|
||||
// Enable ptrace-based debugging for go
|
||||
"--cap-add=SYS_PTRACE",
|
||||
"--security-opt",
|
||||
"seccomp=unconfined",
|
||||
|
||||
// Uncomment to bind to host network for local devcontainer; this is necessary if using the
|
||||
// bind-mounted /var/run/docker-host.sock directly.
|
||||
// "--net=host",
|
||||
// Uncomment to bind to host network for local devcontainer; this is necessary if using the
|
||||
// bind-mounted /var/run/docker-host.sock directly.
|
||||
// "--net=host",
|
||||
|
||||
// Enable docker-in-docker configuration. Comment out if not using for better security.
|
||||
"--privileged",
|
||||
// Enable docker-in-docker configuration. Comment out if not using for better security.
|
||||
"--privileged",
|
||||
|
||||
// Run the entrypoint defined in container image.
|
||||
"--init"
|
||||
],
|
||||
"settings": {
|
||||
"go.toolsManagement.checkForUpdates": "local",
|
||||
"go.useLanguageServer": true,
|
||||
"go.gopath": "/go",
|
||||
"go.buildTags": "e2e,perf,conftests,unit,integration_test,certtests",
|
||||
"git.alwaysSignOff": true,
|
||||
"terminal.integrated.env.linux": {
|
||||
"GOLANG_PROTOBUF_REGISTRATION_CONFLICT": "ignore"
|
||||
}
|
||||
},
|
||||
"workspaceFolder": "/workspaces/components-contrib",
|
||||
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/workspaces/components-contrib",
|
||||
// Run the entrypoint defined in container image.
|
||||
"--init"
|
||||
],
|
||||
"settings": {
|
||||
"go.toolsManagement.checkForUpdates": "local",
|
||||
"go.useLanguageServer": true,
|
||||
"go.gopath": "/go",
|
||||
"go.buildTags": "e2e,perf,conftests,unit,integration_test,certtests",
|
||||
"git.alwaysSignOff": true,
|
||||
"terminal.integrated.env.linux": {
|
||||
"GOLANG_PROTOBUF_REGISTRATION_CONFLICT": "ignore"
|
||||
}
|
||||
},
|
||||
"workspaceFolder": "/workspaces/components-contrib",
|
||||
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/workspaces/components-contrib"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -576,4 +576,4 @@ if (argv.length < 4 || !['true', 'false'].includes(argv[3])) {
|
|||
const matrixObj = GenerateMatrix(argv[2], argv[3] == 'true')
|
||||
console.log('Generated matrix:\n\n' + JSON.stringify(matrixObj, null, ' '))
|
||||
|
||||
writeFileSync(env.GITHUB_OUTPUT, 'test-matrix='+JSON.stringify(matrixObj))
|
||||
writeFileSync(env.GITHUB_OUTPUT, 'test-matrix=' + JSON.stringify(matrixObj))
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
internal/component/cloudflare/workers/code/
|
||||
13
Makefile
13
Makefile
|
|
@ -216,6 +216,19 @@ check-component-metadata-schema-diff: component-metadata-schema
|
|||
bundle-component-metadata:
|
||||
$(RUN_BUILD_TOOLS) bundle-component-metadata > ../component-metadata-bundle.json
|
||||
|
||||
################################################################################
|
||||
# Prettier #
|
||||
################################################################################
|
||||
.PHONY: prettier-install prettier-check prettier-format
|
||||
prettier-install:
|
||||
npm install --global prettier
|
||||
|
||||
prettier-check:
|
||||
npx prettier --check "*/**/*.{ts,js,mjs,json}"
|
||||
|
||||
prettier-format:
|
||||
npx prettier --write "*/**/*.{ts,js,mjs,json}"
|
||||
|
||||
################################################################################
|
||||
# Target: conf-tests #
|
||||
################################################################################
|
||||
|
|
|
|||
|
|
@ -105,13 +105,13 @@ const router = Router()
|
|||
return errorRes
|
||||
}
|
||||
|
||||
let expirationTtl: number|undefined = undefined
|
||||
let expirationTtl: number | undefined = undefined
|
||||
const reqUrl = new URL(req.url)
|
||||
const ttlParam = parseInt(reqUrl.searchParams.get('ttl') ||'', 10)
|
||||
const ttlParam = parseInt(reqUrl.searchParams.get('ttl') || '', 10)
|
||||
if (ttlParam > 0) {
|
||||
expirationTtl = ttlParam
|
||||
}
|
||||
await namespace!.put(key!, req.body!, {expirationTtl})
|
||||
await namespace!.put(key!, req.body!, { expirationTtl })
|
||||
|
||||
return new Response('', { status: 201 })
|
||||
}
|
||||
|
|
@ -171,7 +171,10 @@ async function setupKVRequest(
|
|||
return { errorRes: new Response('Bad request', { status: 400 }) }
|
||||
}
|
||||
const namespace = env[req.params.namespace] as KVNamespace<string>
|
||||
if (typeof namespace != 'object' || !['KVNamespace', 'KvNamespace'].includes(namespace?.constructor?.name)) {
|
||||
if (
|
||||
typeof namespace != 'object' ||
|
||||
!['KVNamespace', 'KvNamespace'].includes(namespace?.constructor?.name)
|
||||
) {
|
||||
return {
|
||||
errorRes: new Response(
|
||||
`Worker is not bound to KV '${req.params.kv}'`,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3,4 +3,4 @@
|
|||
"nestedsecret": {
|
||||
"secret": "efgh"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"conftestsecret": "abcd",
|
||||
"secondsecret": "efgh"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,21 +2,21 @@
|
|||
"name": "Dapr Components E2E Environment - Zeebe",
|
||||
"dockerComposeFile": ["./docker-compose.yml"],
|
||||
"service": "dapr",
|
||||
"extensions": [
|
||||
"golang.go",
|
||||
"ms-azuretools.vscode-dapr",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"ms-kubernetes-tools.vscode-kubernetes-tools"
|
||||
],
|
||||
// As a workaround for Codespaces not supporting workspaceFolder/workspace mount, create
|
||||
// a symlink from /workspaces/components-contrib to /go/src/github.com/dapr/components-contrib
|
||||
"postCreateCommand": "bash /usr/local/share/setup-gopath.sh components-contrib true",
|
||||
// On Linux, this will prevent new files getting created as root, but you
|
||||
// may need to update the USER_UID and USER_GID in docker/Dockerfile-dev
|
||||
// to match your user if not 1000.
|
||||
"remoteUser": "dapr",
|
||||
"extensions": [
|
||||
"golang.go",
|
||||
"ms-azuretools.vscode-dapr",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"ms-kubernetes-tools.vscode-kubernetes-tools"
|
||||
],
|
||||
// As a workaround for Codespaces not supporting workspaceFolder/workspace mount, create
|
||||
// a symlink from /workspaces/components-contrib to /go/src/github.com/dapr/components-contrib
|
||||
"postCreateCommand": "bash /usr/local/share/setup-gopath.sh components-contrib true",
|
||||
// On Linux, this will prevent new files getting created as root, but you
|
||||
// may need to update the USER_UID and USER_GID in docker/Dockerfile-dev
|
||||
// to match your user if not 1000.
|
||||
"remoteUser": "dapr",
|
||||
"settings": {
|
||||
"terminal.integrated.defaultProfile.linux": "bash",
|
||||
},
|
||||
"workspaceFolder": "/go/src/github.com/dapr/components-contrib",
|
||||
"terminal.integrated.defaultProfile.linux": "bash"
|
||||
},
|
||||
"workspaceFolder": "/go/src/github.com/dapr/components-contrib"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,43 +2,38 @@
|
|||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/docker-existing-docker-compose
|
||||
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
|
||||
{
|
||||
"name": "Existing Docker Compose (Extend)",
|
||||
"name": "Existing Docker Compose (Extend)",
|
||||
|
||||
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
|
||||
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
|
||||
"dockerComposeFile": [
|
||||
"../docker-compose.yaml",
|
||||
"docker-compose.yml"
|
||||
],
|
||||
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
|
||||
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
|
||||
"dockerComposeFile": ["../docker-compose.yaml", "docker-compose.yml"],
|
||||
|
||||
// The 'service' property is the name of the service for the container that VS Code should
|
||||
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
|
||||
"service": "dev",
|
||||
// The 'service' property is the name of the service for the container that VS Code should
|
||||
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
|
||||
"service": "dev",
|
||||
|
||||
// The optional 'workspaceFolder' property is the path VS Code should open by default when
|
||||
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
|
||||
"workspaceFolder": "/workspace",
|
||||
// The optional 'workspaceFolder' property is the path VS Code should open by default when
|
||||
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
|
||||
"workspaceFolder": "/workspace",
|
||||
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {},
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {},
|
||||
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": [
|
||||
"golang.go"
|
||||
]
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": ["golang.go"]
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
||||
// Uncomment the next line if you want start specific services in your Docker Compose config.
|
||||
// "runServices": [],
|
||||
// Uncomment the next line if you want start specific services in your Docker Compose config.
|
||||
// "runServices": [],
|
||||
|
||||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
|
||||
// "shutdownAction": "none",
|
||||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
|
||||
// "shutdownAction": "none",
|
||||
|
||||
// Uncomment the next line to run commands after the container is created - for example installing curl.
|
||||
// "postCreateCommand": "apt-get update && apt-get install -y curl",
|
||||
// Uncomment the next line to run commands after the container is created - for example installing curl.
|
||||
// "postCreateCommand": "apt-get update && apt-get install -y curl",
|
||||
|
||||
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
|
||||
// "remoteUser": "vscode"
|
||||
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
|
||||
// "remoteUser": "vscode"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
{
|
||||
"page": {
|
||||
"limit": 2
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
{
|
||||
"filter": {
|
||||
"EQ": {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
{
|
||||
"filter": {
|
||||
"EQ": {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
{
|
||||
"IN": {
|
||||
"state":["CA", "WA"]
|
||||
"state": ["CA", "WA"]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue