-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'eclipse-jkube:master' into issue/FileSecretIT_Solved
- Loading branch information
Showing
113 changed files
with
2,000 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# | ||
# Copyright (c) 2019 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at: | ||
# | ||
# https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Contributors: | ||
# Red Hat, Inc. - initial API and implementation | ||
# | ||
|
||
name: 'Build :: MacOS' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-macos: | ||
name: Eclipse JKube Build on MacOS | ||
runs-on: macos-latest | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@398bb08048482c421b1da00a58a1b472a306eb85 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
allowed-endpoints: > | ||
downloads.gradle.org:443 | ||
github.com:443 | ||
repo.gradle.org:443 | ||
repo.maven.apache.org:443 | ||
repo1.maven.org:443 | ||
repository.jboss.org:443 | ||
services.gradle.org:443 | ||
objects.githubusercontent.com:443 | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
- name: Setup Java 17 | ||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Build JKube | ||
run: | | ||
./mvnw -B clean install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# | ||
# Copyright (c) 2019 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at: | ||
# | ||
# https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Contributors: | ||
# Red Hat, Inc. - initial API and implementation | ||
# | ||
|
||
name: 'Build :: Windows' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-windows: | ||
name: Eclipse JKube Build on Windows | ||
runs-on: windows-latest | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@398bb08048482c421b1da00a58a1b472a306eb85 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
allowed-endpoints: > | ||
downloads.gradle.org:443 | ||
github.com:443 | ||
repo.gradle.org:443 | ||
repo.maven.apache.org:443 | ||
repo1.maven.org:443 | ||
repository.jboss.org:443 | ||
services.gradle.org:443 | ||
objects.githubusercontent.com:443 | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
- name: Setup Java 17 | ||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Build JKube | ||
# Remove this exclusion for gradle it module once https://github.com/eclipse-jkube/jkube/issues/3406 gets fixed | ||
run: ./mvnw.cmd -B clean install -pl -gradle-plugin/it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,7 @@ ext { | |
} | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
|
||
dependencies { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Copyright (c) 2019 Red Hat, Inc. | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at: | ||
* | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
*/ | ||
plugins { | ||
id("com.github.johnrengelman.shadow") version "7.1.0" | ||
id("io.micronaut.application") version "3.7.10" | ||
id("org.eclipse.jkube.kubernetes") version "1.17.0" | ||
id("org.eclipse.jkube.openshift") version "1.17.0" | ||
} | ||
|
||
version = "0.1" | ||
group = "org.eclipse.jkube.integration.tests.gradle.micronaut" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
micronaut { | ||
runtime("netty") | ||
processing { | ||
incremental(true) | ||
annotations("org.eclipse.jkube.integration.tests.gradle.micronaut.*") | ||
} | ||
} | ||
|
||
dependencies { | ||
annotationProcessor("io.micronaut:micronaut-http-validation") | ||
implementation("io.micronaut:micronaut-http-client") | ||
implementation("io.micronaut:micronaut-management") | ||
implementation("io.micronaut:micronaut-runtime") | ||
implementation("jakarta.annotation:jakarta.annotation-api") | ||
runtimeOnly("ch.qos.logback:logback-classic") | ||
implementation("io.micronaut:micronaut-validation") | ||
|
||
} | ||
|
||
|
||
application { | ||
mainClass.set("org.eclipse.jkube.integration.tests.gradle.micronaut.Application") | ||
} | ||
java { | ||
sourceCompatibility = JavaVersion.toVersion("11") | ||
targetCompatibility = JavaVersion.toVersion("11") | ||
} |
121 changes: 121 additions & 0 deletions
121
gradle-plugin/it/src/it/micronaut-properties/expected/kubernetes.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: List | ||
items: | ||
- apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
prometheus.io/scrape: "true" | ||
prometheus.io/path: /metrics | ||
prometheus.io/port: "9779" | ||
jkube.eclipse.org/git-commit: "@ignore@" | ||
jkube.eclipse.org/git-url: "@ignore@" | ||
jkube.eclipse.org/git-branch: "@ignore@" | ||
labels: | ||
app: micronaut-properties | ||
provider: jkube | ||
version: "0.1" | ||
group: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/part-of: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/managed-by: jkube | ||
app.kubernetes.io/name: micronaut-properties | ||
app.kubernetes.io/version: "0.1" | ||
name: micronaut-properties | ||
spec: | ||
ports: | ||
- name: glrpc | ||
port: 9080 | ||
protocol: TCP | ||
targetPort: 9080 | ||
selector: | ||
app: micronaut-properties | ||
provider: jkube | ||
group: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/name: micronaut-properties | ||
app.kubernetes.io/part-of: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/managed-by: jkube | ||
- apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
jkube.eclipse.org/git-commit: "@ignore@" | ||
jkube.eclipse.org/git-url: "@ignore@" | ||
jkube.eclipse.org/git-branch: "@ignore@" | ||
labels: | ||
app: micronaut-properties | ||
provider: jkube | ||
version: "0.1" | ||
group: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/part-of: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/managed-by: jkube | ||
app.kubernetes.io/name: micronaut-properties | ||
app.kubernetes.io/version: "0.1" | ||
name: micronaut-properties | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 2 | ||
selector: | ||
matchLabels: | ||
app: micronaut-properties | ||
provider: jkube | ||
group: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/name: micronaut-properties | ||
app.kubernetes.io/part-of: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/managed-by: jkube | ||
template: | ||
metadata: | ||
annotations: | ||
jkube.eclipse.org/git-commit: "@ignore@" | ||
jkube.eclipse.org/git-url: "@ignore@" | ||
jkube.eclipse.org/git-branch: "@ignore@" | ||
labels: | ||
app: micronaut-properties | ||
provider: jkube | ||
version: "0.1" | ||
group: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/part-of: org.eclipse.jkube.integration.tests.gradle.micronaut | ||
app.kubernetes.io/managed-by: jkube | ||
app.kubernetes.io/name: micronaut-properties | ||
app.kubernetes.io/version: "0.1" | ||
name: micronaut-properties | ||
spec: | ||
containers: | ||
- env: | ||
- name: KUBERNETES_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: HOSTNAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
image: micronaut/micronaut-properties:0.1 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /health | ||
port: 9080 | ||
scheme: HTTP | ||
successThreshold: 1 | ||
name: micronaut | ||
ports: | ||
- containerPort: 9080 | ||
name: glrpc | ||
protocol: TCP | ||
- containerPort: 9779 | ||
name: prometheus | ||
protocol: TCP | ||
- containerPort: 8778 | ||
name: jolokia | ||
protocol: TCP | ||
readinessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /health | ||
port: 9080 | ||
scheme: HTTP | ||
successThreshold: 1 | ||
securityContext: | ||
privileged: false |
Oops, something went wrong.