Skip to content

Commit 2cc6b32

Browse files
authored
docs: upgrading notes (postgres archive and ARGO_TEMPLATE) (#13803)
Signed-off-by: Alan Clucas <[email protected]>
1 parent 0641f0b commit 2cc6b32

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

docs/upgrading.md

+14
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ Use `ARGO_ALLOWED_LINK_PROTOCOL` and `ARGO_BASE_HREF` instead.
3030

3131
For the Emissary executor to work properly, you must set up RBAC. See [workflow RBAC](workflow-rbac.md)
3232

33+
### Archived Workflows on PostgreSQL
34+
35+
This upgrade will transform an archived workflow column from type `json` to type `jsonb`.
36+
This will take some time if you have a lot of archived workflows.
37+
This requires PostgreSQL version 9.4 or higher.
38+
39+
You can perform this modification prior to upgrading with `alter table argo_archived_workflows alter column workflow set data type jsonb using workflow::jsonb`.
40+
This is considered safe to do whilst running version 3.5 as the column types are compatible.
41+
3342
### Metrics changes
3443

3544
You can now retrieve metrics using the OpenTelemetry Protocol using the [OpenTelemetry collector](https://opentelemetry.io/docs/collector/), and this is the recommended mechanism.
@@ -95,6 +104,11 @@ To disable this set `metricsConfig.secure` to `false`.
95104
When returning a map or array in an expression, you would get a Golang representation.
96105
This now returns plain JSON.
97106

107+
### `ARGO_TEMPLATE` removed from main container
108+
109+
The environment variable `ARGO_TEMPLATE` which is an internal implementation detail is no longer available inside the `main` container of your workflow pods.
110+
This is documented here as we are aware that some users of Argo Workflows use this.
111+
98112
## Upgrading to v3.5
99113

100114
There are no known breaking changes in this release.

docs/workflow-archive.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> v2.5 and after
44
5-
If you want to keep completed workflows for a long time, you can use the workflow archive to save them in a Postgres or MySQL (>= 5.7.8) database.
5+
If you want to keep completed workflows for a long time, you can use the workflow archive to save them in a Postgres (>=9.4) or MySQL (>= 5.7.8) database.
66
The workflow archive stores the status of the workflow, which pods have been executed, what was the result etc.
77
The job logs of the workflow pods will not be archived.
88
If you need to save the logs of the pods, you must setup an [artifact repository](artifact-repository-ref.md) according to [this doc](configure-artifact-repository.md).
@@ -17,7 +17,7 @@ To enable archiving of the workflows, you must configure database parameters in
1717

1818
Example:
1919

20-
persistence:
20+
persistence:
2121
archive: true
2222
postgresql:
2323
host: localhost
@@ -56,7 +56,7 @@ In this case you can delete all the above tables and restart the workflow-contro
5656

5757
If you know what are you doing you also have an option to skip migration:
5858

59-
persistence:
59+
persistence:
6060
skipMigration: true
6161

6262
## Required database permissions
@@ -72,7 +72,7 @@ The default is forever.
7272

7373
Example:
7474

75-
persistence:
75+
persistence:
7676
archiveTTL: 10d
7777

7878
The `ARCHIVED_WORKFLOW_GC_PERIOD` variable defines the periodicity of running the garbage collection function.
@@ -86,7 +86,7 @@ Optionally you can set a unique name of your Kubernetes cluster. This name will
8686

8787
Example:
8888

89-
persistence:
89+
persistence:
9090
clusterName: dev-cluster
9191

9292
## Disabling Workflow Archive
@@ -95,5 +95,5 @@ To disable archiving of the workflows, set `archive:` to `false` in the `persis
9595

9696
Example:
9797

98-
persistence:
98+
persistence:
9999
archive: false

0 commit comments

Comments
 (0)