Skip to content

Commit

Permalink
Update to support installing IBP v2.5.3 (#598)
Browse files Browse the repository at this point in the history
This brings in the very latest Hyperleder Fabric release, 2.4. This lets you
use the gateway functionality. Makes application connectivity much simpler

Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
  • Loading branch information
mbwhite committed May 9, 2022
1 parent 52d13d4 commit e6be80e
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---
namespace: ibm
name: blockchain_platform
version: 1.1.7
version: 1.2.0
readme: README.md
authors:
- Simon Stone/Matthew White
Expand Down
6 changes: 3 additions & 3 deletions plugins/module_utils/dict_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from __future__ import absolute_import, division, print_function
__metaclass__ = type

import collections
from collections.abc import Mapping
import json


Expand All @@ -16,7 +16,7 @@ def copy_dict(source):

def merge_dicts(target, source):
for key, value in source.items():
if key in target and isinstance(target[key], dict) and isinstance(source[key], collections.Mapping):
if key in target and isinstance(target[key], dict) and isinstance(source[key], Mapping):
merge_dicts(target[key], source[key])
else:
target[key] = source[key]
Expand All @@ -25,7 +25,7 @@ def merge_dicts(target, source):
def diff_dicts(target, source):
result = dict()
for key, value in source.items():
if key in target and isinstance(target[key], dict) and isinstance(source[key], collections.Mapping):
if key in target and isinstance(target[key], dict) and isinstance(source[key], Mapping):
sub_result = diff_dicts(target[key], source[key])
if bool(sub_result):
result[key] = sub_result
Expand Down
4 changes: 2 additions & 2 deletions roles/console/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ console_storage_size: 10Gi

wait_timeout: 60

product_version: "2.5.2"
operator_version: "20220308"
product_version: "2.5.3"
operator_version: "20220503"
operator_image: "{{ image_registry_url }}/ibp-operator"
operator_tag: "{{ product_version }}-{{ operator_version }}-{{ arch }}"
# console_tls_secret: ibp-tls-secret
Expand Down
3 changes: 3 additions & 0 deletions roles/console/templates/k8s/console.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
email: "{{ console_email }}"
password: "{{ console_default_password }}"
registryURL: "{{ image_registry_url }}"
{%+ if product_version is version('2.5.3', '>=') %}
usetags: true
{%+ endif %}
{%+ if product_version is version('2.5.0', '>=') %}
imagePullSecrets:
- "{{ image_pull_secret }}"
Expand Down
3 changes: 3 additions & 0 deletions roles/console/templates/openshift/console.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
email: "{{ console_email }}"
password: "{{ console_default_password }}"
registryURL: "{{ image_registry_url }}"
{%+ if product_version is version('2.5.3', '>=') %}
usetags: true
{%+ endif %}
{%+ if product_version is version('2.5.0', '>=') %}
imagePullSecrets:
- "{{ image_pull_secret }}"
Expand Down
4 changes: 2 additions & 2 deletions roles/crds/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ service_account: default
webhook: ibp-webhook

wait_timeout: 60
product_version: "2.5.2"
webhook_version: "20220308"
product_version: "2.5.3"
webhook_version: "20220503"
webhook_image: "{{ image_registry_url }}/ibp-crdwebhook"
webhook_tag: "{{ product_version }}-{{ webhook_version }}-{{ arch }}"
2 changes: 1 addition & 1 deletion roles/crds/templates/k8s/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
annotations:
productName: "IBM Blockchain Platform"
productID: "54283fa24f1a4e8589964e6e92626ec4"
productVersion: "2.5.0"
productVersion: "2.5.3"
spec:
serviceAccountName: "{{ service_account }}"
imagePullSecrets:
Expand Down
2 changes: 1 addition & 1 deletion roles/crds/templates/openshift/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
annotations:
productName: "IBM Blockchain Platform"
productID: "54283fa24f1a4e8589964e6e92626ec4"
productVersion: "2.5.0"
productVersion: "2.5.3"
spec:
serviceAccountName: "{{ service_account }}"
imagePullSecrets:
Expand Down
4 changes: 2 additions & 2 deletions roles/hlfsupport_console/templates/k8s/operator.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ spec:
privileged: false
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsUser: 1001
runAsNonRoot: true
runAsUser: 7051
capabilities:
drop:
- ALL
Expand Down
4 changes: 2 additions & 2 deletions roles/hlfsupport_console/templates/openshift/operator.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ spec:
privileged: false
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsUser: 1001
runAsNonRoot: true
runAsUser: 7051
capabilities:
drop:
- ALL
Expand Down

0 comments on commit e6be80e

Please sign in to comment.