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

Experimental: support configuring additional init containers for Horizon #48

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

deejgregor
Copy link
Contributor

@deejgregor deejgregor commented Nov 17, 2023

Values file for testing:

core:
  initContainers:
    - name: nap-time
      image: alpine
      command: [ "sleep", "10" ]
    - name: make-a-file
      image: alpine
      command: [ "touch", "/opt/opennms-overlay/etc/this-is-a-file" ]
      volumeMounts:
      - name: overlay
        mountPath: /opt/opennms-overlay

Make sure we patch NGinx to allow SSL Passthrough for Strimzi
*after* ingress-nginx is installed. If we are installing the
Helm chart, enable passthrough when we install with Helm.

Disable leader election when we install cert-manager and
ingress-nginx for a big speedup.

If we are installing ingress-nginx, set it to use a NodePort
(shudder) for the service instead of a LoadBalancer since
kind doesn't install a LoadBalancer by default.

Remove --wait for cert-manager since we don't seem to need it.

And lastly, the reason why I was here tweaking things: make
sure that ingress-nginx is ready (we can defer this until near
the end) so we can avoid errors like this when installing
Horizon in CI:

Error: INSTALLATION FAILED: Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": failed to call webhook: Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": dial tcp 10.96.55.161:443: connect: connection refused
@deejgregor deejgregor merged commit 3b61072 into main Nov 20, 2023
1 check passed
@deejgregor deejgregor deleted the deejgregor/experimental-init-containers branch November 20, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants