Commit b1e21a3
Fix pdp-tester CI job for K8s-based refactor (PER-13630) (#307)
* Fix pdp-tester CI job for K8s-based refactor
The pdp-tester was refactored from Docker-based to Kubernetes-based
(permitio/pdp-tester#80). The old CI used Docker directly to run PDP
containers, but the new code requires a Kubernetes cluster.
Changes:
- Add k3d cluster setup (same approach as pdp-tester's own CI)
- Import both PDP image and pdp-tester image into k3d
- Deploy via Helm chart in job mode with tag 'next' (the PR's PDP build)
- Wait for Job completion and check test results from logs
- Teardown k3d cluster on completion
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix: tag PDP image as 'latest' for k3d so pdp-tester discovers it
The pdp-tester discovers PDP tags via Docker Hub. The 'next' tag only
exists locally, so tag discovery fails. Fix: tag the PDP image as
'latest' before importing into k3d, which matches pdp-tester's default
includeTags config.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Use pdp.localTags for local PDP image (bypass Docker Hub discovery)
Use LOCAL_TAGS=["next"] to tell pdp-tester to use the locally built
PDP image without querying Docker Hub for tag discovery. Clear
includeTags to avoid pulling anything from Docker Hub.
Requires permitio/pdp-tester to have LOCAL_TAGS support in the Helm
chart (permitio/pdp-tester PR pending).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Temporarily set skipGenerate=false to populate new Permit environment
Will revert to skipGenerate=true after first successful run.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Revert skipGenerate back to true (environment now populated)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix: clear includeTags properly to avoid Docker Hub timeout
--set 'pdp.includeTags={}' rendered as [""] (non-empty list), causing
Docker Hub tag discovery to run and timeout. Use --set 'pdp.includeTags='
which makes the value falsy, skipping INCLUDE_TAGS env var entirely.
Only LOCAL_TAGS=["next"] is used.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 74451bd commit b1e21a3
1 file changed
Lines changed: 65 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
112 | 117 | | |
113 | | - | |
114 | | - | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | | - | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 125 | + | |
| 126 | + | |
122 | 127 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
129 | 156 | | |
130 | | - | |
| 157 | + | |
| 158 | + | |
131 | 159 | | |
132 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
133 | 170 | | |
134 | 171 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
144 | 182 | | |
145 | 183 | | |
146 | 184 | | |
| |||
0 commit comments