Skip to content

Commit 6ac6976

Browse files
authored
Merge pull request #797 from kitsudaiki/feat/add-probes-to-kubernetes-setup
related issue: #594
2 parents fb952f7 + f9121f1 commit 6ac6976

18 files changed

Lines changed: 74 additions & 7 deletions

File tree

dockerfiles/Dockerfile_hanami

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:b11c3a334aae2ef1dd456917239ed82617d3473147035573c42ab72eb0c5eb15 AS builder
15+
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:763aad737f50a8774e1beacef80c3174de145301194e78ef505553111ac46107 AS builder
1616

1717
WORKDIR /app
1818

dockerfiles/Dockerfile_miko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:b11c3a334aae2ef1dd456917239ed82617d3473147035573c42ab72eb0c5eb15 AS builder
15+
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:763aad737f50a8774e1beacef80c3174de145301194e78ef505553111ac46107 AS builder
1616

1717
WORKDIR /app
1818

dockerfiles/Dockerfile_omamori

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:b11c3a334aae2ef1dd456917239ed82617d3473147035573c42ab72eb0c5eb15 AS builder
15+
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:763aad737f50a8774e1beacef80c3174de145301194e78ef505553111ac46107 AS builder
1616

1717
WORKDIR /app
1818

dockerfiles/Dockerfile_onsen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:b11c3a334aae2ef1dd456917239ed82617d3473147035573c42ab72eb0c5eb15 AS builder
15+
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:763aad737f50a8774e1beacef80c3174de145301194e78ef505553111ac46107 AS builder
1616

1717
WORKDIR /app
1818

dockerfiles/Dockerfile_ryokan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:b11c3a334aae2ef1dd456917239ed82617d3473147035573c42ab72eb0c5eb15 AS builder
15+
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:763aad737f50a8774e1beacef80c3174de145301194e78ef505553111ac46107 AS builder
1616

1717
WORKDIR /app
1818

dockerfiles/Dockerfile_sakura

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:b11c3a334aae2ef1dd456917239ed82617d3473147035573c42ab72eb0c5eb15 AS builder
15+
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:763aad737f50a8774e1beacef80c3174de145301194e78ef505553111ac46107 AS builder
1616

1717
WORKDIR /app
1818

dockerfiles/Dockerfile_torii

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:b11c3a334aae2ef1dd456917239ed82617d3473147035573c42ab72eb0c5eb15 AS builder
15+
FROM kitsudaiki/ainari_build_base:0.2.0@sha256:763aad737f50a8774e1beacef80c3174de145301194e78ef505553111ac46107 AS builder
1616

1717
WORKDIR /app
1818

src/binaries/hanami/src/api/routes/v1alpha.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ pub fn v1alpha_routes() -> Scope {
2424
.service(
2525
scope("/version").service(resource("").route(get().to(get_version_v1_0::get_version))),
2626
)
27+
.service(
28+
scope("/is_ready")
29+
.service(resource("").route(get().to(is_ready_v1_0::get_ready_status))),
30+
)
2731
.service(
2832
scope("/cluster")
2933
.service(

src/binaries/miko/src/api/miko_auth_middleware.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pub async fn authorization_middleware(
3939
log::debug!("call uri: '{uri}' for method: '{}'", *req.method());
4040

4141
// skip check for specific endpoints
42+
skip_check |= uri == "/v1alpha/is_ready" && *req.method() == Method::GET;
4243
skip_check |= uri == "/v1alpha/token" && *req.method() == Method::POST;
4344
skip_check |= uri == "/openapi.json" && *req.method() == Method::GET;
4445
skip_check |= uri == "/v1alpha/endpoints" && *req.method() == Method::GET;

src/binaries/miko/src/api/routes/v1alpha.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ pub fn v1alpha_routes() -> Scope {
2727
.service(
2828
scope("/version").service(resource("").route(get().to(get_version_v1_0::get_version))),
2929
)
30+
.service(
31+
scope("/is_ready")
32+
.service(resource("").route(get().to(is_ready_v1_0::get_ready_status))),
33+
)
3034
.service(
3135
scope("/token").service(
3236
resource("")

0 commit comments

Comments
 (0)