Skip to content

Commit 379e101

Browse files
authored
Merge pull request #1344 from simonbaird/konflux-rename
Rename RHTAP to Konflux
2 parents 54172f7 + e44a619 commit 379e101

6 files changed

+35
-31
lines changed

Dockerfile.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# This image has go version 1.21 but requires an extra pull secret to access
2626
# See https://source.redhat.com/groups/public/teamnado/wiki/brew_registry for how to get your own pull secret
27-
# See our RHTAP pull secret at https://console.redhat.com/preview/application-pipeline/secrets
27+
# See our Konflux pull secret at https://console.redhat.com/preview/application-pipeline/secrets
2828
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.21@sha256:4fe910174caaaae09ff75b6f1b1c2f4460fd9acfe38ec778a818a54de7f31afc AS build
2929

3030
ARG TARGETOS

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ $(ALL_SUPPORTED_OS_ARCH): ## Build binaries for specific platform/architecture,
4949
.PHONY: dist
5050
dist: $(ALL_SUPPORTED_OS_ARCH) ## Build binaries for all supported operating systems and architectures
5151

52-
# Dockerfile.dist is used by the RHTAP build pipeline where it's built using
52+
# Dockerfile.dist is used by the Konflux build pipeline where it's built using
5353
# buildah not podman. This is for testing that build locally.
5454
# Todo: Don't hard code the platform here. Should probably do multi-arch builds similar
55-
# to dist-image. Also why not use buildah here for consistency with the RHTAP build.
55+
# to dist-image. Also, why not use buildah here for consistency with the Konflux build?
5656
.PHONY: dist-container
5757
dist-container: clean
5858
podman build . --file Dockerfile.dist --tag dist-container --platform linux/amd64 # --no-cache

hack/cut-release.sh

+17-17
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ fi
3434
# Use release name as-is for the branch name
3535
BRANCH_NAME="release-${RELEASE_NAME}"
3636

37-
# RHTAP disallows . chars in names so remove those
38-
RHTAP_APPLICATION_SUFFIX="${RELEASE_NAME/./}"
37+
# Konflux disallows . chars in names so remove those
38+
KONFLUX_APPLICATION_SUFFIX="${RELEASE_NAME/./}"
3939

4040
# Could be whatever, but let's adopt a consistent convention
41-
RHTAP_APPLICATION_NAME=ec-${RHTAP_APPLICATION_SUFFIX}
42-
RHTAP_CLI_COMPONENT_NAME=cli-${RHTAP_APPLICATION_SUFFIX}
41+
KONFLUX_APPLICATION_NAME=ec-${KONFLUX_APPLICATION_SUFFIX}
42+
KONFLUX_CLI_COMPONENT_NAME=cli-${KONFLUX_APPLICATION_SUFFIX}
4343

4444
# Show some useful values
4545
echo Release name: $RELEASE_NAME
4646
echo Release branch name: $BRANCH_NAME
47-
echo RHTAP application name: $RHTAP_APPLICATION_NAME
48-
echo RHTAP cli component name: $RHTAP_CLI_COMPONENT_NAME
47+
echo Konflux application name: $KONFLUX_APPLICATION_NAME
48+
echo Konflux cli component name: $KONFLUX_CLI_COMPONENT_NAME
4949

50-
RHTAP_APPS_URL=https://console.redhat.com/preview/application-pipeline/workspaces/rhtap-contract/applications
50+
KONFLUX_APPS_URL=https://console.redhat.com/preview/application-pipeline/workspaces/rhtap-contract/applications
5151

5252
# Explain what needs to be done next
5353
# (We could make this more automated in future.)
@@ -62,26 +62,26 @@ git push upstream refs/remotes/upstream/main:refs/heads/${BRANCH_NAME}
6262
# Make your local version of the release branch
6363
git checkout -b ${BRANCH_NAME} upstream/${BRANCH_NAME}
6464
65-
# Create the new application in RHTAP
66-
Login at ${RHTAP_APPS_URL}
65+
# Create the new application in Konflux
66+
Login at ${KONFLUX_APPS_URL}
6767
Create a new application by importing code from https://github.com/enterprise-contract/ec-cli
6868
Set Git reference to ${BRANCH_NAME} and click "Import code"
69-
Set the application name to ${RHTAP_APPLICATION_NAME}
70-
Set the component name to ${RHTAP_CLI_COMPONENT_NAME}
69+
Set the application name to ${KONFLUX_APPLICATION_NAME}
70+
Set the component name to ${KONFLUX_CLI_COMPONENT_NAME}
7171
Set Dockerfile to Dockerfile.dist
7272
Unset the "Default build pipeline" toggle
7373
Click "Create application"
7474
7575
# Wait for PR
7676
Wait for the PR to be created
7777
Go look at the PR in GitHub
78-
Wait for the PR to pass the ${RHTAP_CLI_COMPONENT_NAME}-on-pull-request check
79-
You can also watch the activity at ${RHTAP_APPS_URL}/${RHTAP_APPLICATION_NAME}/activity/pipelineruns
78+
Wait for the PR to pass the ${KONFLUX_CLI_COMPONENT_NAME}-on-pull-request check
79+
You can also watch the activity at ${KONFLUX_APPS_URL}/${KONFLUX_APPLICATION_NAME}/activity/pipelineruns
8080
When it's done you can merge. (Continue to next section while you're waiting...)
8181
8282
# Modify EC policy config
83-
Go to the integration tests at ${RHTAP_APPS_URL}/${RHTAP_APPLICATION_NAME}/integrationtests
84-
Edit ${RHTAP_APPLICATION_NAME}-enterprise-contract and add a parameter as follows:
83+
Go to the integration tests at ${KONFLUX_APPS_URL}/${KONFLUX_APPLICATION_NAME}/integrationtests
84+
Edit ${KONFLUX_APPLICATION_NAME}-enterprise-contract and add a parameter as follows:
8585
Name: POLICY_CONFIGURATION
8686
Value: github.com/enterprise-contract/config//redhat-no-hermetic
8787
Save changes
@@ -90,9 +90,9 @@ Save changes
9090
git checkout ${BRANCH_NAME}
9191
hack/patch-release-pipelines.sh
9292
hack/patch-release-pipelines.sh digest_bumps # maybe
93-
Review the diff between the ${RHTAP_CLI_COMPONENT_NAME}- and cli-main-ci- pipelines
93+
Review the diff between the ${KONFLUX_CLI_COMPONENT_NAME}- and cli-main-ci- pipelines
9494
Review the generated commit and then create a PR for the ${BRANCH_NAME} branch with that commit
95-
(Todo maybe: If you want, try adding this commit to the PR created by RHTAP before merging that PR.)
95+
(Todo maybe: If you want, try adding this commit to the PR created by Konflux before merging that PR.)
9696
9797
EOT
9898

hack/patch-release-pipelines.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fi
3333
# The release name is the branch name with release- trimmed off the front
3434
release_name=${current_branch#"release-"}
3535

36-
# One each for the two pipelines created by RHTAP
36+
# One each for the two pipelines created by Konflux
3737
for p in pull-request push; do
3838
main_pipeline=".tekton/cli-main-ci-$p.yaml"
3939
release_pipeline=".tekton/cli-${release_name/./}-$p.yaml"
@@ -43,12 +43,16 @@ for p in pull-request push; do
4343
# Use grep to exclude digest bumps and initial creation.
4444
changes=$( git log main --reverse --pretty=%h --invert-grep --regexp-ignore-case \
4545
--grep="Update RHTAP references" \
46+
--grep="Update Konflux references" \
47+
--grep="Konflux CI update" \
48+
--grep="Konflux update" \
4649
--grep="Red Hat Trusted App Pipeline update" \
4750
-- $main_pipeline )
4851
else
4952
# Find only the digest bumps
5053
changes=$( git log main --reverse --pretty=%h --regexp-ignore-case \
5154
--grep="Update RHTAP references" \
55+
--grep="Update Konflux references" \
5256
-- $main_pipeline )
5357
fi
5458

@@ -71,7 +75,7 @@ done
7175

7276
# Make the commit
7377
git commit -m "chore: Modify default pipelines for $release_name" \
74-
-m "Apply changes to the RHTAP generated default pipelines." \
78+
-m "Apply changes to the Konflux generated default pipelines." \
7579
-m "(Commit created with hack/patch-release-pipelines.sh $digest_bumps)"
7680

7781
# Invite the human to look at it

hack/rebuild.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717

1818
# Rebuilds the images, stores the image references in images.txt and updates the
1919
# cosign.pub. Requires a running Tekton and Tekton Chains and the usual
20-
# utilities: kubectl & openssl; and access to an operating RHTAP cluster.
20+
# utilities: kubectl & openssl; and access to an operating Konflux cluster.
2121

2222
set -o errexit
2323
set -o pipefail
2424
set -o nounset
2525

2626
HACK_DIR="$(dirname "${BASH_SOURCE[0]}")"
2727

28-
# The default in RHTAP
28+
# The default in Konflux
2929
PIPELINE_SERVICE_ACCOUNT=pipeline
3030

3131
# What pipeline bundle to use
@@ -34,7 +34,7 @@ PIPELINE_BUNDLE=quay.io/redhat-appstudio-tekton-catalog/pipeline-hacbs-docker-bu
3434
# Where to push the image(s)
3535
IMAGE_REPOSITORY=quay.io/hacbs-contract-demo
3636

37-
# If RHTAP is not setup, there might not be a appstudio PVC, this creates if if
37+
# If Konflux is not setup, there might not be a appstudio PVC, this creates if if
3838
# it already doesn't exist
3939
kubectl get pvc appstudio -o name > /dev/null 2>&1 || kubectl create -o yaml --dry-run=client -f - << EOF | kubectl apply -f - >&2
4040
kind: PersistentVolumeClaim
@@ -52,7 +52,7 @@ EOF
5252

5353
# Might require that the pull secret is set for the pipeline service account,
5454
# the secret named redhat-appstudio-registry-pull-secret is pre-created and
55-
# could be empty in RHTAP, so it needs to be recreated from the local Docker
55+
# could be empty in Konflux, so it needs to be recreated from the local Docker
5656
# configuration
5757
{
5858
kubectl get secret redhat-appstudio-registry-pull-secret -o name > /dev/null 2>&1 && [ -n "$(kubectl get secret redhat-appstudio-registry-pull-secret -o jsonpath='{.data}')" ]

hack/simple-demo.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
# SPDX-License-Identifier: Apache-2.0
1717

18-
# This is an image regularly built in RHTAP for testing purposes.
18+
# This is an image regularly built in Konflux for testing purposes.
1919
# See https://github.com/enterprise-contract/golden-container
2020
IMAGE=${IMAGE:-"quay.io/redhat-appstudio/ec-golden-image:latest"}
2121

@@ -29,18 +29,18 @@ APPLICATION_SNAPSHOT='{"components":[
2929
# - Visit https://oauth-openshift.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/oauth/token/request
3030
# - Authenticate and get a token, then use the oc login to authenticate
3131
# - kubectl get -n openshift-pipelines secret public-key -o json | jq -r '.data."cosign.pub" | @base64d'
32-
RHTAP_PROD_KEY="-----BEGIN PUBLIC KEY-----
32+
KONFLUX_PROD_KEY="-----BEGIN PUBLIC KEY-----
3333
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZP/0htjhVt2y0ohjgtIIgICOtQtA
3434
naYJRuLprwIv6FDhZ5yFjYUEtsmoNcW7rx2KM6FOXGsCX3BNc7qhHELT+g==
3535
-----END PUBLIC KEY-----"
3636

37-
RHTAP_STAGE_KEY="-----BEGIN PUBLIC KEY-----
37+
KONFLUX_STAGE_KEY="-----BEGIN PUBLIC KEY-----
3838
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAExIJfBe0aQb8jiQo1roYAi+YlAxr5
3939
thSeH7kghWZnAzFeZOUsqMy13LiLGuVRuLkbGNktaToBeT7DyXiC+aIntw==
4040
-----END PUBLIC KEY-----"
4141

42-
PUBLIC_KEY=${PUBLIC_KEY:-$RHTAP_PROD_KEY}
43-
#PUBLIC_KEY=${PUBLIC_KEY:-$RHTAP_STAGE_KEY}
42+
PUBLIC_KEY=${PUBLIC_KEY:-$KONFLUX_PROD_KEY}
43+
#PUBLIC_KEY=${PUBLIC_KEY:-$KONFLUX_STAGE_KEY}
4444

4545
# Adjust as required
4646
POLICY_YAML=${POLICY_YAML:-"github.com/enterprise-contract/config//default"}

0 commit comments

Comments
 (0)