Skip to content
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

[release-1.2] backport changes from main branch #943

Merged
merged 26 commits into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
bd41f1d
chore: bump operator-sdk to v1.37.0
osmman Nov 7, 2024
983f4d9
refactor: extract labels from constants package
osmman Nov 11, 2024
21481e8
chore: opm version to 1.40.0
osmman Nov 12, 2024
58ac804
doc: create documentation for annotation package
osmman Nov 21, 2024
c1a6565
feat: log-type annotation to configure logging type
osmman Nov 22, 2024
5e00fab
github-action: Store OCI image as artifact
osmman Jul 22, 2024
f462611
update golang.org/x/crypto and golang.org/x/net packages (#813)
JasonPowr Jan 15, 2025
2068dfe
chore: update golang to v1.22
osmman Nov 11, 2024
5716e4d
Kind action
bouskaJ Jan 29, 2025
ec13de9
Add e2e test scenario
bouskaJ Jan 31, 2025
d24e0ab
Add script to restore ownerReferences
petrpinkas Jan 31, 2025
1139fa7
Fix env vars in e2e test
bouskaJ Feb 12, 2025
5fc9366
ci: fix GH Action linter and remove warning messages
osmman Feb 20, 2025
b113e9e
fix(deps): update module github.com/google/go-containerregistry to v0…
red-hat-konflux[bot] Mar 2, 2025
b91a17f
fix(deps): update module github.com/sigstore/sigstore to v1.8.15
red-hat-konflux[bot] Mar 2, 2025
d7cd2c8
fix(deps): update golang.org/x/exp digest to dead583
red-hat-konflux[bot] Mar 2, 2025
d59add9
fix(deps): update k8s.io/utils digest to 24370be
red-hat-konflux[bot] Mar 2, 2025
9dbcb66
fix-ci (#903)
JasonPowr Mar 11, 2025
7842ec0
fix(deps): update github.com/openshift/api digest to b7d0481c9094
red-hat-konflux[bot] Mar 2, 2025
5157b02
implement pod log retrieval
kdacosta0 Feb 26, 2025
55c2f7d
test: remove unmaintained actions-rs/toolchain step from github workflow
osmman Mar 18, 2025
59a9af5
bump: update go modules
osmman Mar 21, 2025
dd8c039
fix(deps): update module github.com/klauspost/compress to v1.18.0
osmman Mar 21, 2025
c150955
fix(deps): update grpc module
osmman Mar 21, 2025
a4d1376
chore: update go module versions and controller tools
osmman Mar 21, 2025
2e76207
fix: delete controller_runtime_reconcile_panics_total metric
osmman Mar 21, 2025
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
103 changes: 103 additions & 0 deletions .github/actions/kind-cluster/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: 'Install and configure Kind cluster'
description: 'Customized Kind-action'

inputs:
config:
description: 'Kind config'
required: true
olm:
description: 'install olm'
required: true
default: 'false'
keycloak:
description: 'install keycloak'
required: true
default: 'false'
prometheus:
description: 'install prometheus'
required: true
default: 'false'

outputs:
oidc_host:
value: ${{ steps.install-keycloak.outputs.oidc_host }}
description: 'Keycloak OIDC host'

runs:
using: 'composite'
steps:
- name: Install Cluster
uses: container-tools/kind-action@v2.0.1
with:
version: v0.20.0
node_image: kindest/node:v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e4504007adb
cpu: 3
registry: false
config: ${{ inputs.config }}

- name: Configure ingress
shell: bash
run: |
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=90s
- name: Install prometheus
if: ${{ inputs.prometheus == 'true'}}
shell: bash
run: |
#install Prometheus
LATEST=$(curl -s https://api.github.com/repos/prometheus-operator/prometheus-operator/releases/latest | jq -cr .tag_name)
curl -sL https://github.com/prometheus-operator/prometheus-operator/releases/download/${LATEST}/bundle.yaml | kubectl create -f -
kubectl wait --for=condition=Ready pods -l app.kubernetes.io/name=prometheus-operator -n default

- name: Install olm
if: ${{ inputs.olm == 'true'}}
shell: bash
run: |
#install OLM
kubectl create -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.25.0/crds.yaml
# wait for a while to be sure CRDs are installed
sleep 1
kubectl create -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.25.0/olm.yaml

- name: Install keycloak
if: ${{ inputs.keycloak == 'true'}}
id: install-keycloak
shell: bash
run: |
kubectl create --kustomize ci/keycloak/operator/overlay/kind
until [ ! -z "$(kubectl get pod -l name=keycloak-operator -n keycloak-system 2>/dev/null)" ]
do
echo "Waiting for keycloak operator. Pods in keycloak-system namespace:"
kubectl get pods -n keycloak-system
sleep 10
done
kubectl create --kustomize ci/keycloak/resources/overlay/kind
until [[ $( kubectl get keycloak keycloak -o jsonpath='{.status.ready}' -n keycloak-system 2>/dev/null) == "true" ]]
do
printf "Waiting for keycloak deployment. \n Keycloak ready: %s\n" $(kubectl get keycloak keycloak -o jsonpath='{.status.ready}' -n keycloak-system)
sleep 10
done

# HACK - expose keycloak under the same name as the internal SVC has so it will be accessible:
# - within the cluster (where the localhost does not work)
# - outside the cluster (resolved from /etc/hosts and redirect to the localhost)
kubectl create -n keycloak-system -f - <<EOF
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: keycloak
spec:
rules:
- host: keycloak-internal.keycloak-system.svc
http:
paths:
- backend:
service:
name: keycloak-internal
port:
number: 80
path: /
pathType: Prefix
EOF

echo "oidc_host=keycloak-internal.keycloak-system.svc" >> $GITHUB_OUTPUT
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
version: v1.63
args: --verbose --timeout=15m
Loading
Loading