-
Notifications
You must be signed in to change notification settings - Fork 23
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
[Breaking change] Upgrade quarkus from 1.2.1.Final to 1.9.0.Final #46
Changes from 5 commits
d07f72b
693533e
e406181
9de49c2
d5cd161
610c77b
581a616
f5ac061
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
VERSION=${1:-dev} | ||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
BASE_DIR="$SCRIPT_DIR/../../" | ||
OS_NAME=$(uname | tr '[:upper:]' '[:lower:]') | ||
KIND_CONFIG_FILE="$SCRIPT_DIR/kind-config-$OS_NAME.yaml" | ||
|
||
printf "%s\n" "Creating cluster with kind-config-$OS_NAME.yaml" | ||
kind --config $KIND_CONFIG_FILE create cluster | ||
|
||
kubectl get nodes | ||
|
||
printf "%s\n" "Build and load Operator image into kind cluster" | ||
./mvnw -C -B clean package | ||
docker build -f $BASE_DIR/src/main/docker/Dockerfile.jvm -t instana/instana-agent-operator:$VERSION $BASE_DIR | ||
kind load docker-image instana/instana-agent-operator | ||
|
||
printf "%s\n" "Load Agent image into kind cluster" | ||
docker pull instana/agent | ||
kind load docker-image instana/agent |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
kind delete cluster |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
extraMounts: | ||
- containerPath: /hosthome | ||
hostPath: /Users | ||
- role: worker | ||
extraMounts: | ||
- containerPath: /hosthome | ||
hostPath: /Users | ||
- role: worker | ||
extraMounts: | ||
- containerPath: /hosthome | ||
hostPath: /Users |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
extraMounts: | ||
- containerPath: /hosthome | ||
hostPath: /home | ||
- role: worker | ||
extraMounts: | ||
- containerPath: /hosthome | ||
hostPath: /home | ||
- role: worker | ||
extraMounts: | ||
- containerPath: /hosthome | ||
hostPath: /home |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,15 @@ local operatorResourcesWithVersion = std.map(addVersionToMetadataLabels, operato | |
|
||
local addVersionToDeploymentSpec(deployment) = deployment + { | ||
spec+: { | ||
template+: { metadata+: { labels+: | ||
super.labels + { "app.kubernetes.io/version": version } | ||
}} | ||
template+: { | ||
metadata+: { | ||
labels+: super.labels + { "app.kubernetes.io/version": version } | ||
}, | ||
spec+: | ||
super.spec + { | ||
containers: std.mapWithIndex(function(i, c) if i == 0 then c + {image: c.image + ":" + version} else c, super.containers) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this the full version There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah this is the full version, so it'll look like this: |
||
} | ||
} | ||
} | ||
}; | ||
local isDeployment(res) = res.kind == "Deployment"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wiggzz After discussion with Henning/Miel/Et al., we decided to no longer push the
latest
tag and to make the dependency between the operator image and the operator yaml more explicit, i.e. if a customer wants a more recent version of the operator, they have to update their operator yaml.