Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions applications/wg-easy/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ RELEASE_NOTES="Release notes"
APP_SLUG=wg-easy-cre
```

## Claude Code Configuration

When using Claude Code with this repository, use these timeout settings for long-running operations:

- `task helm-install`: Use 1200000ms (20 minutes) timeout - double the helmfile timeout of 600s
- `task full-test-cycle`: Use 1800000ms (30 minutes) timeout - accounts for cluster creation + deployment + testing
- `task cluster-create`: Use 600000ms (10 minutes) timeout - double typical cluster creation time

Example: When running `task helm-install` via Bash tool, use `timeout: 1200000` parameter.

## Common Workflows

### Local Development
Expand Down
2 changes: 0 additions & 2 deletions applications/wg-easy/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ tasks:
silent: true
vars:
HELM_ENV: '{{.HELM_ENV | default "default"}}'
requires:
vars: [REPLICATED_LICENSE_ID]
cmds:
- echo "Installing all charts via helmfile"
- |
Expand Down
4 changes: 2 additions & 2 deletions applications/wg-easy/helmfile.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ environments:
- extras:
enableReplicatedSDK: true
---
{{- if eq .Environment.Name "replicated" }}
repositories:
- name: registry.replicated.com
oci: true
url: registry.replicated.com
username: '{{ .Values.username }}'
password: '{{ .Values.password }}'
{{- end }}

releases:
# Install cert-manager with CRDs but without issuers
Expand Down Expand Up @@ -75,8 +77,6 @@ releases:
values:
- traefik:
ports:
web:
nodePort: 30080
websecure:
nodePort: 30443

Expand Down
11 changes: 1 addition & 10 deletions applications/wg-easy/taskfiles/utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,13 @@ tasks:
# Get TF_EXPOSED_URL for HTTPS
TF_EXPOSED_URL=$(replicated cluster port ls $CLUSTER_ID --output json | jq -r '.[] | select(.upstream_port == 30443 and .exposed_ports[0].protocol == "https") | .hostname' | head -n 1)

# Get TF_EXPOSED_HTTP_URL for HTTP
TF_EXPOSED_HTTP_URL=$(replicated cluster port ls $CLUSTER_ID --output json | jq -r '.[] | select(.upstream_port == 30080 and .exposed_ports[0].protocol == "http") | .hostname' | head -n 1)

if [ -z "$TF_EXPOSED_URL" ]; then
echo "Error: Could not determine TF_EXPOSED_URL. HTTPS port is not properly exposed."
echo "Please ensure the HTTPS port is exposed before deploying."
exit 1
fi

if [ -z "$TF_EXPOSED_HTTP_URL" ]; then
echo "Error: Could not determine TF_EXPOSED_HTTP_URL. HTTP port is not properly exposed."
echo "Please ensure the HTTP port is exposed before deploying."
exit 1
fi

echo "TF_EXPOSED_URL=$TF_EXPOSED_URL TF_EXPOSED_HTTP_URL=$TF_EXPOSED_HTTP_URL"
echo "TF_EXPOSED_URL=$TF_EXPOSED_URL"
fi

vendor-api-auth:
Expand Down
Loading