diff --git a/applications/wg-easy/CLAUDE.md b/applications/wg-easy/CLAUDE.md index ceb307a6..a7211b3e 100644 --- a/applications/wg-easy/CLAUDE.md +++ b/applications/wg-easy/CLAUDE.md @@ -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 diff --git a/applications/wg-easy/Taskfile.yaml b/applications/wg-easy/Taskfile.yaml index 83f4dde5..ecae6c24 100644 --- a/applications/wg-easy/Taskfile.yaml +++ b/applications/wg-easy/Taskfile.yaml @@ -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" - | diff --git a/applications/wg-easy/helmfile.yaml.gotmpl b/applications/wg-easy/helmfile.yaml.gotmpl index e622b5b4..2a634d06 100644 --- a/applications/wg-easy/helmfile.yaml.gotmpl +++ b/applications/wg-easy/helmfile.yaml.gotmpl @@ -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 @@ -75,8 +77,6 @@ releases: values: - traefik: ports: - web: - nodePort: 30080 websecure: nodePort: 30443 diff --git a/applications/wg-easy/taskfiles/utils.yml b/applications/wg-easy/taskfiles/utils.yml index 67e26e6f..21f6d26e 100644 --- a/applications/wg-easy/taskfiles/utils.yml +++ b/applications/wg-easy/taskfiles/utils.yml @@ -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: