-
Notifications
You must be signed in to change notification settings - Fork 5
HYPERFLEET-1434 - feat: First pass on creating Konflux builds #7
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
Merged
openshift-merge-bot
merged 1 commit into
openshift-hyperfleet:main
from
ma-hill:HYPERFLEET-1434
Aug 27, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file | ||
| # Ignore build and test binaries. | ||
| bin/ | ||
|
|
||
|
|
||
| .git | ||
| .gitignore | ||
|
|
||
| .pre-commit-config.yaml | ||
| .golangci.yml | ||
|
|
||
| coverage.out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,3 +44,4 @@ Thumbs.db | |
| dist/ | ||
| build/ | ||
| secrets/ | ||
| bin/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| ARG BASE_IMAGE=registry.access.redhat.com/ubi9-micro:latest | ||
|
|
||
|
|
||
| FROM registry.access.redhat.com/ubi9/go-toolset:9.8-1786971605 AS builder | ||
|
|
||
| ARG APP_VERSION="0.0.0-dev" | ||
| # Install make as root (UBI9 go-toolset doesn't include it), then switch back to non-root. | ||
| USER root | ||
| RUN dnf install -y make && dnf clean all | ||
| WORKDIR /build | ||
| RUN chown 1001:0 /build | ||
| USER 1001 | ||
|
|
||
| ENV GOBIN=/build/.gobin | ||
| RUN mkdir -p $GOBIN | ||
| ENV PATH="${GOBIN}:${PATH}" | ||
|
|
||
| COPY --chown=1001:0 go.mod go.sum ./ | ||
| RUN --mount=type=cache,target=/opt/app-root/src/go/pkg/mod,uid=1001 \ | ||
| go mod download | ||
|
|
||
| COPY --chown=1001:0 . . | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| # For FIPS-compliant builds, use CGO_ENABLED=1 + GOEXPERIMENT=boringcrypto. | ||
| RUN --mount=type=cache,target=/opt/app-root/src/go/pkg/mod,uid=1001 \ | ||
| --mount=type=cache,target=/opt/app-root/src/.cache/go-build,uid=1001 \ | ||
| GOOS=linux make build | ||
|
|
||
| # Runtime stage | ||
| FROM ${BASE_IMAGE} | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # ubi9-micro doesn't include CA certificates; copy from builder for TLS (e.g. Google Pub/Sub) | ||
| COPY --from=builder /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem | ||
| COPY --from=builder /build/bin/hyperfleet-applier /app/hyperfleet-applier | ||
| COPY --from=builder /build/LICENSE /licenses/LICENSE | ||
|
|
||
| USER 65532:65532 | ||
|
|
||
| ENTRYPOINT ["/app/hyperfleet-applier"] | ||
|
|
||
| ARG APP_VERSION="0.0.0-dev" | ||
|
|
||
| LABEL name="hyperfleet-applier" \ | ||
| vendor="Red Hat, Inc." \ | ||
| version="${APP_VERSION}" \ | ||
| summary="HyperFleet Applier" \ | ||
| description="Controller responsible for Hyperfleet ReadDesires, ApplyDesires and DeleteDesires" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Patterns to ignore when building packages. | ||
| # This supports shell glob matching, relative path matching, and | ||
| # negation (prefixed with !). Only one pattern per line. | ||
| .DS_Store | ||
| # Common VCS dirs | ||
| .git/ | ||
| .gitignore | ||
| .bzr/ | ||
| .bzrignore | ||
| .hg/ | ||
| .hgignore | ||
| .svn/ | ||
| # Common backup files | ||
| *.swp | ||
| *.bak | ||
| *.tmp | ||
| *.orig | ||
| *~ | ||
| # Various IDEs | ||
| .project | ||
| .idea/ | ||
| *.tmproj | ||
| .vscode/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: v2 | ||
| name: hyperfleet-applier | ||
| description: HyperFleet Applier - Kubernetes controller for reconciling ApplyDesire and DeleteDesire resources | ||
| type: application | ||
| version: 0.1.0 | ||
| appVersion: "0.0.0-dev" | ||
| keywords: | ||
| - hyperfleet | ||
| - applier | ||
| - desire | ||
| home: https://github.com/openshift-hyperfleet/hyperfleet-applier | ||
| maintainers: | ||
| - name: HyperFleet Team |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # hyperfleet-applier | ||
|
|
||
|    | ||
|
|
||
| HyperFleet Applier - Kubernetes controller for reconciling ApplyDesire and DeleteDesire resources | ||
|
|
||
| **Homepage:** <https://github.com/openshift-hyperfleet/hyperfleet-applier> | ||
|
|
||
| ## Maintainers | ||
|
|
||
| | Name | Email | Url | | ||
| | ---- | ------ | --- | | ||
| | HyperFleet Team | | | | ||
|
|
||
| ## Values | ||
|
|
||
| | Key | Type | Default | Description | | ||
| |-----|------|---------|-------------| | ||
| | imagePullSecrets | list | `[]` | List of image pull secrets to use for pulling container images | | ||
| | nameOverride | string | `""` | Override the chart name | | ||
| | fullnameOverride | string | `""` | Override the full release name | | ||
| | serviceAccount.create | bool | `true` | Create a service account for the controller | | ||
| | serviceAccount.annotations | object | `{}` | Annotations to add to the service account | | ||
| | serviceAccount.name | string | `""` | Override the service account name | | ||
| | rbac.create | bool | `true` | Create RBAC resources (ClusterRole, ClusterRoleBinding) | | ||
| | rbac.rules | list | `[{"apiGroups":["*"],"resources":["*"],"verbs":["get","list","watch","create","update","patch","delete"]}]` | ClusterRole rules - the controller needs broad permissions to apply any resource type WARNING: These broad permissions allow the applier to manage any Kubernetes resource. Future change to reduce the permissions | | ||
| | podAnnotations | object | `{}` | Annotations to add to controller pods | | ||
| | podLabels | object | `{}` | Labels to add to controller pods | | ||
| | podSecurityContext | object | `{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}` | Pod-level security context | | ||
| | securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true}` | Container-level security context | | ||
| | resources | object | `{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}` | Resource requests and limits for the controller container | | ||
| | replicaCount | int | `1` | Number of controller replicas to run | | ||
| | image.registry | string | `""` | Container image registry (required) | | ||
| | image.repository | string | `""` | Container image repository (required) | | ||
| | image.tag | string | `""` | Container image tag (required) | | ||
| | image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | | ||
| | applier.managementCluster | string | `""` | Management cluster identifier - must match the partition this applier instance manages (required) | | ||
| | applier.pollInterval | string | `""` | Polling interval for reconciliation loops (e.g., "5s", "1m") (required) | | ||
| | redis.address | string | `""` | Redis server address in format "host:port" (required) | | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.