Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump versions of software used in CI tests to latest #1090

Merged
merged 3 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/fsat-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ inputs:
default: v0.25.3
fabric-version:
description: Version of Hyperledger Fabric
default: '2.5.1'
default: '2.5.4'
ca-version:
description: Version of Hyperledger Fabric CA
default: '1.5.6'
default: '1.5.7'

runs:
using: "composite"
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/test-network-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Set up the Test Network Runtime
inputs:
go-version:
description: Version of go
default: 1.19.6
default: 1.20.7
node-version:
description: Version of node
default: 18.x
Expand All @@ -12,10 +12,10 @@ inputs:
default: 11.x
fabric-version:
description: Version of Hyperledger Fabric
default: 2.5.1
default: 2.5.4
ca-version:
description: Version of Hyperledger Fabric CA
default: 1.5.6
default: 1.5.7

runs:
using: "composite"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
cancel-in-progress: true

env:
GO_VER: 1.19.6
GO_VER: 1.20.7
NODE_VER: 18.x
JAVA_VER: 11.x

Expand Down
4 changes: 2 additions & 2 deletions full-stack-asset-transfer-guide/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else
echo -e "${SUCCESS} Docker found:\t$(cat /tmp/cmdpath)"
fi

KUBECTL_VERSION=v1.24.4 # $(curl -L -s https://dl.k8s.io/release/stable.txt)
KUBECTL_VERSION=v1.28.2 # $(curl -L -s https://dl.k8s.io/release/stable.txt)
if ! command -v kubectl &> /tmp/cmdpath
then
echo "${WARN} Please install kubectl if you want to use k8s; suggested install commands:"
Expand Down Expand Up @@ -46,7 +46,7 @@ else
fi

# Install kind
KIND_VERSION=0.14.0
KIND_VERSION=0.20.0
if ! command -v kind &> /tmp/cmdpath
then
echo "${WARN} Please install kind; suggested install commands:"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,18 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- https://github.com/kubernetes/ingress-nginx.git/deploy/static/provider/cloud?ref=controller-v1.1.2
- https://github.com/kubernetes/ingress-nginx.git/deploy/static/provider/cloud?ref=controller-v1.1.2

patchesStrategicMerge:
- ingress-nginx-controller.yaml

# Remove the port `appProtocol` attribute as this is not accepted by all cloud providers
patchesJson6902:
- target:
kind: Service
name: ingress-nginx-controller
version: v1
patch: |-
- op: remove
path: "/spec/ports/0/appProtocol"
- op: remove
path: "/spec/ports/1/appProtocol"
patches:
- patch: |-
- op: remove
path: "/spec/ports/0/appProtocol"
- op: remove
path: "/spec/ports/1/appProtocol"
target:
kind: Service
name: ingress-nginx-controller
version: v1
- path: ingress-nginx-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set -eo pipefail
set -x

KIND_CLUSTER_NAME=kind
KIND_CLUSTER_IMAGE=${KIND_CLUSTER_IMAGE:-kindest/node:v1.24.4} # Important! k8s v1.25.0 brings breaking changes.
KIND_CLUSTER_IMAGE=${KIND_CLUSTER_IMAGE:-kindest/node:v1.28.0} # Important! k8s v1.25.0 brings breaking changes.
KIND_API_SERVER_ADDRESS=${KIND_API_SERVER_ADDRESS:-127.0.0.1}
KIND_API_SERVER_PORT=${KIND_API_SERVER_PORT:-8888}
CONTAINER_REGISTRY_NAME=${CONTAINER_REGISTRY_NAME:-kind-registry}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
state: present
wait_timeout: 3600
roles:
- ibm.blockchain_platform.fabric_operator_crds
- hyperledger.fabric_ansible_collection.fabric_operator_crds
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
state: present
wait_timeout: 3600
roles:
- ibm.blockchain_platform.fabric_console
- hyperledger.fabric_ansible_collection.fabric_console
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ metadata:
app.kubernetes.io/instance: "ibm-hlfsupport"
app.kubernetes.io/managed-by: "ibm-hlfsupport-operator"
rules:
- apiGroups:
- extensions
resourceNames:
- ibm-hlfsupport-psp
resources:
- podsecuritypolicies
verbs:
- use
- apiGroups:
- apiextensions.k8s.io
resources:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- fabric-operator-psp.yaml
- fabric-operator-serviceaccount.yaml
- fabric-operator-clusterrole.yaml
- fabric-operator-clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ metadata:
name: ${NS}
EOF

# https://kubernetes.io/docs/tasks/configure-pod-container/migrate-from-psp/
kubectl label --overwrite namespace $NS pod-security.kubernetes.io/enforce=baseline

pop_fn
}

Expand Down
18 changes: 9 additions & 9 deletions full-stack-asset-transfer-guide/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ cloud-frontend:
# ANSIBLE PLAYBOOK TARGETS #
###############################################################################

ansible_image := env_var_or_default("ANSIBLE_IMAGE", "ghcr.io/ibm-blockchain/ofs-ansibe:sha-ac6fd82")
ansible_image := env_var_or_default("ANSIBLE_IMAGE", "ghcr.io/hyperledger-labs/fabric-ansible:latest")
namespace := env_var_or_default("WORKSHOP_NAMESPACE", "fabricinfra")

# just set up everything with Ansible
Expand Down Expand Up @@ -339,7 +339,7 @@ ansible-ingress:

docker run \
--rm \
-v ${HOME}/.kube/:/home/ibp-user/.kube/ \
-v ${HOME}/.kube/:/home/hlf-user/.kube/ \
-v ${CWDIR}/_cfg:/_cfg \
-v $(pwd)/infrastructure/kind_console_ingress:/playbooks \
--network=host ${EXTRAS} \
Expand All @@ -361,7 +361,7 @@ ansible-operator:

docker run \
--rm \
-v ${HOME}/.kube/:/home/ibp-user/.kube/ \
-v ${HOME}/.kube/:/home/hlf-user/.kube/ \
-v ${CWDIR}/_cfg:/_cfg \
-v $(pwd)/infrastructure/operator_console_playbooks:/playbooks ${EXTRAS} \
--network=host \
Expand All @@ -380,7 +380,7 @@ ansible-console:

docker run \
--rm \
-v ${HOME}/.kube/:/home/ibp-user/.kube/ \
-v ${HOME}/.kube/:/home/hlf-user/.kube/ \
-v $(pwd)/infrastructure/operator_console_playbooks:/playbooks ${EXTRAS} \
-v ${CWDIR}/_cfg:/_cfg \
--network=host \
Expand Down Expand Up @@ -418,7 +418,7 @@ ansible-network: ansible-auth
docker run \
--rm \
-u $(id -u) \
-v ${HOME}/.kube/:/home/ibp-user/.kube/ \
-v ${HOME}/.kube/:/home/hlf-user/.kube/ \
-v ${CWDIR}/infrastructure/fabric_network_playbooks:/playbooks ${EXTRAS} \
-v ${CWDIR}/_cfg:/_cfg \
--network=host \
Expand Down Expand Up @@ -469,7 +469,7 @@ ansible-deploy-chaincode:
docker run \
--rm \
-u $(id -u) \
-v ${HOME}/.kube/:/home/ibp-user/.kube/ \
-v ${HOME}/.kube/:/home/hlf-user/.kube/ \
-v ${CWDIR}/infrastructure/production_chaincode_playbooks:/playbooks ${EXTRAS} \
-v ${CWDIR}/_cfg:/_cfg \
--network=host \
Expand All @@ -479,7 +479,7 @@ ansible-deploy-chaincode:
docker run \
--rm \
-u $(id -u) \
-v ${HOME}/.kube/:/home/ibp-user/.kube/ \
-v ${HOME}/.kube/:/home/hlf-user/.kube/ \
-v ${CWDIR}/infrastructure/production_chaincode_playbooks:/playbooks ${EXTRAS} \
-v ${CWDIR}/_cfg:/_cfg \
--network=host \
Expand All @@ -489,7 +489,7 @@ ansible-deploy-chaincode:
docker run \
--rm \
-u $(id -u) \
-v ${HOME}/.kube/:/home/ibp-user/.kube/ \
-v ${HOME}/.kube/:/home/hlf-user/.kube/ \
-v ${CWDIR}/infrastructure/production_chaincode_playbooks:/playbooks ${EXTRAS} \
-v ${CWDIR}/_cfg:/_cfg \
--network=host \
Expand All @@ -509,7 +509,7 @@ ansible-ready-application:
docker run \
--rm \
-u $(id -u) \
-v ${HOME}/.kube/:/home/ibp-user/.kube/ \
-v ${HOME}/.kube/:/home/hlf-user/.kube/ \
-v ${CWDIR}/infrastructure/production_chaincode_playbooks:/playbooks ${EXTRAS} \
-v ${CWDIR}/_cfg:/_cfg \
--network=host \
Expand Down