Skip to content

verbose toggle not supported in gradle plugin #3740

@ericlacher

Description

@ericlacher

Describe the bug

I am on gradle 8.14.3 and I am using jkube gradle plugin (v1.18.1) and have the following statement in my build.gradle:

kubernetes {
  buildStrategy = 'docker'
  ...
  images {... }
}

I am having an issue (in CICD/Github Actions only) when attempting to build the docker image (unrelated to the plugin), and since this only fails in CICD, I am trying to get a hand at the exact failure. This is what I see:

k8s: Error while trying to build the image: Unable to build image ....: "The command .... returned a non-zero code 1"

I cannot reproduce this locally, so I wanted to see the actual docker build output.
In the docs, there's a flag verbose mentioned, which I tried to use like so

kubernetes {
  buildStrategy = 'docker'
  verbose = true
  ...
  images {... }
}

however, this field does not seem to be supported:

Could not set unknown property 'verbose' for extension 'kubernetes' of type org.eclipse.jkube.gradle.plugin.KubernetesExtension.

Can this please be added, or is there another way to see the actual logs from kubernetes build?

Thanks,
Eric

Eclipse JKube version

1.18.1

Component

Kubernetes Gradle Plugin

Apache Maven version

None

Gradle version

other (please specify in additional context)

Steps to reproduce

kubernetes {
  verbose = true
  ...
}

Expected behavior

I want to see the build logs for each step / RUN statement in the dockerfile.

Runtime

other (please specify in additional context)

Kubernetes API Server version

other (please specify in additional context)

Environment

macOS

Eclipse JKube Logs

Could not set unknown property 'verbose' for extension 'kubernetes' of type org.eclipse.jkube.gradle.plugin.KubernetesExtension.

Sample Reproducer Project

No response

Additional context

Gradle 8.14.3
Gradle Plugin version 1.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions