Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opendatahub-io/model-registry-operator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: red-hat-data-services/model-registry-operator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
Loading
Showing with 164 additions and 0 deletions.
  1. +124 −0 .github/renovate.json
  2. +40 −0 Dockerfile.konflux
124 changes: 124 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"branchPrefix": "renovate/",
"baseBranches": ["main", "rhoai-2.16", "rhoai-2.17"],
"ignoreTests": true,
"automergeType": "pr",
"automerge": true,
"enabledManagers": ["dockerfile", "tekton", "rpm"],
"packageRules": [
{
"matchManagers": ["dockerfile"],
"matchBaseBranches": ["main", "rhoai-2.16"],
"matchUpdateTypes": ["digest"],
"matchFileNames": ["*Dockerfile.konflux*"],
"enabled": true,
"ignoreTests": true,
"automergeType": "pr",
"automerge": true,
"groupName": "Dockerfile Digest Updates",
"branchPrefix": "renovate/docker-main/",
"semanticCommits": "enabled"
},
{
"matchManagers": ["dockerfile"],
"matchBaseBranches": ["rhoai-2.17"],
"enabled": false
},
{
"matchManagers": ["tekton"],
"matchBaseBranches": ["rhoai-2.16", "rhoai-2.17"],
"matchUpdateTypes": ["digest"],
"enabled": true,
"groupName": "Tekton Updates",
"branchPrefix": "renovate/tekton-rhoai-2.16/",
"semanticCommits": "enabled",
"prFooter": "To execute skipped test pipelines write comment `/ok-to-test`",
"matchPackageNames": [
"/^quay.io/redhat-appstudio-tekton-catalog//",
"/^quay.io/konflux-ci/tekton-catalog//"
]
},
{
"matchManagers": ["rpm"],
"matchBaseBranches": ["main", "rhoai-2.16"],
"groupName": "RPM Updates",
"commitMessageTopic": "RPM updates",
"enabled": true,
"schedule": ["at any time"],
"branchPrefix": "renovate/rpm/",
"semanticCommits": "enabled"
}
],
"dockerfile": {
"enabled": true,
"schedule": ["at any time"],
"additionalBranchPrefix": "{{baseBranch}}/",
"branchPrefix": "konflux/mintmaker/",
"ignoreTests": true,
"automergeType": "pr",
"automerge": true,
"packageRules": [
{
"matchUpdateTypes": [
"major",
"minor",
"pin",
"pinDigest",
"patch",
"bump"
],
"enabled": false
}
],
"ignorePaths": [
"**/Dockerfile",
"!**/Dockerfile.konflux*"
],
"pinDigests": true
},
"tekton": {
"enabled": true,
"schedule": ["at any time"],
"fileMatch": ["\\.yaml$", "\\.yml$"],
"includePaths": [".tekton/**"],
"packageRules": [
{
"matchUpdateTypes": [
"major",
"minor",
"pin",
"pinDigest",
"patch",
"bump"
],
"enabled": false
},
{
"matchUpdateTypes": ["digest"],
"enabled": true,
"groupName": "Konflux references",
"branchPrefix": "konflux/references/",
"semanticCommits": "enabled",
"prFooter": "To execute skipped test pipelines write comment `/ok-to-test`",
"prBodyColumns": ["Package", "Change", "Notes"],
"prBodyDefinitions": {
"Notes": "{{#if (or (containsString updateType 'minor') (containsString updateType 'major'))}}:warning:[migration](https://github.com/redhat-appstudio/build-definitions/blob/main/task/{{{replace '^quay.io/(redhat-appstudio-tekton-catalog|konflux-ci/tekton-catalog)/task-' '' packageName}}}/{{{newVersion}}}/MIGRATION.md):warning:{{/if}}"
},
"prBodyTemplate": "{{{header}}}{{{table}}}{{{notes}}}{{{changelogs}}}{{{controls}}}{{{footer}}}",
"recreateWhen": "always",
"rebaseWhen": "behind-base-branch",
"matchPackageNames": [
"/^quay.io/redhat-appstudio-tekton-catalog//",
"/^quay.io/konflux-ci/tekton-catalog//"
]
}
]
},
"rpm": {
"enabled": true,
"schedule": ["at any time"]
},
"prHourlyLimit": 0
}
40 changes: 40 additions & 0 deletions Dockerfile.konflux
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Build arguments
ARG SOURCE_CODE=.

# Build the manager binary
FROM registry.access.redhat.com/ubi8/go-toolset:1.21@sha256:742ae6ec1aef3e7faae488c47695fb64964d342aefecf52d23bd9d5e6731d0b6 as builder

## Build args to be used at this step
ARG SOURCE_CODE

WORKDIR /workspace

COPY go.mod go.mod
COPY go.sum go.sum

RUN go mod download

# Copy the go source
COPY . .

# Build
USER root
RUN CGO_ENABLED=1 GOOS=linux go build -tags strictfipsruntime -a -o manager cmd/main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal@sha256:cf095e5668919ba1b4ace3888107684ad9d587b1830d3eb56973e6a54f456e67

WORKDIR /
COPY --from=builder /workspace/manager .

USER 65532:65532
ENTRYPOINT ["/manager"]

LABEL com.redhat.component="odh-model-registry-operator-container" \
name="managed-open-data-hub/odh-model-registry-operator-rhel8" \
description="Manages lifecycle of RHOAI Model Registry custom resources and associated Kubernetes resources" \
summary="odh-model-registry-operator-container" \
maintainer="['managed-open-data-hub@redhat.com']" \
io.openshift.expose-services="" \
io.k8s.display-name="odh-model-registry-operator-container" \
io.k8s.description="odh-model-registry-operator" \
com.redhat.license_terms="https://www.redhat.com/licenses/Red_Hat_Standard_EULA_20191108.pdf"