-
Notifications
You must be signed in to change notification settings - Fork 17
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
Kubernetes 1.10 #258
Kubernetes 1.10 #258
Changes from all commits
362fa41
c510c9d
58c9779
d8c046d
a4472eb
ef4d39c
ca99954
1238c57
1966a3f
0c17e1e
8afd086
328377e
b16c8fd
a41d3b0
1a0b630
9531d16
ecb3953
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 |
---|---|---|
|
@@ -8,19 +8,20 @@ jobs: | |
- run: | ||
name: setup | ||
environment: | ||
K8S_VERSION: v1.9.0 | ||
MINIKUBE_VERSION: v0.25.2 | ||
K8S_VERSION: v1.10.0 | ||
MINIKUBE_VERSION: v0.26.1 | ||
CHANGE_MINIKUBE_NONE_USER: true | ||
command: | | ||
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ | ||
curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/${MINIKUBE_VERSION}/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ | ||
sudo minikube config set WantReportErrorPrompt false | ||
sudo -E minikube start --vm-driver=none --kubernetes-version=${K8S_VERSION} --extra-config=apiserver.Authorization.Mode=RBAC | ||
# TODO: remove the --bootstrapper flag once this issue is solved: https://github.com/kubernetes/minikube/issues/2704 | ||
sudo -E minikube start --vm-driver=none --bootstrapper=localkube --kubernetes-version=${K8S_VERSION} --extra-config=apiserver.Authorization.Mode=RBAC | ||
- run: | ||
name: code-gen script | ||
environment: | ||
CODEGEN_PKG: ../../../../src/k8s.io/code-generator | ||
CODEGEN_VERSION: release-1.9 | ||
CODEGEN_VERSION: kubernetes-1.10.0 | ||
GOPATH: /home/circleci/.go_workspace | ||
command: | | ||
mkdir -p $CODEGEN_PKG | ||
|
@@ -46,7 +47,9 @@ jobs: | |
name: print habitat object logs | ||
command: kubectl logs -lhabitat-operator=true --tail=100 | ||
when: on_fail | ||
- run: | ||
name: print minikube logs | ||
command: minikube logs | ||
when: on_fail | ||
# NOTE: this relies on journalctl, which is not present on the version of | ||
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. So how did it work before? Old minikube/k8s didn't require journalctl? 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. Old minikube didn't use journalctl. |
||
# Ubuntu currently run by CircleCI | ||
# - run: | ||
# - name: print minikube logs | ||
# - command: minikube logs | ||
# - when: on_fail |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ go_import_path: github.com/habitat-sh/habitat-operator | |
env: | ||
global: | ||
- CHANGE_MINIKUBE_NONE_USER=true | ||
- K8S_VERSION=v1.9.0 | ||
- MINIKUBE_VERSION=v0.25.2 | ||
- CODEGEN_VERSION=release-1.9 | ||
- K8S_VERSION=v1.10.0 | ||
- MINIKUBE_VERSION=v0.26.1 | ||
- CODEGEN_VERSION=kubernetes-1.10.0 | ||
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.
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. Same as above |
||
|
||
# Skip installation of dependencies since they are already in vendor. | ||
install: true | ||
|
@@ -27,7 +27,8 @@ before_script: | |
# Download minikube. | ||
- curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/${MINIKUBE_VERSION}/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ | ||
- sudo minikube config set WantReportErrorPrompt false | ||
- sudo minikube start --vm-driver=none --kubernetes-version=${K8S_VERSION} --extra-config=apiserver.Authorization.Mode=RBAC | ||
# TODO: remove the --bootstrapper flag once this issue is solved: https://github.com/kubernetes/minikube/issues/2704 | ||
- sudo minikube start --vm-driver=none --bootstrapper=localkube --kubernetes-version=${K8S_VERSION} --extra-config=apiserver.Authorization.Mode=RBAC | ||
# Fix the kubectl context, as it's often stale. | ||
- minikube update-context | ||
# Clone the code generator repo | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Shouldn't it be
release-1.10
?Whatever outcome is (either a tag or a branch), we should keep docs in the update codegen script in sync.
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.
The
release-
are branches, i.e. they get updated, so we cannot guarantee that it will always be the same commit.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.
What docs are you referring to?
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.
These ones:
habitat-operator/hack/update-codegen.sh
Lines 20 to 28 in 3adc004