Skip to content

Commit

Permalink
Merge pull request #259 from blockchaintp/release/chronicle-0.7.6
Browse files Browse the repository at this point in the history
* Update to chronicle 0.7.6
  • Loading branch information
ryan-s-roberts committed May 1, 2024
2 parents f09e8f3 + e4bcb1a commit 5c75c77
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion charts/chronicle-on-sawtooth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: 0.1.24

# This is the version number of Chronicle being deployed. This version
# number should be incremented each time you make changes to Chronicle.
appVersion: 0.7.4
appVersion: 0.7.6

dependencies:
- name: standard-defs
Expand Down
4 changes: 2 additions & 2 deletions charts/chronicle-on-sawtooth/templates/chronicle-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ spec:
--sawtooth-address tcp://$HOST:$PORT \
get-policy \
--id {{ .Values.opa.policy.id }} \
--output /shared-data/policy.bin
--output /shared-data/policy.bin || true
if [ -f "/shared-data/policy.bin" ]; then
echo "Policy already set."
Expand Down Expand Up @@ -200,7 +200,7 @@ spec:
set-policy \
--id {{ .Values.opa.policy.id }} \
-p {{ .Values.opa.policy.url }} \
--root-key /shared-data/root.pem
--root-key /shared-data/root.pem || true
fi
env: {{ include "lib.safeToYaml" .Values.env | nindent 12 }}
- name: HOST
Expand Down
10 changes: 5 additions & 5 deletions charts/chronicle-on-sawtooth/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ spec:
- bash
- -c
- |
PROBE_ID="startup_$(LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | head -c 13)" &&
PROBE_ID="liveness_$(LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | head -c 13)" &&
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") &&
echo '[
{
Expand All @@ -186,7 +186,7 @@ spec:
}
]' > /tmp/import.json &&
echo "Probe ID: $PROBE_ID" &&
chronicle \
RUST_LOG=error chronicle \
-c /etc/chronicle/config/config.toml \
--console-logging json \
--sawtooth tcp://{{ include "chronicle.sawtooth.service" . }}:{{ include "chronicle.sawtooth.sawcomp" . }} \
Expand All @@ -197,7 +197,7 @@ spec:
{{- if not .Values.opa.enabled }}
--embedded-opa-policy \
{{- end }}
import {{ .Values.livenessProbe.namespaceName }} {{ .Values.livenessProbe.namespaceUuid }} < /tmp/import.json
import {{ .Values.livenessProbe.namespaceName }} {{ .Values.livenessProbe.namespaceUuid }} /tmp/import.json
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
Expand Down Expand Up @@ -236,7 +236,7 @@ spec:
}
]' > /tmp/import.json &&
echo "Probe ID: $PROBE_ID" &&
chronicle \
RUST_LOG=error chronicle \
-c /etc/chronicle/config/config.toml \
--console-logging json \
--sawtooth tcp://{{ include "chronicle.sawtooth.service" . }}:{{ include "chronicle.sawtooth.sawcomp" . }} \
Expand All @@ -247,7 +247,7 @@ spec:
{{- if not .Values.opa.enabled }}
--embedded-opa-policy \
{{- end }}
import {{ .Values.startUpProbe.namespaceName }} {{ .Values.startUpProbe.namespaceUuid }} < /tmp/import.json
import {{ .Values.startUpProbe.namespaceName }} {{ .Values.startUpProbe.namespaceUuid }} /tmp/import.json
initialDelaySeconds: {{ .Values.startUpProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.startUpProbe.periodSeconds }}
timeoutSeconds: {{ .Values.startUpProbe.timeoutSeconds }}
Expand Down
14 changes: 7 additions & 7 deletions charts/chronicle-on-sawtooth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ startUpProbe:
## @md | `startUpProbe.periodSeconds` | how often (in seconds) to perform the probe | 10 |
periodSeconds: 10
## @md | `startUpProbe.timeoutSeconds` | number of seconds after which the probe times out | 3 |
timeoutSeconds: 3
timeoutSeconds: 30
## @md | `startUpProbe.namespaceName` | the Chronicle namespace in which the probe operates | default |
namespaceName: default
## @md | `startUpProbe.namespaceUuid` | the UUID of the Chronicle namespace in which the probe operates | fd717fd6-70f1-44c1-81de-287d5e101089 |
Expand All @@ -64,7 +64,7 @@ devIdProvider:
## @md | `devIdProvider.image.repository` | the image repository | blockchaintp/id-provider |
repository: blockchaintp/id-provider-amd64
## @md | `devIdProvider.image.tag` | the image tag | latest |
tag: BTP2.1.0-0.7.3
tag: BTP2.1.0-0.7.6

## @md | `extraVolumes` | a list of additional volumes to add to chronicle | [] |
extraVolumes: []
Expand All @@ -75,7 +75,7 @@ image:
## @md | `image.repository` | the repository of the image | blockchaintp/chronicle |
repository: blockchaintp/chronicle-amd64
## @md | `image.tag`| the tag of the image to use | latest |
tag: BTP2.1.0-0.7.3
tag: BTP2.1.0-0.7.6
## @md | `image.pullPolicy` | the image pull policy to use | IfNotPresent |
pullPolicy: IfNotPresent

Expand Down Expand Up @@ -128,7 +128,7 @@ opa:
## @md | `image.repository` | the repository of the image | blockchaintp/chronicle |
repository: blockchaintp/opactl-amd64
## @md | `image.tag`| the tag of the image to use | latest |
tag: BTP2.1.0-0.7.3
tag: BTP2.1.0-0.7.6
policy:
entrypoint: allow_transactions.allowed_users
id: allow_transactions
Expand All @@ -138,7 +138,7 @@ opa:
## @md | `image.repository` | the repository of the image | blockchaintp/chronicle |
repository: blockchaintp/opa-tp-amd64
## @md | `image.tag`| the tag of the image to use | latest |
tag: BTP2.1.0-0.7.3
tag: BTP2.1.0-0.7.6
## @md | `image.pullPolicy` | the image pull policy to use | IfNotPresent |
pullPolicy: IfNotPresent
## @md | `opa.tp.resources` | resources | map | nil |
Expand Down Expand Up @@ -172,7 +172,7 @@ test:
## @md | `test.api.image.repository` | the image repository | blockchaintp/chronicle-helm-api-test |
repository: blockchaintp/chronicle-helm-api-test-amd64
## @md | `test.api.image.tag` | the image tag | latest |
tag: BTP2.1.0-0.7.3
tag: BTP2.1.0-0.7.6
## @md | `test.auth` | test the chronicle auth server API |
auth:
## @md | `test.auth.enabled` | true to enable auth-related testing | false |
Expand Down Expand Up @@ -248,7 +248,7 @@ tp:
## @md | `tp.image.repository` | the image repository | blockchaintp/chronicle-tp |
repository: blockchaintp/chronicle-tp-amd64
## @md | `tp.image.tag` | the image tag | latest |
tag: BTP2.1.0-0.7.3
tag: BTP2.1.0-0.7.6
## @md | `tp.extraVolumes` | extra volumes declarations for the chronicle-tp deployment | list | nil
extraVolumes:
## @md | `tp.extraVolumeMounts` | extra volume mounts for chronicle-tp deployment | list | nil
Expand Down
4 changes: 2 additions & 2 deletions charts/chronicle/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
apiVersion: v2
name: chronicle-on-sawtooth
name: chronicle
description: |
Chronicle is an open-source, blockchain-backed, domain-agnostic provenance
product. Chronicle makes it easy for users to record and query immutable
Expand All @@ -21,7 +21,7 @@ version: 0.1.24

# This is the version number of Chronicle being deployed. This version
# number should be incremented each time you make changes to Chronicle.
appVersion: 0.7.4
appVersion: 0.7.6

dependencies:
- name: standard-defs
Expand Down
4 changes: 2 additions & 2 deletions charts/chronicle/templates/chronicle-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ spec:
--sawtooth-address tcp://$HOST:$PORT \
get-policy \
--id {{ .Values.opa.policy.id }} \
--output /shared-data/policy.bin
--output /shared-data/policy.bin || true
if [ -f "/shared-data/policy.bin" ]; then
echo "Policy already set."
Expand Down Expand Up @@ -200,7 +200,7 @@ spec:
set-policy \
--id {{ .Values.opa.policy.id }} \
-p {{ .Values.opa.policy.url }} \
--root-key /shared-data/root.pem
--root-key /shared-data/root.pem || true
fi
env: {{ include "lib.safeToYaml" .Values.env | nindent 12 }}
- name: HOST
Expand Down
14 changes: 7 additions & 7 deletions charts/chronicle/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ spec:
name: {{ .Values.postgres.existingPasswordSecret }}
key: {{ .Values.postgres.existingPasswordSecretKey }}
{{- else }}
value: {{ .Values.postgres.password | quote }}
value: {{ .Values.postgres.password }}
{{- end }}
{{- include "lib.safeToYaml" .Values.postgres.env | nindent 12 }}
volumeMounts:
Expand Down Expand Up @@ -140,7 +140,7 @@ spec:
name: {{ .Values.postgres.existingPasswordSecret }}
key: {{ .Values.postgres.existingPasswordSecretKey }}
{{- else }}
value: {{ .Values.postgres.password | quote }}
value: {{ .Values.postgres.password }}
{{- end }}
{{- include "lib.safeToYaml" .Values.postgres.env | nindent 12 }}
resources: {{- include "lib.safeToYaml" .Values.resources | nindent 12 }}
Expand All @@ -160,7 +160,7 @@ spec:
- bash
- -c
- |
PROBE_ID="startup_$(LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | head -c 13)" &&
PROBE_ID="liveness_$(LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | head -c 13)" &&
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") &&
echo '[
{
Expand All @@ -186,7 +186,7 @@ spec:
}
]' > /tmp/import.json &&
echo "Probe ID: $PROBE_ID" &&
chronicle \
RUST_LOG=error chronicle \
-c /etc/chronicle/config/config.toml \
--console-logging json \
--sawtooth tcp://{{ include "chronicle.sawtooth.service" . }}:{{ include "chronicle.sawtooth.sawcomp" . }} \
Expand All @@ -197,7 +197,7 @@ spec:
{{- if not .Values.opa.enabled }}
--embedded-opa-policy \
{{- end }}
import {{ .Values.livenessProbe.namespaceName }} {{ .Values.livenessProbe.namespaceUuid }} < /tmp/import.json
import {{ .Values.livenessProbe.namespaceName }} {{ .Values.livenessProbe.namespaceUuid }} /tmp/import.json
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
Expand Down Expand Up @@ -236,7 +236,7 @@ spec:
}
]' > /tmp/import.json &&
echo "Probe ID: $PROBE_ID" &&
chronicle \
RUST_LOG=error chronicle \
-c /etc/chronicle/config/config.toml \
--console-logging json \
--sawtooth tcp://{{ include "chronicle.sawtooth.service" . }}:{{ include "chronicle.sawtooth.sawcomp" . }} \
Expand All @@ -247,7 +247,7 @@ spec:
{{- if not .Values.opa.enabled }}
--embedded-opa-policy \
{{- end }}
import {{ .Values.startUpProbe.namespaceName }} {{ .Values.startUpProbe.namespaceUuid }} < /tmp/import.json
import {{ .Values.startUpProbe.namespaceName }} {{ .Values.startUpProbe.namespaceUuid }} /tmp/import.json
initialDelaySeconds: {{ .Values.startUpProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.startUpProbe.periodSeconds }}
timeoutSeconds: {{ .Values.startUpProbe.timeoutSeconds }}
Expand Down
12 changes: 6 additions & 6 deletions charts/chronicle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ devIdProvider:
## @md | `devIdProvider.image.repository` | the image repository | blockchaintp/id-provider |
repository: blockchaintp/id-provider-amd64
## @md | `devIdProvider.image.tag` | the image tag | latest |
tag: BTP2.1.0-0.7.4
tag: BTP2.1.0-0.7.6

## @md | `extraVolumes` | a list of additional volumes to add to chronicle | [] |
extraVolumes: []
Expand All @@ -75,7 +75,7 @@ image:
## @md | `image.repository` | the repository of the image | blockchaintp/chronicle |
repository: blockchaintp/chronicle-amd64
## @md | `image.tag`| the tag of the image to use | latest |
tag: BTP2.1.0-0.7.4
tag: BTP2.1.0-0.7.6
## @md | `image.pullPolicy` | the image pull policy to use | IfNotPresent |
pullPolicy: IfNotPresent

Expand Down Expand Up @@ -128,7 +128,7 @@ opa:
## @md | `image.repository` | the repository of the image | blockchaintp/chronicle |
repository: blockchaintp/opactl-amd64
## @md | `image.tag`| the tag of the image to use | latest |
tag: BTP2.1.0-0.7.4
tag: BTP2.1.0-0.7.6
policy:
entrypoint: allow_transactions.allowed_users
id: allow_transactions
Expand All @@ -138,7 +138,7 @@ opa:
## @md | `image.repository` | the repository of the image | blockchaintp/chronicle |
repository: blockchaintp/opa-tp-amd64
## @md | `image.tag`| the tag of the image to use | latest |
tag: BTP2.1.0-0.7.4
tag: BTP2.1.0-0.7.6
## @md | `image.pullPolicy` | the image pull policy to use | IfNotPresent |
pullPolicy: IfNotPresent
## @md | `opa.tp.resources` | resources | map | nil |
Expand Down Expand Up @@ -172,7 +172,7 @@ test:
## @md | `test.api.image.repository` | the image repository | blockchaintp/chronicle-helm-api-test |
repository: blockchaintp/chronicle-helm-api-test-amd64
## @md | `test.api.image.tag` | the image tag | latest |
tag: BTP2.1.0-0.7.4
tag: BTP2.1.0-0.7.6
## @md | `test.auth` | test the chronicle auth server API |
auth:
## @md | `test.auth.enabled` | true to enable auth-related testing | true |
Expand Down Expand Up @@ -248,7 +248,7 @@ tp:
## @md | `tp.image.repository` | the image repository | blockchaintp/chronicle-tp |
repository: blockchaintp/chronicle-tp-amd64
## @md | `tp.image.tag` | the image tag | latest |
tag: BTP2.1.0-0.7.4
tag: BTP2.1.0-0.7.6
## @md | `tp.extraVolumes` | extra volumes declarations for the chronicle-tp deployment | list | nil
extraVolumes:
## @md | `tp.extraVolumeMounts` | extra volume mounts for chronicle-tp deployment | list | nil
Expand Down

0 comments on commit 5c75c77

Please sign in to comment.