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

Refactor deployment.go code #365

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bshephar
Copy link
Collaborator

This change does some refactoring of the deployment.go code to avoid overuse of string literals and replace with consts. Along with moving excessive code from the main Deployment function into dedicated functions that are easier to test and read.

@openshift-ci openshift-ci bot requested review from lewisdenny and viroel September 19, 2024 00:26
Copy link
Contributor

openshift-ci bot commented Sep 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bshephar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@bshephar
Copy link
Collaborator Author

/test horizon-operator-build-deploy-kuttl

This change does some refactoring of the deployment.go code to avoid
overuse of string literals and replace with consts. Along with moving excessive code
from the main Deployment function into dedicated functions that are easier to test
and read.

Signed-off-by: Brendan Shephard <[email protected]>
Copy link
Contributor

openshift-ci bot commented Jan 6, 2025

@bshephar: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/horizon-operator-build-deploy-kuttl fe0fd28 link true /test horizon-operator-build-deploy-kuttl

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@bshephar bshephar marked this pull request as draft January 9, 2025 00:19
@bshephar
Copy link
Collaborator Author

bshephar commented Jan 9, 2025

Seems to be an issue with the VolumeMounts:

    case.go:380: resource Horizon:horizon-kuttl-tests/horizon: .status.readyCount: key is missing from map
    logger.go:42: 12:27:14 | tls-deployment | skipping kubernetes event logging

Failure is related to the missing combined-ca-bundle mount:

❯ curl -s "https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openstack-k8s-operators_horizon-operator/365/pull-ci-openstack-k8s-operators-horizon-operator-main-horizon-operator-build-deploy-kuttl/1876224488794755072/artifacts/horizon-operator-build-deploy-kuttl/openstack-k8s-operators-gather/artifacts/must-gather/quay-io-openstack-k8s-operators-openstack-must-gather-sha256-b14292f8b5bb013eb06a54a9a50a2d892f6dd255901a7842f65567beb8cd090d/namespaces/horizon-kuttl-tests/crs/horizons.horizon.openstack.org/horizon.yaml" | yq '.status.conditions[0]'
lastTransitionTime: "2025-01-06T12:27:14Z"
message: 'TLSInput is missing: combined-ca-bundle'
reason: Requested
severity: Info
status: "False"
type: Ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant