-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…1514: Create workflow for Go Cherry pick of #1498 #1514 on release-0.11. #1498: fix kustomize manifests for kubeflow #1514: Create workflow for Go (#1515) * fix kustomize manifests for kubeflow * fix standalone and external-db manifests * remove old namespace file * remove PV from kubeflow manifest * fix katib-external-db reference outside of root * fix katib-with-kubeflow-cert-manager * Move image tags to katib-config.yaml and remove patches * use common namespace kustomization * Make kubeflow-cert use kubeflow as a base * Remove katib-cert-generator job from kubeflow-cert-generator manifests * Move pv-patch to patches folder * Create katib-cert-manager and make kubeflowuse this as base * Fix release and CI scripts for new layout * Remove unnecessary cert-generator images from kustomization.yaml * Remove unnecessary SA, CR and CRB from katib-cert-manager * Remove commonLabel from katib-with-kubeflow * Separate cert-generator from webhook kustomization * Create workflow for Go * Add GOPATH env * Move check up * Add env * Add go mod download * Add ls command * Add path * Change path for run * Change GOPATH * Add kubebuilder * Download coveralls * Add node test * Remove Travis * Add coveralls step * Change coveralls use * Add working dir * Remove run * Fix the patch * Remove patch Co-authored-by: DavidSpek <vanderspek.david@gmail.com>
- Loading branch information
1 parent
2b01bc0
commit 7d7c34c
Showing
28 changed files
with
250 additions
and
286 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
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,44 @@ | ||
name: Go Test | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
env: | ||
GOPATH: ${{ github.workspace }}/go | ||
defaults: | ||
run: | ||
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/katib | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ${{ env.GOPATH }}/src/github.com/kubeflow/katib | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.15.8 | ||
|
||
- name: Run Go test | ||
run: | | ||
go mod download | ||
curl -L -O "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v1.0.7/kubebuilder_1.0.7_linux_amd64.tar.gz" | ||
tar -zxvf kubebuilder_1.0.7_linux_amd64.tar.gz | ||
sudo mv kubebuilder_1.0.7_linux_amd64 /usr/local/kubebuilder | ||
export PATH=$PATH:/usr/local/kubebuilder/bin | ||
make check | ||
make test | ||
- name: Coveralls report | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: coverage.out | ||
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/katib |
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,24 @@ | ||
name: Frontend Test | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12.18.1 | ||
|
||
- name: Run Node test | ||
run: | | ||
npm install --global prettier@2.2.0 | ||
make prettier-check |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
manifests/v1beta1/components/cert-generator/kustomization.yaml
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,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- cert-generator.yaml | ||
- rbac.yaml |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- controller.yaml | ||
- katib-config.yaml | ||
- rbac.yaml | ||
- service.yaml | ||
- trial-templates.yaml |
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,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- experiment.yaml | ||
- suggestion.yaml | ||
- trial.yaml |
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,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- db-manager.yaml | ||
- service.yaml |
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,9 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- mysql.yaml | ||
- pv.yaml | ||
- pvc.yaml | ||
- secret.yaml | ||
- service.yaml |
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,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: kubeflow | ||
resources: | ||
# Namespace. | ||
- namespace.yaml |
File renamed without changes.
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,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- rbac.yaml | ||
- service.yaml | ||
- ui.yaml |
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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- webhooks.yaml |
File renamed without changes.
60 changes: 60 additions & 0 deletions
60
manifests/v1beta1/installs/katib-cert-manager/kustomization.yaml
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,60 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: kubeflow | ||
resources: | ||
# Namespace. | ||
- ../../components/namespace | ||
# Katib controller. | ||
- ../../components/controller/ | ||
# Katib CRDs. | ||
- ../../components/crd/ | ||
# Katib DB manager. | ||
- ../../components/db-manager/ | ||
# Katib DB mysql. | ||
- ../../components/mysql/ | ||
# Katib UI. | ||
- ../../components/ui/ | ||
# Katib webhooks. | ||
- ../../components/webhook/ | ||
# Cert-manager certificate for webhooks | ||
- certificate.yaml | ||
images: | ||
- name: docker.io/kubeflowkatib/katib-controller | ||
newName: docker.io/kubeflowkatib/katib-controller | ||
newTag: v0.11.0 | ||
- name: docker.io/kubeflowkatib/katib-db-manager | ||
newName: docker.io/kubeflowkatib/katib-db-manager | ||
newTag: v0.11.0 | ||
- name: docker.io/kubeflowkatib/katib-ui | ||
newName: docker.io/kubeflowkatib/katib-ui | ||
newTag: v0.11.0 | ||
|
||
patchesStrategicMerge: | ||
- patches/katib-cert-injection.yaml | ||
|
||
vars: | ||
- fieldref: | ||
fieldPath: metadata.namespace | ||
name: KATIB_NAMESPACE | ||
objref: | ||
apiVersion: v1 | ||
kind: Service | ||
name: katib-controller | ||
- fieldref: | ||
fieldPath: metadata.name | ||
name: KATIB_SERVICE_NAME | ||
objref: | ||
apiVersion: v1 | ||
kind: Service | ||
name: katib-controller | ||
- name: KATIB_CERT_NAME | ||
objref: | ||
kind: Certificate | ||
group: cert-manager.io | ||
version: v1alpha2 | ||
name: katib-webhook-cert | ||
fieldref: | ||
fieldpath: metadata.name | ||
|
||
configurations: | ||
- params.yaml |
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.