-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1071 lines (1010 loc) · 49.5 KB
/
Copy pathindex.html
File metadata and controls
1071 lines (1010 loc) · 49.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>helm-pr-generator · Helm Chart for pr-generator</title>
<meta name="description" content="Community-maintained Helm chart for pr-generator — automated pull request creation daemon for GitHub and Bitbucket Cloud, designed for ArgoCD Image Updater GitOps workflows." />
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet" />
<style>
/* ── Design tokens ───────────────────────────────────── */
:root {
--bg: #0B0F17;
--surface: #111827;
--surface2: #1E2433;
--border: #1E2D3D;
--fg: #F1F5F9;
--fg-dim: #94A3B8;
--muted: #475569;
--accent: #8B5CF6;
--accent2: #A78BFA;
--code-bg: #0D1117;
--radius: 8px;
--mono: 'IBM Plex Mono', monospace;
--sans: 'IBM Plex Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--fg);
font-family: var(--sans);
font-size: 16px;
line-height: 1.65;
-webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
/* ── Layout ──────────────────────────────────────────── */
.container {
width: 100%;
max-width: 900px;
margin: 0 auto;
padding: 0 24px;
}
/* ── Header ──────────────────────────────────────────── */
header {
border-bottom: 1px solid var(--border);
padding: 16px 0;
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-family: var(--mono);
font-size: 1rem;
font-weight: 600;
color: var(--fg);
cursor: default;
}
.logo-icon {
width: 28px;
height: 28px;
background: var(--accent);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
flex-shrink: 0;
}
.header-links {
display: flex;
align-items: center;
gap: 20px;
flex-wrap: wrap;
}
.header-links a {
color: var(--fg-dim);
font-size: 0.875rem;
display: flex;
align-items: center;
gap: 6px;
transition: color 150ms;
}
.header-links a:hover { color: var(--fg); text-decoration: none; }
/* ── Hero ────────────────────────────────────────────── */
.hero {
padding: 72px 0 56px;
text-align: center;
}
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(139, 92, 246, 0.12);
border: 1px solid rgba(139, 92, 246, 0.3);
color: var(--accent);
font-family: var(--mono);
font-size: 0.75rem;
padding: 4px 12px;
border-radius: 100px;
margin-bottom: 24px;
}
.hero h1 {
font-family: var(--mono);
font-size: clamp(1.75rem, 5vw, 2.75rem);
font-weight: 600;
line-height: 1.2;
color: var(--fg);
margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero p {
color: var(--fg-dim);
font-size: 1.0625rem;
max-width: 600px;
margin: 0 auto 40px;
}
/* ── Badges row ──────────────────────────────────────── */
.badges {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 48px;
}
.badges img { height: 20px; }
/* ── Quick-start block ───────────────────────────────── */
.quickstart {
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
max-width: 640px;
margin: 0 auto;
text-align: left;
}
.quickstart-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: var(--surface);
border-bottom: 1px solid var(--border);
font-family: var(--mono);
font-size: 0.75rem;
color: var(--muted);
}
.copy-btn {
background: none;
border: 1px solid var(--border);
color: var(--fg-dim);
font-family: var(--mono);
font-size: 0.7rem;
padding: 3px 10px;
border-radius: 4px;
cursor: pointer;
transition: border-color 150ms, color 150ms;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { border-color: var(--accent); color: var(--accent); }
.quickstart pre {
padding: 20px;
font-family: var(--mono);
font-size: 0.8125rem;
line-height: 1.8;
overflow-x: auto;
}
.quickstart pre .prompt { color: var(--accent); user-select: none; }
.quickstart pre .cmd { color: #7DD3FC; }
.quickstart pre .arg { color: #C084FC; }
.quickstart pre .val { color: #FDE68A; }
.quickstart pre .comment{ color: var(--muted); }
/* ── Section ─────────────────────────────────────────── */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }
.section-label {
font-family: var(--mono);
font-size: 0.75rem;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 8px;
}
.section-title {
font-family: var(--mono);
font-size: 1.375rem;
font-weight: 600;
color: var(--fg);
margin-bottom: 12px;
}
.section-desc {
color: var(--fg-dim);
max-width: 560px;
margin-bottom: 40px;
}
/* ── Feature grid ────────────────────────────────────── */
.features {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 16px;
}
.feature-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
transition: border-color 200ms;
}
.feature-card:hover { border-color: rgba(139, 92, 246, 0.4); }
.feature-icon {
width: 36px;
height: 36px;
background: rgba(139, 92, 246, 0.1);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 14px;
}
.feature-card h3 {
font-family: var(--mono);
font-size: 0.875rem;
font-weight: 600;
color: var(--fg);
margin-bottom: 6px;
}
.feature-card p {
font-size: 0.875rem;
color: var(--fg-dim);
line-height: 1.6;
}
/* ── Code blocks ─────────────────────────────────────── */
.code-block {
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.code-block + .code-block { margin-top: 16px; }
.code-block-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: var(--surface);
border-bottom: 1px solid var(--border);
font-family: var(--mono);
font-size: 0.75rem;
color: var(--muted);
}
.code-block pre {
padding: 20px;
font-family: var(--mono);
font-size: 0.8125rem;
line-height: 1.9;
overflow-x: auto;
}
.code-block pre .prompt { color: var(--accent); user-select: none; }
.code-block pre .cmd { color: #7DD3FC; }
.code-block pre .arg { color: #C084FC; }
.code-block pre .val { color: #FDE68A; }
.code-block pre .comment { color: var(--muted); }
.code-block pre .key { color: var(--accent2); }
.code-block pre .str { color: #86EFAC; }
/* ── Values table ────────────────────────────────────── */
.table-wrap {
overflow-x: auto;
border: 1px solid var(--border);
border-radius: var(--radius);
}
table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
thead tr { background: var(--surface); }
th {
font-family: var(--mono);
font-weight: 600;
font-size: 0.75rem;
text-align: left;
padding: 12px 16px;
color: var(--fg-dim);
border-bottom: 1px solid var(--border);
white-space: nowrap;
}
td {
padding: 11px 16px;
border-bottom: 1px solid rgba(51,65,85,0.5);
vertical-align: top;
color: var(--fg-dim);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
td code {
font-family: var(--mono);
font-size: 0.8em;
background: var(--surface2);
padding: 2px 6px;
border-radius: 4px;
color: #C084FC;
}
.val-default {
font-family: var(--mono);
font-size: 0.8em;
color: #FDE68A;
}
/* ── Callout ─────────────────────────────────────────── */
.callout {
background: rgba(139, 92, 246, 0.07);
border: 1px solid rgba(139, 92, 246, 0.25);
border-radius: var(--radius);
padding: 16px 20px;
margin-top: 24px;
font-size: 0.875rem;
color: var(--fg-dim);
}
.callout strong { color: var(--accent2); }
/* ── FAQ accordion ───────────────────────────────────── */
details {
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
details + details { margin-top: 8px; }
summary {
font-family: var(--mono);
font-size: 0.875rem;
font-weight: 600;
color: var(--fg);
padding: 16px 20px;
cursor: pointer;
background: var(--surface);
list-style: none;
display: flex;
align-items: center;
justify-content: space-between;
user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
content: '+';
color: var(--accent);
font-size: 1.1rem;
transition: transform 200ms;
}
details[open] summary::after {
transform: rotate(45deg);
}
details[open] summary {
border-bottom: 1px solid var(--border);
}
.faq-body {
padding: 16px 20px;
font-size: 0.875rem;
color: var(--fg-dim);
line-height: 1.7;
}
.faq-body code {
font-family: var(--mono);
font-size: 0.85em;
background: var(--surface2);
padding: 2px 6px;
border-radius: 4px;
color: #C084FC;
}
.faq-body pre {
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: 6px;
padding: 12px 16px;
font-family: var(--mono);
font-size: 0.8rem;
overflow-x: auto;
margin-top: 10px;
color: #CBD5E1;
}
/* ── Footer ──────────────────────────────────────────── */
footer {
border-top: 1px solid var(--border);
padding: 32px 0;
}
.footer-inner {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
}
.footer-inner p {
font-size: 0.8125rem;
color: var(--muted);
}
.footer-links {
display: flex;
gap: 20px;
}
.footer-links a {
font-size: 0.8125rem;
color: var(--muted);
transition: color 150ms;
}
.footer-links a:hover { color: var(--fg); text-decoration: none; }
/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
.hero { padding: 48px 0 40px; }
.features { grid-template-columns: 1fr; }
.footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { transition: none !important; }
}
</style>
</head>
<body>
<!-- ── Header ────────────────────────────────────────────── -->
<header>
<div class="container">
<div class="header-inner">
<div class="logo">
<div class="logo-icon" aria-hidden="true">
<!-- Git branch / merge icon -->
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#0F172A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<line x1="6" y1="3" x2="6" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/>
</svg>
</div>
helm-pr-generator
</div>
<nav class="header-links" aria-label="External links">
<a href="https://github.com/devops-ia/helm-pr-generator" target="_blank" rel="noopener">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg>
GitHub
</a>
<a href="https://artifacthub.io/packages/search?repo=helm-pr-generator" target="_blank" rel="noopener">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>
Artifact Hub
</a>
<a href="https://github.com/devops-ia/pr-generator" target="_blank" rel="noopener">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
Upstream
</a>
</nav>
</div>
</div>
</header>
<!-- ── Hero ──────────────────────────────────────────────── -->
<section class="hero" aria-labelledby="hero-title">
<div class="container">
<div class="badge" aria-label="GitOps / Automation category">
<svg width="10" height="10" viewBox="0 0 10 10" fill="var(--accent)" aria-hidden="true"><circle cx="5" cy="5" r="5"/></svg>
GitOps · Automation · Kubernetes
</div>
<h1 id="hero-title">
Helm Chart for<br/><span>pr-generator</span>
</h1>
<p>
Community-maintained chart that deploys <strong>pr-generator</strong> —
an automated pull request daemon for <strong>GitHub</strong> and <strong>Bitbucket Cloud</strong>,
designed for ArgoCD Image Updater and GitOps workflows.
</p>
<div class="badges">
<a href="https://artifacthub.io/packages/search?repo=helm-pr-generator" target="_blank" rel="noopener">
<img src="https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/helm-pr-generator" alt="Artifact Hub" />
</a>
<img id="badge-chart-version" src="https://img.shields.io/badge/chart-loading-8B5CF6?style=flat&logo=helm&logoColor=white" alt="Chart version" />
<img id="badge-app-version" src="https://img.shields.io/badge/app-loading-3B82F6?style=flat" alt="App version" />
<img src="https://img.shields.io/badge/License-Apache%202.0-yellow.svg?style=flat" alt="Apache 2.0 License" />
<a href="https://github.com/devops-ia/helm-pr-generator/actions/workflows/helm-lint.yml" target="_blank" rel="noopener">
<img src="https://github.com/devops-ia/helm-pr-generator/actions/workflows/helm-lint.yml/badge.svg" alt="Helm Lint" />
</a>
</div>
<div class="quickstart" role="region" aria-label="Quick install commands">
<div class="quickstart-header">
<span>Quick start</span>
<button class="copy-btn" id="copy-hero" aria-label="Copy install commands">Copy</button>
</div>
<pre id="hero-code" aria-label="Helm install commands"><span class="prompt">$ </span><span class="cmd">helm</span> repo <span class="arg">add</span> <span class="val">helm-pr-generator</span> https://devops-ia.github.io/helm-pr-generator
<span class="prompt">$ </span><span class="cmd">helm</span> repo <span class="arg">update</span>
<span class="prompt">$ </span><span class="cmd">helm</span> <span class="arg">install</span> <span class="val">pr-generator</span> helm-pr-generator/pr-generator \
<span class="arg">--set</span> <span class="val">config.providers.github.owner</span>=my-org \
<span class="arg">--set</span> <span class="val">config.providers.github.repo</span>=my-repo \
<span class="arg">--set</span> <span class="val">config.providers.github.appId</span>="123456" \
<span class="arg">--set</span> <span class="val">secrets.github.privateKey</span>="$(cat github-app.pem)"</pre>
</div>
</div>
</section>
<!-- ── Features ───────────────────────────────────────────── -->
<section aria-labelledby="features-title">
<div class="container">
<p class="section-label">Features</p>
<h2 class="section-title" id="features-title">Everything you need, out of the box</h2>
<p class="section-desc">Production-ready defaults with security hardening, flexible multi-provider support, annotation-based ArgoCD discovery, and built-in Prometheus observability.</p>
<div class="features">
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/></svg>
</div>
<h3>GitHub App & PAT</h3>
<p>Supports GitHub App (PEM key) and Personal Access Token auth. Switch per provider with <code>authMethod</code>.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
</div>
<h3>Bitbucket Cloud</h3>
<p>Full Bitbucket Cloud support via access token. Run GitHub and Bitbucket providers side by side.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="7" width="20" height="14" rx="2" ry="2"/><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/></svg>
</div>
<h3>Multi-provider</h3>
<p>Declare multiple named provider instances — different GitHub orgs, multiple Bitbucket workspaces — all in one deployment.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
</div>
<h3>Security-hardened</h3>
<p>Non-root user, read-only filesystem, dropped capabilities, <code>automountServiceAccountToken: false</code>, and dedicated ServiceAccount.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"/><polyline points="17 6 23 6 23 12"/></svg>
</div>
<h3>Auto-rollout</h3>
<p>Pod annotation <code>checksum/config</code> triggers a rolling restart whenever <code>config.*</code> values change. No manual rollout needed.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
</div>
<h3>PDB & probes</h3>
<p>PodDisruptionBudget protects against involuntary eviction. Liveness, readiness, and startup probes are all configurable.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>
</div>
<h3>Flexible secrets</h3>
<p>Chart-managed inline secrets or <code>existingSecret</code> for External Secrets Operator and Vault integration.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
</div>
<h3>Dry-run mode</h3>
<p>Enable <code>config.dryRun: true</code> to simulate PR creation without touching any repository. Safe to test in production clusters.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/></svg>
</div>
<h3>ArgoCD ready</h3>
<p>Designed to pair with ArgoCD Image Updater. Watches branches created by the updater and opens PRs automatically.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 20l4-16m2 16l4-16M6 9h14M4 15h14"/></svg>
</div>
<h3>Annotation discovery</h3>
<p>Each ArgoCD Application declares its own PR rules via annotations. Three modes: <code>config_only</code>, <code>annotations_only</code>, <code>hybrid</code>.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3v18h18"/><polyline points="18 17 13 12 9 16 5 12"/></svg>
</div>
<h3>Prometheus metrics</h3>
<p>Built-in <code>/metrics</code> endpoint with counters, histograms, and gauges. Pod annotations and ServiceMonitor included.</p>
</div>
</div>
</div>
</section>
<!-- ── Install ────────────────────────────────────────────── -->
<section aria-labelledby="install-title">
<div class="container">
<p class="section-label">Usage</p>
<h2 class="section-title" id="install-title">Add the repository</h2>
<p class="section-desc">
<a href="https://helm.sh" target="_blank" rel="noopener">Helm</a> must be installed.
Once set up, add this repository and install the chart.
</p>
<div class="code-block" role="region" aria-label="Install with GitHub App">
<div class="code-block-header">
<span>bash — GitHub App (recommended)</span>
<button class="copy-btn" id="copy-app" aria-label="Copy GitHub App install">Copy</button>
</div>
<pre id="code-app"><span class="comment"># Add the repository</span>
<span class="prompt">$ </span><span class="cmd">helm</span> repo <span class="arg">add</span> <span class="val">helm-pr-generator</span> https://devops-ia.github.io/helm-pr-generator
<span class="prompt">$ </span><span class="cmd">helm</span> repo <span class="arg">update</span>
<span class="comment"># Install with GitHub App authentication</span>
<span class="prompt">$ </span><span class="cmd">helm</span> <span class="arg">install</span> <span class="val">pr-generator</span> helm-pr-generator/pr-generator \
<span class="arg">--namespace</span> pr-generator <span class="arg">--create-namespace</span> \
<span class="arg">--set</span> <span class="val">config.providers.github.owner</span>=my-org \
<span class="arg">--set</span> <span class="val">config.providers.github.repo</span>=my-repo \
<span class="arg">--set</span> <span class="val">config.providers.github.appId</span>="123456" \
<span class="arg">--set</span> <span class="val">config.providers.github.installationId</span>="78901234" \
<span class="arg">--set</span> <span class="val">secrets.github.privateKey</span>="$(cat github-app.pem)"</pre>
</div>
<div class="code-block" role="region" aria-label="Install with PAT">
<div class="code-block-header">
<span>bash — GitHub PAT</span>
<button class="copy-btn" id="copy-pat" aria-label="Copy PAT install">Copy</button>
</div>
<pre id="code-pat"><span class="prompt">$ </span><span class="cmd">helm</span> <span class="arg">install</span> <span class="val">pr-generator</span> helm-pr-generator/pr-generator \
<span class="arg">--namespace</span> pr-generator <span class="arg">--create-namespace</span> \
<span class="arg">--set</span> <span class="val">config.providers.github.authMethod</span>=pat \
<span class="arg">--set</span> <span class="val">config.providers.github.owner</span>=my-org \
<span class="arg">--set</span> <span class="val">config.providers.github.repo</span>=my-repo \
<span class="arg">--set</span> <span class="val">secrets.github.token</span>="ghp_xxxx"</pre>
</div>
<div class="code-block" role="region" aria-label="Upgrade command">
<div class="code-block-header">
<span>bash — Upgrade</span>
<button class="copy-btn" id="copy-upgrade" aria-label="Copy upgrade command">Copy</button>
</div>
<pre id="code-upgrade"><span class="prompt">$ </span><span class="cmd">helm</span> repo <span class="arg">update</span>
<span class="prompt">$ </span><span class="cmd">helm</span> <span class="arg">upgrade</span> <span class="val">pr-generator</span> helm-pr-generator/pr-generator</pre>
</div>
</div>
</section>
<!-- ── ArgoCD Integration ─────────────────────────────────── -->
<section aria-labelledby="argocd-title">
<div class="container">
<p class="section-label">ArgoCD Image Updater</p>
<h2 class="section-title" id="argocd-title">GitOps integration</h2>
<p class="section-desc">
pr-generator is designed to close the loop when ArgoCD Image Updater pushes a commit
to a new branch. Configure it to watch that branch pattern and open the PR automatically.
</p>
<div class="code-block" role="region" aria-label="ArgoCD integration values">
<div class="code-block-header">
<span>values.yaml — ArgoCD Image Updater pattern</span>
<button class="copy-btn" id="copy-argocd" aria-label="Copy ArgoCD config">Copy</button>
</div>
<pre id="code-argocd"><span class="key">config</span>:
<span class="key">scanFrequency</span>: <span class="str">300</span>
<span class="key">providers</span>:
<span class="key">github</span>:
<span class="key">enabled</span>: <span class="str">true</span>
<span class="key">owner</span>: <span class="str">my-org</span>
<span class="key">repo</span>: <span class="str">my-app</span>
<span class="key">appId</span>: <span class="str">"123456"</span>
<span class="key">installationId</span>: <span class="str">"78901234"</span>
<span class="key">rules</span>:
- <span class="key">pattern</span>: <span class="str">"argocd-image-updater-.*-dev-.*"</span> <span class="comment"># regex matching Image Updater branches</span>
<span class="key">destinations</span>:
<span class="key">github</span>: <span class="str">develop</span>
- <span class="key">pattern</span>: <span class="str">"argocd-image-updater-.*-pro-.*"</span>
<span class="key">destinations</span>:
<span class="key">github</span>: <span class="str">main</span>
<span class="key">secrets</span>:
<span class="key">github</span>:
<span class="key">existingSecret</span>: <span class="str">github-app-secret</span> <span class="comment"># key: private-key.pem</span></pre>
</div>
<div class="callout">
<strong>Tip:</strong> Set <code>config.dryRun: true</code> first to verify branch matching before enabling live PR creation.
The daemon logs which branches matched each rule on every scan cycle.
</div>
</div>
</section>
<!-- ── Annotation Discovery ──────────────────────────────── -->
<section aria-labelledby="ann-title">
<div class="container">
<p class="section-label">ArgoCD annotation discovery</p>
<h2 class="section-title" id="ann-title">Per-app rule discovery</h2>
<p class="section-desc">
Let each ArgoCD Application declare its own PR rules via annotations — no central
<code>config.rules</code> change needed when onboarding a new application. Mirrors the model used by ArgoCD Image Updater.
</p>
<div class="code-block" role="region" aria-label="Annotation discovery values">
<div class="code-block-header">
<span>values.yaml — enable annotation discovery</span>
<button class="copy-btn" id="copy-ann-values" aria-label="Copy annotation discovery values">Copy</button>
</div>
<pre id="code-ann-values"><span class="key">annotationDiscovery</span>:
<span class="key">enabled</span>: <span class="str">true</span>
<span class="key">mode</span>: <span class="str">hybrid</span> <span class="comment"># config_only | annotations_only | hybrid</span>
<span class="key">annotationPrefix</span>: <span class="str">"pr-generator.io"</span></pre>
</div>
<div class="code-block" role="region" aria-label="ArgoCD Application annotation schema">
<div class="code-block-header">
<span>ArgoCD Application — annotation schema</span>
<button class="copy-btn" id="copy-ann-app" aria-label="Copy annotation schema">Copy</button>
</div>
<pre id="code-ann-app"><span class="key">apiVersion</span>: <span class="str">argoproj.io/v1alpha1</span>
<span class="key">kind</span>: <span class="str">Application</span>
<span class="key">metadata</span>:
<span class="key">name</span>: <span class="str">my-app</span>
<span class="key">namespace</span>: <span class="str">argocd</span>
<span class="key">annotations</span>:
<span class="key">pr-generator.io/enabled</span>: <span class="str">"true"</span>
<span class="key">pr-generator.io/pattern</span>: <span class="str">"argocd-image-updater-.*-dev-.*"</span>
<span class="key">pr-generator.io/destination.github</span>: <span class="str">"develop"</span>
<span class="key">pr-generator.io/destination.bitbucket</span>: <span class="str">"dev"</span></pre>
</div>
<div class="callout">
<strong>RBAC:</strong> Enabling annotation discovery automatically creates a <code>ClusterRole</code> and
<code>ClusterRoleBinding</code> granting the chart ServiceAccount <code>get</code>/<code>list</code> on
<code>applications.argoproj.io</code> cluster-wide. Requires <code>serviceAccount.create: true</code>.
</div>
</div>
</section>
<!-- ── Prometheus Metrics ────────────────────────────────── -->
<section aria-labelledby="metrics-title">
<div class="container">
<p class="section-label">Observability</p>
<h2 class="section-title" id="metrics-title">Prometheus metrics</h2>
<p class="section-desc">
Built-in <code>/metrics</code> endpoint (Prometheus format) on the health port (<code>8080</code>).
Enabled by default — no extra configuration required for basic scraping.
</p>
<div class="table-wrap">
<table>
<thead>
<tr><th>Metric</th><th>Type</th><th>Description</th></tr>
</thead>
<tbody>
<tr><td><code>pr_generator_prs_created_total</code></td><td>Counter</td><td>PRs successfully created, labelled by provider and destination</td></tr>
<tr><td><code>pr_generator_prs_skipped_total</code></td><td>Counter</td><td>PRs skipped because one already exists</td></tr>
<tr><td><code>pr_generator_prs_failed_total</code></td><td>Counter</td><td>PR creation failures, labelled by error type</td></tr>
<tr><td><code>pr_generator_scan_cycles_total</code></td><td>Counter</td><td>Completed scan cycles by result (success / partial / error)</td></tr>
<tr><td><code>pr_generator_scan_duration_seconds</code></td><td>Histogram</td><td>Wall-clock duration of each scan cycle</td></tr>
<tr><td><code>pr_generator_rules_active</code></td><td>Gauge</td><td>Active scan rules at end of last cycle</td></tr>
<tr><td><code>pr_generator_annotation_rules_discovered</code></td><td>Gauge</td><td>Rules discovered from ArgoCD Application annotations</td></tr>
<tr><td><code>pr_generator_provider_errors_total</code></td><td>Counter</td><td>Provider-level errors by provider and error type</td></tr>
<tr><td><code>pr_generator_up</code></td><td>Gauge</td><td>1 after first successful scan cycle, 0 on startup</td></tr>
</tbody>
</table>
</div>
<div class="code-block" role="region" aria-label="Scrape metrics">
<div class="code-block-header">
<span>bash — scrape metrics manually</span>
<button class="copy-btn" id="copy-metrics-curl" aria-label="Copy metrics curl">Copy</button>
</div>
<pre id="code-metrics-curl"><span class="prompt">$ </span><span class="cmd">kubectl</span> port-forward svc/pr-generator 8080:8080 -n pr-generator
<span class="prompt">$ </span><span class="cmd">curl</span> -s http://localhost:8080/metrics | grep pr_generator</pre>
</div>
<div class="code-block" role="region" aria-label="ServiceMonitor values">
<div class="code-block-header">
<span>values.yaml — Prometheus Operator ServiceMonitor</span>
<button class="copy-btn" id="copy-metrics-helm" aria-label="Copy ServiceMonitor values">Copy</button>
</div>
<pre id="code-metrics-helm"><span class="key">metrics</span>:
<span class="key">enabled</span>: <span class="str">true</span>
<span class="key">serviceMonitor</span>:
<span class="key">enabled</span>: <span class="str">true</span> <span class="comment"># requires Prometheus Operator CRDs</span>
<span class="key">interval</span>: <span class="str">30s</span>
<span class="key">scrapeTimeout</span>: <span class="str">10s</span>
<span class="key">labels</span>:
<span class="key">release</span>: <span class="str">kube-prometheus-stack</span> <span class="comment"># must match serviceMonitorSelector</span></pre>
</div>
</div>
</section>
<!-- ── Key values ─────────────────────────────────────────── -->
<section aria-labelledby="config-title">
<div class="container">
<p class="section-label">Configuration</p>
<h2 class="section-title" id="config-title">Key values</h2>
<p class="section-desc">
Common values to get started. Full reference at
<a href="https://github.com/devops-ia/helm-pr-generator/blob/main/charts/pr-generator/values.yaml" target="_blank" rel="noopener">values.yaml</a>.
</p>
<div class="table-wrap">
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>config.scanFrequency</code></td>
<td>Seconds between branch scan cycles.</td>
<td><span class="val-default">300</span></td>
</tr>
<tr>
<td><code>config.dryRun</code></td>
<td>Simulate PR creation without modifying repositories.</td>
<td><span class="val-default">false</span></td>
</tr>
<tr>
<td><code>config.providers.github.enabled</code></td>
<td>Enable the GitHub provider instance.</td>
<td><span class="val-default">false</span></td>
</tr>
<tr>
<td><code>config.providers.github.authMethod</code></td>
<td><code>app</code> (GitHub App PEM) or <code>pat</code> (Personal Access Token).</td>
<td><span class="val-default">"app"</span></td>
</tr>
<tr>
<td><code>config.providers.github.owner</code></td>
<td>GitHub org or user that owns the repository.</td>
<td><span class="val-default">""</span></td>
</tr>
<tr>
<td><code>config.providers.github.repo</code></td>
<td>Repository name (without org prefix).</td>
<td><span class="val-default">""</span></td>
</tr>
<tr>
<td><code>config.providers.github.appId</code></td>
<td>GitHub App ID (string). Required when <code>authMethod: app</code>.</td>
<td><span class="val-default">""</span></td>
</tr>
<tr>
<td><code>config.rules</code></td>
<td>List of rules: <code>pattern</code> (regex) + <code>destinations</code> map of provider-key → branch. Can be empty when <code>annotationDiscovery.mode: annotations_only</code>.</td>
<td><span class="val-default">[]</span></td>
</tr>
<tr>
<td><code>secrets.github.existingSecret</code></td>
<td>Name of an existing Secret with the GitHub credential key. Shared by all GitHub providers.</td>
<td><span class="val-default">""</span></td>
</tr>
<tr>
<td><code>secrets.bitbucket.existingSecret</code></td>
<td>Name of an existing Secret with the Bitbucket credential key. Shared by all Bitbucket providers.</td>
<td><span class="val-default">""</span></td>
</tr>
<tr>
<td><code>annotationDiscovery.enabled</code></td>
<td>Read ArgoCD Application CRs to derive scan rules. Creates ClusterRole + ClusterRoleBinding automatically.</td>
<td><span class="val-default">false</span></td>
</tr>
<tr>
<td><code>annotationDiscovery.mode</code></td>
<td><code>config_only</code>, <code>annotations_only</code>, or <code>hybrid</code>.</td>
<td><span class="val-default">"hybrid"</span></td>
</tr>
<tr>
<td><code>metrics.enabled</code></td>
<td>Expose <code>/metrics</code> (Prometheus format) on the health port. Adds pod scrape annotations.</td>
<td><span class="val-default">true</span></td>
</tr>
<tr>
<td><code>metrics.serviceMonitor.enabled</code></td>
<td>Create a Prometheus Operator <code>ServiceMonitor</code>. Requires Operator CRDs installed.</td>
<td><span class="val-default">false</span></td>
</tr>
<tr>
<td><code>serviceAccount.create</code></td>
<td>Create a dedicated ServiceAccount with <code>automountServiceAccountToken: false</code>.</td>
<td><span class="val-default">true</span></td>
</tr>
<tr>
<td><code>podDisruptionBudget.enabled</code></td>
<td>Create a PodDisruptionBudget to protect against involuntary eviction.</td>
<td><span class="val-default">false</span></td>
</tr>
<tr>
<td><code>resources</code></td>
<td>Pod resource requests and limits.</td>
<td><span class="val-default">{}</span></td>
</tr>
<tr>
<td><code>image.tag</code></td>
<td>Image tag. Defaults to chart <code>appVersion</code> when empty.</td>
<td><span class="val-default">""</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- ── Troubleshooting ────────────────────────────────────── -->
<section aria-labelledby="faq-title">
<div class="container">
<p class="section-label">Troubleshooting</p>
<h2 class="section-title" id="faq-title">Common issues</h2>
<p class="section-desc">Most issues come down to auth configuration or branch pattern matching.</p>
<details>
<summary>No PRs being created — branches exist but nothing happens</summary>
<div class="faq-body">
<p>Check the daemon logs first:</p>
<pre>kubectl logs -n pr-generator deploy/pr-generator -f</pre>
<p style="margin-top:10px">Common causes:</p>
<ul style="padding-left:18px;margin-top:6px;line-height:1.9">
<li>Branch pattern does not match. Test your regex against the actual branch name.</li>
<li><code>config.dryRun</code> is <code>true</code> — PRs are simulated but not created.</li>
<li>The provider is disabled (<code>enabled: false</code>).</li>
<li>A PR already exists for that branch — the daemon skips duplicates.</li>
</ul>
</div>
</details>
<details>
<summary>GitHub App: "could not read private key" or "installation not found"</summary>
<div class="faq-body">
<p>Two separate issues:</p>
<ul style="padding-left:18px;margin-top:6px;line-height:1.9">
<li><strong>Private key not found:</strong> confirm the Secret key name matches <code>privateKeyKey</code> (default: <code>privateKey</code>). The PEM must be the complete RSA key including header/footer lines.</li>
<li><strong>Installation not found:</strong> <code>installationId</code> must be the numeric ID shown on the GitHub App installation settings page, not the App ID.</li>
</ul>
<pre>kubectl get secret <github-secret> -o jsonpath='{.data.privateKey}' | base64 -d | head -1
# should print: -----BEGIN RSA PRIVATE KEY-----</pre>
</div>
</details>
<details>
<summary>Multi-provider: duplicate tokenEnv error on startup</summary>
<div class="faq-body">
<p>Each provider of the same type must use a unique <code>tokenEnv</code> value. If two Bitbucket providers share the same env var name, the daemon raises a <code>ValueError</code> at startup to prevent silent credential overwrite.</p>
<pre>config:
providers:
bitbucket:
tokenEnv: BITBUCKET_TOKEN # provider 1
bitbucket-org2:
type: bitbucket
tokenEnv: BITBUCKET_ORG2_TOKEN # must be different</pre>
</div>
</details>
<details>
<summary>Helm schema validation: appId must be a string</summary>
<div class="faq-body">
<p>The <code>values.schema.json</code> requires <code>appId</code> and <code>installationId</code> to be strings. When using <code>--set</code> on the CLI, Helm auto-parses numeric values as integers. Use quotes:</p>
<pre>helm install ... --set config.providers.github.appId="123456"
# ^ ^
# quoted string</pre>
<p style="margin-top:10px">Or use a values file where YAML quotes are explicit.</p>
</div>
</details>
</div>
</section>
<!-- ── Footer ────────────────────────────────────────────────── -->
<footer>
<div class="container">
<div class="footer-inner">
<p>Released under the <a href="https://github.com/devops-ia/helm-pr-generator/blob/main/LICENSE" target="_blank" rel="noopener">Apache 2.0 License</a>. Maintained by <a href="https://github.com/devops-ia" target="_blank" rel="noopener">devops-ia</a>.</p>