This operator manages OpenShift RunOnceDurationOverride Admission Webhook Server.
RunOnceDurationOverride Admission Webhook Server is located at run-once-duration-override.
| rodoo version | ocp version | k8s version | golang | 
|---|---|---|---|
| 1.0.0 | 4.13, 4.14 | 1.26 | 1.20 | 
| 1.0.1 | 4.13, 4.14 | 1.27 | 1.20 | 
| 1.0.2 | 4.13, 4.14 | 1.27 | 1.20 | 
| 1.0.3 | 4.13, 4.14 | 1.27 | 1.20 | 
| 1.1.0 | 4.15, 4.16 | 1.28 | 1.20 | 
| 1.1.1 | 4.15, 4.16 | 1.29 | 1.21 | 
| 1.1.2 | 4.15, 4.16 | 1.29 | 1.21 | 
| 1.1.3 | 4.15, 4.16 | 1.29 | 1.21 | 
| 1.2.0 | 4.17, 4.18 | 1.30 | 1.22 | 
| 1.2.1 | 4.17, 4.18 | 1.31 | 1.22 | 
| 1.2.2 | 4.17, 4.18 | 1.31 | 1.22 | 
| 1.2.3 | 4.17, 4.18 | 1.31 | 1.22 | 
| 1.3.0 | 4.19, 4.20 | 1.32 | 1.23 | 
| 1.3.1 | 4.19, 4.20 | 1.33 | 1.24 | 
- 
Build and push the operator image to a registry:
export QUAY_USER=${your_quay_user_id} export IMAGE_TAG=${your_image_tag} podman build -t quay.io/${QUAY_USER}/run-once-duration-override-operator:${IMAGE_TAG} -f Dockerfile.rhel7 . podman login quay.io -u ${QUAY_USER} podman push quay.io/${QUAY_USER}/run-once-duration-override-operator:${IMAGE_TAG}
 - 
Update the image spec under
.spec.template.spec.containers[0].imagefield in thedeploy/07_deployment.yamlDeployment to point to the newly built image - 
Update the
RELATED_IMAGE_OPERAND_IMAGEenv value under.spec.template.spec.containers[0].envsfield in thedeploy/07_deployment.yamlto point to the admission webhook image - 
Update the
.spec.runOnceDurationOverride.spec.activeDeadlineSecondsunderdeploy/08_cr.yamlas needed - 
Apply the manifests from
deploydirectory:oc apply -f deploy/
 
This process requires access to the Brew building system.
- List available bundle images (as IMAGE):
 
$ brew list-builds --package=run-once-duration-override-operator-bundle-container
- Get pull secret for selected bundle image (as IMAGE_PULL):
 
$ brew --noauth call --json getBuild IMAGE |jq -r '.extra.image.index.pull[0]'
- Build the index image (with IMAGE_TAG):
 
$ opm index add --bundles IMAGE_PULL --tag quay.io/${QUAY_USER}/run-once-duration-override-operator-index:IMAGE_TAG
This process refers to building the operator in a way that it can be installed locally via the OperatorHub with a custom index image
- 
Build and push the operator image to a registry:
export QUAY_USER=${your_quay_user_id} export IMAGE_TAG=${your_image_tag} podman build -t quay.io/${QUAY_USER}/run-once-duration-override-operator:${IMAGE_TAG} -f Dockerfile.rhel7 . podman login quay.io -u ${QUAY_USER} podman push quay.io/${QUAY_USER}/run-once-duration-override-operator:${IMAGE_TAG}
 - 
Update the
.spec.install.spec.deployments[0].spec.template.spec.containers[0].imagefield in the RODOO CSV undermanifests/runoncedurationoverride-operator.clusterserviceversion.yamlto point to the newly built image. - 
Update the
RELATED_IMAGE_OPERAND_IMAGEenv value under.spec.install.spec.deployments[0].spec.template.spec.containers[0].envsfield in the RODOO CSV undermanifests/runoncedurationoverride-operator.clusterserviceversion.yamlto point to the admission webhook image. - 
build and push the metadata image to a registry (e.g. https://quay.io):
podman build -t quay.io/${QUAY_USER}/run-once-duration-override-operator-metadata:${IMAGE_TAG} -f Dockerfile.metadata . podman push quay.io/${QUAY_USER}/run-once-duration-override-operator-metadata:${IMAGE_TAG}
 - 
build and push image index for operator-registry (pull and build https://github.com/operator-framework/operator-registry/ to get the
opmbinary)opm index add --bundles quay.io/${QUAY_USER}/run-once-duration-override-operator-metadata:${IMAGE_TAG} --tag quay.io/${QUAY_USER}/run-once-duration-override-operator-index:${IMAGE_TAG} podman push quay.io/${QUAY_USER}/run-once-duration-override-operator-index:${IMAGE_TAG}
Don't forget to increase the number of open files, .e.g.
ulimit -n 100000in case the current limit is insufficient. - 
create and apply catalogsource manifest (notice to change <<QUAY_USER>> and <<IMAGE_TAG>> to your own values)::
apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: run-once-duration-override-operator namespace: openshift-marketplace spec: sourceType: grpc image: quay.io/<<QUAY_USER>>/run-once-duration-override-operator-index:<<IMAGE_TAG>>
 - 
create
openshift-run-once-duration-override-operatornamespace:$ oc create ns openshift-run-once-duration-override-operator - 
open the console Operators -> OperatorHub, search for
Run Once Duration Override Operatorand install the operator - 
create CR for the Run Once Duration Override Operator in the console:
apiVersion: operator.openshift.io/v1 kind: RunOnceDurationOverride metadata: name: cluster spec: runOnceDurationOverride: spec: activeDeadlineSeconds: 3600