GithubHelp home page GithubHelp logo

repro-quarkus-flyway-kubernetes-init's Introduction

repro-flyway-init

Reproduces:

  • flyway is not setting Deployment.spec.template.spec.serviceAccountName such that its RoleBinding can be applied
  • flyway is not setting imagePullSecrets in the flyway init job spec according to the imagePullSecrets used by the Deployment

Steps to reproduce

Build:

./mvnw clean package -Dquarkus.container-image.group="some-registry.com" -Dquarkus.container-image.tag="latest"

Check the generated yaml in target/kubernetes/kubernetes.yml for serviceAccountName and imagePullSecrets for the flyway job.

No serviceAccountName is set:

cat target/kubernetes/kubernetes.yml | grep serviceAccountName

No match found.

Check imagePullSecrets set for job (requires https://github.com/mikefarah/yq):

 yq 'select(.kind=="Job")' target/kubernetes/kubernetes.yml | grep -A1 -i "imagePullSecrets"

No match found.

Expected behavior

The Deployment in the generated yaml should have the serviceAccountName set to the one found in the RoleBinding and the imagePullSecrets of the flyway job set to the secrets used by the Deployment.

The serviceAccountName is set correctly in Deployment if the extension "kubernetes-client" is introduced:

<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-kubernetes-client</artifactId>
</dependency>

repro-quarkus-flyway-kubernetes-init's People

Watchers

Joe Siponen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.