Skip to content

Commit

Permalink
Merge pull request #1826 from lcarva/fix-volatile-config-docs
Browse files Browse the repository at this point in the history
Fix volatileConfigs docs format
  • Loading branch information
lcarva authored Aug 5, 2024
2 parents 0fee105 + 7b27b9a commit ade5933
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions docs/modules/ROOT/pages/configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,36 @@ sources:
- value: java
effectiveOn: "2024-12-31T00:00:00Z"
----
JSON::
+
[source,json]
----
{
"sources": [
{
"policy": [
"oci::quay.io/enterprise-contract/ec-release-policy:latest"
],
"data": [
"git::https://github.com/enterprise-contract/ec-policies//example/data"
],
"volatileConfig": {
"exclude": [
{
"value": "test",
"effectiveUntil": "2024-12-31T00:00:00Z"
},
{
"value": "java",
"effectiveOn": "2024-12-31T00:00:00Z"
}
]
}
}
]
}
----
===
If both `volatileConfig` and `config` are used, they are both processed by the EC CLI as if they
were merged together.
Expand All @@ -157,6 +187,32 @@ sources:
- value: test
imageRef: sha256:4e388ab32b10dc8dbc7e28144f552830adc74787c1e2c0824032078a79f227fb
----
JSON::
+
[source,json]
----
{
"sources": [
{
"policy": [
"oci::quay.io/enterprise-contract/ec-release-policy:latest"
],
"data": [
"git::https://github.com/enterprise-contract/ec-policies//example/data"
],
"volatileConfig": {
"exclude": [
{
"value": "test",
"imageRef": "sha256:4e388ab32b10dc8dbc7e28144f552830adc74787c1e2c0824032078a79f227fb"
}
]
}
}
]
}
----
===

== Examples

Expand Down

0 comments on commit ade5933

Please sign in to comment.