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

Introducing OKE #534

Draft
wants to merge 133 commits into
base: 6.1.x
Choose a base branch
from
Draft

Introducing OKE #534

wants to merge 133 commits into from

Conversation

n0tl3ss
Copy link
Member

@n0tl3ss n0tl3ss commented Feb 9, 2023

This PR moves CI/CD tests to use OKE cluster instead of Kind. With vcluster we are creating virtual cluster for every test run inside Oracle Kubernetes Engine. Docker images that produced during build process are specially tagged by hash of commit and java version. Then images are pushed to Oracle Container Registry. Every test run will create virtual cluster and pick docker image based on the tag described above.

The old setup files are also left because for local development it is much easier to use kind instead of OKE.

@n0tl3ss n0tl3ss force-pushed the feature/workflow1 branch 2 times, most recently from fecdc56 to 3632555 Compare February 11, 2023 00:19
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GIT_COMMIT_HASH: ${{ github.sha }}
OCI_REGION: ${{ secrets.OCI_REGION }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change the action to use OCI_CLI_REGION instead?

.github/workflows/graalvm.yml Show resolved Hide resolved
.github/workflows/graalvm.yml Show resolved Hide resolved
@@ -16,6 +16,12 @@ on:
jobs:
build:
if: github.repository != 'micronaut-projects/micronaut-project-template'
env:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this workflow is being removed since we are running coverage in the main Gradle workflow. See micronaut-projects/micronaut-project-template#342

Comment on lines 42 to 45
String tagName = "latest"
if (StringUtils.isNotEmpty(imageTag)) {
tagName = imageTag
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
String tagName = "latest"
if (StringUtils.isNotEmpty(imageTag)) {
tagName = imageTag
}
String tagName = imageTag ?: "latest"

Comment on lines 37 to 50
def imageName = "micronaut-kubernetes-operator-example"
def tagName = "latest"

if (StringUtils.isNotEmpty(imagePrefix.orElse(null))) {
imageName = imagePrefix.get() + imageName
}

if (StringUtils.isNotEmpty(imageTag.orElse(null))) {
tagName = imageTag.get()
}

imageName = imageName + ":" + tagName

log.info("Image name: ${imageName}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be reused into a method in KubernetesSpecification

@sonarcloud
Copy link

sonarcloud bot commented Apr 12, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

80.0% 80.0% Coverage
0.0% 0.0% Duplication

@CLAassistant
Copy link

CLAassistant commented Feb 7, 2024

CLA assistant check
All committers have signed the CLA.

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.

None yet

3 participants