Skip to content
Open
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
23 changes: 11 additions & 12 deletions test/kickstart-templates/includes/post-containers-sigstore.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ cat > /etc/containers/policy.json <<'EOF'
],
"transports": {
"docker": {
"registry.redhat.io/cert-manager/jetstack-cert-manager-acmesolver-rhel9": [{
"type": "insecureAcceptAnything"
}],
"registry.redhat.io/cert-manager/jetstack-cert-manager-rhel9": [{
"type": "insecureAcceptAnything"
}],
"registry.redhat.io/cert-manager/cert-manager-operator-rhel9": [{
"type": "insecureAcceptAnything"
}],
"registry.redhat.io/cert-manager/cert-manager-istio-csr-rhel9": [{
"type": "insecureAcceptAnything"
}],
"quay.io/modh/kserve-controller": [{
"type": "insecureAcceptAnything"
}],
Expand Down Expand Up @@ -90,6 +78,17 @@ cat > /etc/containers/policy.json <<'EOF'
EOF

# Configure the MicroShift remote and local registries to use sigstore attachments
if [ -e /etc/containers/registries.d/registry.redhat.io.yaml ] && [ ! -e /etc/containers/registries.d/registry.redhat.io.yaml.orig ]; then
mv /etc/containers/registries.d/registry.redhat.io.yaml /etc/containers/registries.d/registry.redhat.io.yaml.orig
fi

cat > /etc/containers/registries.d/registry.redhat.io.yaml <<'EOF'
docker:
registry.redhat.io:
use-sigstore-attachments: true
sigstore: https://registry.redhat.io/containers/sigstore
EOF

cat > /etc/containers/registries.d/registry.quay.io.yaml <<'EOF'
docker:
quay.io/openshift-release-dev:
Expand Down