From d967cce8d039f35495be77b766af33d9873cf28a Mon Sep 17 00:00:00 2001 From: Chris Sanders Date: Thu, 22 May 2025 17:59:02 -0500 Subject: [PATCH 1/3] rebase me --- applications/wg-easy/Taskfile.yaml | 2 -- applications/wg-easy/charts/traefik/values.yaml | 6 +----- applications/wg-easy/helmfile.yaml.gotmpl | 6 +++--- applications/wg-easy/taskfiles/utils.yml | 11 +---------- 4 files changed, 5 insertions(+), 20 deletions(-) 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/charts/traefik/values.yaml b/applications/wg-easy/charts/traefik/values.yaml index e2567d7f..f49708cb 100644 --- a/applications/wg-easy/charts/traefik/values.yaml +++ b/applications/wg-easy/charts/traefik/values.yaml @@ -7,12 +7,8 @@ traefik: service: type: NodePort ports: - web: - nodePort: 80 - redirectTo: - port: websecure websecure: - nodePort: 443 + nodePort: 30443 tlsStore: default: certificates: diff --git a/applications/wg-easy/helmfile.yaml.gotmpl b/applications/wg-easy/helmfile.yaml.gotmpl index e622b5b4..355a8b15 100644 --- a/applications/wg-easy/helmfile.yaml.gotmpl +++ b/applications/wg-easy/helmfile.yaml.gotmpl @@ -2,7 +2,7 @@ helmDefaults: verify: false wait: true - timeout: 600 + timeout: 100 atomic: true cleanupOnFail: true @@ -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: From d8f5669455956927abb15e89407f245c50648ee1 Mon Sep 17 00:00:00 2001 From: Chris Sanders Date: Thu, 22 May 2025 18:18:48 -0500 Subject: [PATCH 2/3] rebase me --- applications/wg-easy/CLAUDE.md | 10 ++++++++++ applications/wg-easy/helmfile.yaml.gotmpl | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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/helmfile.yaml.gotmpl b/applications/wg-easy/helmfile.yaml.gotmpl index 355a8b15..2a634d06 100644 --- a/applications/wg-easy/helmfile.yaml.gotmpl +++ b/applications/wg-easy/helmfile.yaml.gotmpl @@ -2,7 +2,7 @@ helmDefaults: verify: false wait: true - timeout: 100 + timeout: 600 atomic: true cleanupOnFail: true From 5202aa0dc4a9fef5da3826be9b0314c2a6eaacc4 Mon Sep 17 00:00:00 2001 From: Chris Sanders Date: Thu, 22 May 2025 18:21:04 -0500 Subject: [PATCH 3/3] rebase me --- applications/wg-easy/charts/traefik/values.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/applications/wg-easy/charts/traefik/values.yaml b/applications/wg-easy/charts/traefik/values.yaml index f49708cb..e2567d7f 100644 --- a/applications/wg-easy/charts/traefik/values.yaml +++ b/applications/wg-easy/charts/traefik/values.yaml @@ -7,8 +7,12 @@ traefik: service: type: NodePort ports: + web: + nodePort: 80 + redirectTo: + port: websecure websecure: - nodePort: 30443 + nodePort: 443 tlsStore: default: certificates: