Skip to content
Draft
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: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ jobs:
- name: Check Non Admin Controller (NAC) manifests
working-directory: ./oadp-operator
run: |
git status
NON_ADMIN_CONTROLLER_PATH=../oadp-non-admin make update-non-admin-manifests
git status
if test -n "$(git status --short)"; then
echo "::error::run 'make update-non-admin-manifests' in OADP repository to update Non Admin Controller (NAC) manifests"
exit 1
Expand All @@ -99,8 +101,10 @@ jobs:
- name: Check Velero manifests
working-directory: ./oadp-non-admin
run: |
git status
OADP_OPERATOR_PATH=../oadp-operator make update-velero-manifests
if test -n "$(git status --short)"; then
git status
echo "::error::run 'make update-velero-manifests' in Non Admin Controller (NAC) repository to update Velero manifests"
exit 1
fi
62 changes: 49 additions & 13 deletions .tekton/oadp-oadp-non-admin-oadp-1-5-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ metadata:
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/cancel-in-progress: "true"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "oadp-1.5"
creationTimestamp: null
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "oadp-1.5"
creationTimestamp:
labels:
appstudio.openshift.io/application: oadp-oadp-non-admin
appstudio.openshift.io/component: oadp-oadp-non-admin-oadp-1-5
Expand All @@ -29,6 +28,9 @@ spec:
value: 5d
- name: build-platforms
value:
- linux/arm64
- linux/ppc64le
- linux/s390x
- linux/x86_64
- name: dockerfile
value: Dockerfile.oadp
Expand Down Expand Up @@ -68,13 +70,11 @@ spec:
name: output-image
type: string
- default: .
description: Path to the source code of an application's component from where
to build image.
description: Path to the source code of an application's component from where to build image.
name: path-context
type: string
- default: Dockerfile
description: Path to the Dockerfile inside the context specified by parameter
path-context
description: Path to the Dockerfile inside the context specified by parameter path-context
name: dockerfile
type: string
- default: "false"
Expand All @@ -94,8 +94,7 @@ spec:
name: prefetch-input
type: string
- default: ""
description: Image tag expiration time, time values could be something like
1h, 2d, 3w for hours, days, and weeks, respectively.
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
- default: "false"
description: Build a source image.
Expand All @@ -114,14 +113,12 @@ spec:
name: build-args-file
type: string
- default: "false"
description: Whether to enable privileged mode, should be used only with remote
VMs
description: Whether to enable privileged mode, should be used only with remote VMs
name: privileged-nested
type: string
- default:
- linux/x86_64
description: List of platforms to build the container images on. The available
set of values is determined by the configuration of the multi-platform-controller.
description: List of platforms to build the container images on. The available set of values is determined by the configuration of the multi-platform-controller.
name: build-platforms
type: array
results:
Expand Down Expand Up @@ -244,6 +241,20 @@ spec:
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
- name: IMAGE_APPEND_PLATFORM
value: "true"
- name: LABELS
value:
- $(tasks.generate-labels.results.labels[*])
- License=Apache License 2.0
- com.redhat.component=oadp-non-admin-container
- io.k8s.description=OpenShift API for Data Protection - Non-Admin
- io.k8s.display-name=OADP Non-Admin
- io.openshift.build.source-location=https://github.com/migtools/oadp-non-admin
- io.openshift.tags=migration
- maintainer=OpenShift API for Data Protection Team <[email protected]>
- name=oadp/oadp-non-admin-rhel9
- summary=OpenShift API for Data Protection - Non-Admin
- vendor=Red Hat, Inc.
- version=1.5.0
runAfter:
- prefetch-dependencies
taskRef:
Expand Down Expand Up @@ -551,6 +562,9 @@ spec:
params:
- name: IMAGE
value: $(tasks.build-image-index.results.IMAGE_URL)
- name: ADDITIONAL_TAGS
value:
- 'pull-request-{{pull_request_number}}'
runAfter:
- build-image-index
taskRef:
Expand Down Expand Up @@ -607,6 +621,28 @@ spec:
operator: in
values:
- "false"
- name: generate-labels
params:
- name: label-templates
value:
- build-date=$SOURCE_DATE
- short-commit=$(tasks.clone-repository.results.short-commit)
- io.openshift.build.commit.id=$(tasks.clone-repository.results.commit)
- io.openshift.build.commit.url=https://github.com/migtools/oadp-non-admin/commit/$(tasks.clone-repository.results.commit)
- release=$ACTUAL_DATE_EPOCH
- name: source-date-epoch
value: $(tasks.clone-repository.results.commit-timestamp)
runAfter:
- clone-repository
taskRef:
params:
- name: name
value: generate-labels
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-generate-labels:0.1@sha256:e1f4746dc33206a17867ead8f5c82a569cd925d352a19d108f205f54efc5589d
- name: kind
value: task
resolver: bundles
workspaces:
- name: git-auth
optional: true
Expand Down
64 changes: 51 additions & 13 deletions .tekton/oadp-oadp-non-admin-oadp-1-5-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ metadata:
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/cancel-in-progress: "false"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
== "oadp-1.5"
creationTimestamp: null
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "oadp-1.5"
creationTimestamp:
labels:
appstudio.openshift.io/application: oadp-oadp-non-admin
appstudio.openshift.io/component: oadp-oadp-non-admin-oadp-1-5
Expand All @@ -26,6 +25,9 @@ spec:
value: quay.io/redhat-user-workloads/ocp-art-tenant/oadp-oadp-non-admin-oadp-1-5:{{revision}}
- name: build-platforms
value:
- linux/arm64
- linux/ppc64le
- linux/s390x
- linux/x86_64
- name: dockerfile
value: Dockerfile.oadp
Expand Down Expand Up @@ -65,13 +67,11 @@ spec:
name: output-image
type: string
- default: .
description: Path to the source code of an application's component from where
to build image.
description: Path to the source code of an application's component from where to build image.
name: path-context
type: string
- default: Dockerfile
description: Path to the Dockerfile inside the context specified by parameter
path-context
description: Path to the Dockerfile inside the context specified by parameter path-context
name: dockerfile
type: string
- default: "false"
Expand All @@ -91,8 +91,7 @@ spec:
name: prefetch-input
type: string
- default: ""
description: Image tag expiration time, time values could be something like
1h, 2d, 3w for hours, days, and weeks, respectively.
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
- default: "false"
description: Build a source image.
Expand All @@ -111,14 +110,12 @@ spec:
name: build-args-file
type: string
- default: "false"
description: Whether to enable privileged mode, should be used only with remote
VMs
description: Whether to enable privileged mode, should be used only with remote VMs
name: privileged-nested
type: string
- default:
- linux/x86_64
description: List of platforms to build the container images on. The available
set of values is determined by the configuration of the multi-platform-controller.
description: List of platforms to build the container images on. The available set of values is determined by the configuration of the multi-platform-controller.
name: build-platforms
type: array
results:
Expand Down Expand Up @@ -241,6 +238,20 @@ spec:
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
- name: IMAGE_APPEND_PLATFORM
value: "true"
- name: LABELS
value:
- $(tasks.generate-labels.results.labels[*])
- License=Apache License 2.0
- com.redhat.component=oadp-non-admin-container
- io.k8s.description=OpenShift API for Data Protection - Non-Admin
- io.k8s.display-name=OADP Non-Admin
- io.openshift.build.source-location=https://github.com/migtools/oadp-non-admin
- io.openshift.tags=migration
- maintainer=OpenShift API for Data Protection Team <[email protected]>
- name=oadp/oadp-non-admin-rhel9
- summary=OpenShift API for Data Protection - Non-Admin
- vendor=Red Hat, Inc.
- version=1.5.0
runAfter:
- prefetch-dependencies
taskRef:
Expand Down Expand Up @@ -548,6 +559,11 @@ spec:
params:
- name: IMAGE
value: $(tasks.build-image-index.results.IMAGE_URL)
- name: ADDITIONAL_TAGS
value:
- '1.5'
- '1.5.1'
- 'latest'
runAfter:
- build-image-index
taskRef:
Expand Down Expand Up @@ -604,6 +620,28 @@ spec:
operator: in
values:
- "false"
- name: generate-labels
params:
- name: label-templates
value:
- build-date=$SOURCE_DATE
- short-commit=$(tasks.clone-repository.results.short-commit)
- io.openshift.build.commit.id=$(tasks.clone-repository.results.commit)
- io.openshift.build.commit.url=https://github.com/migtools/oadp-non-admin/commit/$(tasks.clone-repository.results.commit)
- release=$ACTUAL_DATE_EPOCH
- name: source-date-epoch
value: $(tasks.clone-repository.results.commit-timestamp)
runAfter:
- clone-repository
taskRef:
params:
- name: name
value: generate-labels
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-generate-labels:0.1@sha256:e1f4746dc33206a17867ead8f5c82a569cd925d352a19d108f205f54efc5589d
- name: kind
value: task
resolver: bundles
workspaces:
- name: git-auth
optional: true
Expand Down
13 changes: 0 additions & 13 deletions Dockerfile.oadp
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,3 @@ USER 65532:65532

ENTRYPOINT ["/manager"]

LABEL \
com.redhat.component="oadp-non-admin-container" \
version="1.5.0" \
name="oadp/oadp-non-admin-rhel9" \
License="Apache License 2.0" \
io.k8s.display-name="OADP Non-Admin" \
io.openshift.tags="migration" \
io.k8s.description="OpenShift API for Data Protection - Non-Admin" \
io.openshift.build.commit.id="58b7d83dc66a82fcac0f317a84c8845e3386921d" \
io.openshift.build.source-location="https://github.com/migtools/oadp-non-admin" \
io.openshift.build.commit.url="https://github.com/migtools/oadp-non-admin/commit/58b7d83dc66a82fcac0f317a84c8845e3386921d" \
summary="OpenShift API for Data Protection - Non-Admin" \
maintainer="OpenShift API for Data Protection Team <[email protected]>"
Loading