Skip to content

Commit

Permalink
Add OCP CI for NHC v0.9 release branch (openshift#59769)
Browse files Browse the repository at this point in the history
* Add OCP CI for NHC v0.9 release branch

Adding lanes of OCP v4.14-v4.18

* Run make update

Apply changes from /config to /jobs
  • Loading branch information
razo7 authored and yingzhanredhat committed Dec 24, 2024
1 parent e2c88fc commit f9680c7
Show file tree
Hide file tree
Showing 6 changed files with 1,677 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
base_images:
base:
name: ubi
namespace: ocp
tag: "9"
operator-sdk:
name: "4.17"
namespace: origin
tag: operator-sdk
binary_build_commands: make manager
build_root:
from_repository: true
images:
- dockerfile_path: Dockerfile
from: base
to: node-healthcheck-operator
operator:
bundles:
- as: my-bundle
dockerfile_path: bundle.ci.Dockerfile
skip_building_index: true
substitutions:
- pullspec: quay.io/medik8s/node-healthcheck-operator:.*
with: pipeline:node-healthcheck-operator
releases:
latest:
candidate:
architecture: amd64
product: ocp
stream: nightly
version: "4.14"
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tests:
- as: test
commands: make test
container:
from: src
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
- as: openshift-e2e
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
steps:
cluster_profile: medik8s-aws
env:
BASE_DOMAIN: medik8s-ci.projects.ecosystem.sysdeseng.com
INSTALL_NAMESPACE: nhc-install
test:
- as: e2e-install
cli: latest
commands: |
oc create namespace "$INSTALL_NAMESPACE"
# workaround for OLM pod not running with restricted PSA
oc label --overwrite ns "$INSTALL_NAMESPACE" security.openshift.io/scc.podSecurityLabelSync=false
oc label --overwrite ns "$INSTALL_NAMESPACE" pod-security.kubernetes.io/enforce=privileged
operator-sdk run bundle -n "$INSTALL_NAMESPACE" quay.io/medik8s/self-node-remediation-operator-bundle:latest
operator-sdk run bundle -n "$INSTALL_NAMESPACE" "$OO_BUNDLE"
oc wait --for condition=Available -n "$INSTALL_NAMESPACE" deployment node-healthcheck-controller-manager
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: INSTALL_NAMESPACE
from: operator-sdk
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
cli: latest
commands: export OPERATOR_NS="$INSTALL_NAMESPACE" && make test-e2e
env:
- name: INSTALL_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
workflow: ipi-aws
zz_generated_metadata:
branch: release-0.9
org: medik8s
repo: node-healthcheck-operator
variant: "4.14"
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
base_images:
base:
name: ubi
namespace: ocp
tag: "9"
operator-sdk:
name: "4.17"
namespace: origin
tag: operator-sdk
binary_build_commands: make manager
build_root:
from_repository: true
images:
- dockerfile_path: Dockerfile
from: base
to: node-healthcheck-operator
operator:
bundles:
- as: my-bundle
dockerfile_path: bundle.ci.Dockerfile
skip_building_index: true
substitutions:
- pullspec: quay.io/medik8s/node-healthcheck-operator:.*
with: pipeline:node-healthcheck-operator
releases:
latest:
candidate:
architecture: amd64
product: ocp
stream: nightly
version: "4.15"
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tests:
- as: test
commands: make test
container:
from: src
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
- as: openshift-e2e
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
steps:
cluster_profile: medik8s-aws
env:
BASE_DOMAIN: medik8s-ci.projects.ecosystem.sysdeseng.com
INSTALL_NAMESPACE: nhc-install
test:
- as: e2e-install
cli: latest
commands: |
oc create namespace "$INSTALL_NAMESPACE"
# workaround for OLM pod not running with restricted PSA
oc label --overwrite ns "$INSTALL_NAMESPACE" security.openshift.io/scc.podSecurityLabelSync=false
oc label --overwrite ns "$INSTALL_NAMESPACE" pod-security.kubernetes.io/enforce=privileged
operator-sdk run bundle -n "$INSTALL_NAMESPACE" quay.io/medik8s/self-node-remediation-operator-bundle:latest
operator-sdk run bundle -n "$INSTALL_NAMESPACE" "$OO_BUNDLE"
oc wait --for condition=Available -n "$INSTALL_NAMESPACE" deployment node-healthcheck-controller-manager
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: INSTALL_NAMESPACE
from: operator-sdk
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
cli: latest
commands: export OPERATOR_NS="$INSTALL_NAMESPACE" && make test-e2e
env:
- name: INSTALL_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
workflow: ipi-aws
zz_generated_metadata:
branch: release-0.9
org: medik8s
repo: node-healthcheck-operator
variant: "4.15"
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
base_images:
base:
name: ubi
namespace: ocp
tag: "9"
operator-sdk:
name: "4.17"
namespace: origin
tag: operator-sdk
binary_build_commands: make manager
build_root:
from_repository: true
images:
- dockerfile_path: Dockerfile
from: base
to: node-healthcheck-operator
operator:
bundles:
- as: my-bundle
dockerfile_path: bundle.ci.Dockerfile
skip_building_index: true
substitutions:
- pullspec: quay.io/medik8s/node-healthcheck-operator:.*
with: pipeline:node-healthcheck-operator
releases:
latest:
candidate:
architecture: amd64
product: ocp
stream: nightly
version: "4.16"
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tests:
- as: test
commands: make test
container:
from: src
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
- as: openshift-e2e
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
steps:
cluster_profile: medik8s-aws
env:
BASE_DOMAIN: medik8s-ci.projects.ecosystem.sysdeseng.com
INSTALL_NAMESPACE: nhc-install
test:
- as: e2e-install
cli: latest
commands: |
oc create namespace "$INSTALL_NAMESPACE"
# workaround for OLM pod not running with restricted PSA
oc label --overwrite ns "$INSTALL_NAMESPACE" security.openshift.io/scc.podSecurityLabelSync=false
oc label --overwrite ns "$INSTALL_NAMESPACE" pod-security.kubernetes.io/enforce=privileged
operator-sdk run bundle -n "$INSTALL_NAMESPACE" quay.io/medik8s/self-node-remediation-operator-bundle:latest
operator-sdk run bundle -n "$INSTALL_NAMESPACE" "$OO_BUNDLE"
oc wait --for condition=Available -n "$INSTALL_NAMESPACE" deployment node-healthcheck-controller-manager
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: INSTALL_NAMESPACE
from: operator-sdk
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
cli: latest
commands: export OPERATOR_NS="$INSTALL_NAMESPACE" && make test-e2e
env:
- name: INSTALL_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
workflow: ipi-aws
zz_generated_metadata:
branch: release-0.9
org: medik8s
repo: node-healthcheck-operator
variant: "4.16"
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
base_images:
base:
name: ubi
namespace: ocp
tag: "9"
operator-sdk:
name: "4.17"
namespace: origin
tag: operator-sdk
binary_build_commands: make manager
build_root:
from_repository: true
images:
- dockerfile_path: Dockerfile
from: base
to: node-healthcheck-operator
operator:
bundles:
- as: my-bundle
dockerfile_path: bundle.ci.Dockerfile
skip_building_index: true
substitutions:
- pullspec: quay.io/medik8s/node-healthcheck-operator:.*
with: pipeline:node-healthcheck-operator
releases:
latest:
candidate:
architecture: amd64
product: ocp
stream: nightly
version: "4.17"
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tests:
- as: test
commands: make test
container:
from: src
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
- as: openshift-e2e
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
steps:
cluster_profile: medik8s-aws
env:
BASE_DOMAIN: medik8s-ci.projects.ecosystem.sysdeseng.com
INSTALL_NAMESPACE: nhc-install
test:
- as: e2e-install
cli: latest
commands: |
oc create namespace "$INSTALL_NAMESPACE"
# workaround for OLM pod not running with restricted PSA
oc label --overwrite ns "$INSTALL_NAMESPACE" security.openshift.io/scc.podSecurityLabelSync=false
oc label --overwrite ns "$INSTALL_NAMESPACE" pod-security.kubernetes.io/enforce=privileged
operator-sdk run bundle -n "$INSTALL_NAMESPACE" quay.io/medik8s/self-node-remediation-operator-bundle:latest
operator-sdk run bundle -n "$INSTALL_NAMESPACE" "$OO_BUNDLE"
oc wait --for condition=Available -n "$INSTALL_NAMESPACE" deployment node-healthcheck-controller-manager
dependencies:
- env: OO_BUNDLE
name: my-bundle
env:
- name: INSTALL_NAMESPACE
from: operator-sdk
resources:
requests:
cpu: 100m
memory: 200Mi
- as: e2e-test
cli: latest
commands: export OPERATOR_NS="$INSTALL_NAMESPACE" && make test-e2e
env:
- name: INSTALL_NAMESPACE
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
workflow: ipi-aws
zz_generated_metadata:
branch: release-0.9
org: medik8s
repo: node-healthcheck-operator
variant: "4.17"
Loading

0 comments on commit f9680c7

Please sign in to comment.