Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
pipelines | pipelines-master/backend/src/apiserver/template/template_test.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 10,833 | 30.221902 | 107 | go |
pipelines | pipelines-master/backend/src/apiserver/template/v2_template.go | // Copyright 2021-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 15,948 | 37.338942 | 232 | go |
pipelines | pipelines-master/backend/src/apiserver/template/testdata/hello_world.yaml | # this is a comment
components:
comp-hello-world:
executorLabel: exec-hello-world
inputDefinitions:
parameters:
text:
parameterType: STRING
deploymentSpec:
executors:
exec-hello-world:
container:
args:
- "--text"
- "{{$.inputs.parameters['text']}}"
... | 1,402 | 23.614035 | 105 | yaml |
pipelines | pipelines-master/backend/src/apiserver/template/testdata/hello_world_schema_2_0_0.yaml | components:
comp-hello-world:
executorLabel: exec-hello-world
inputDefinitions:
parameters:
text:
type: STRING
deploymentSpec:
executors:
exec-hello-world:
container:
args:
- "--text"
- "{{$.inputs.parameters['text']}}"
command:
- sh
... | 1,348 | 23.089286 | 105 | yaml |
pipelines | pipelines-master/backend/src/apiserver/template/testdata/pipeline_with_volume.yaml | # PIPELINE DEFINITION
# Name: my-pipeline
components:
comp-comp:
executorLabel: exec-comp
comp-comp-2:
executorLabel: exec-comp-2
comp-comp-3:
executorLabel: exec-comp-3
comp-createpvc:
executorLabel: exec-createpvc
inputDefinitions:
parameters:
access_modes:
paramete... | 6,334 | 27.926941 | 189 | yaml |
pipelines | pipelines-master/backend/src/apiserver/visualization/README.md | # Python based visualizations guideline
This document describes the architecture of python based visualizations,
development guidelines to contribute new predefined visualizations to the
Kubeflow Pipelines project, and current limitations. Python based visualizations
are a new method of generating visualizations withi... | 10,194 | 55.955307 | 205 | md |
pipelines | pipelines-master/backend/src/apiserver/visualization/exporter.py | """
exporter.py provides utility functions for generating NotebookNode objects and
converting those objects to HTML.
"""
# Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy o... | 5,411 | 34.142857 | 80 | py |
pipelines | pipelines-master/backend/src/apiserver/visualization/server.py | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 5,138 | 33.26 | 91 | py |
pipelines | pipelines-master/backend/src/apiserver/visualization/test_exporter.py | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 2,990 | 35.47561 | 77 | py |
pipelines | pipelines-master/backend/src/apiserver/visualization/test_server.py | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 3,274 | 31.425743 | 151 | py |
pipelines | pipelines-master/backend/src/apiserver/visualization/update_requirements.sh | #!/bin/bash
# This image should be in sync with Dockerfile.visualization.
IMAGE="tensorflow/tensorflow:2.5.1"
# tensorflow/tfx default entrypoint is Apache BEAM, because Apache BEAM doesn't
# support custom entrypoint for now. We need to override with --entrypoint ""
# for other `docker run` usecase.
# https://github.... | 457 | 44.8 | 79 | sh |
pipelines | pipelines-master/backend/src/apiserver/visualization/snapshots/snap_test_exporter.py | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['TestExporterMethods::test_create_cell_from_args_with_multiple_args 1'] = '''
<div class="output_wrapper">
<div class="output">
<div class="... | 2,063 | 22.454545 | 131 | py |
pipelines | pipelines-master/backend/src/apiserver/visualization/types/roc_curve.py | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 2,545 | 32.946667 | 104 | py |
pipelines | pipelines-master/backend/src/apiserver/visualization/types/table.py | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 1,680 | 31.960784 | 78 | py |
pipelines | pipelines-master/backend/src/apiserver/visualization/types/test.py | """
test.py provides a basic predefined visualization that can be used for testing
because it does not have dependencies and had a low chance of being updated.
"""
# Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance ... | 759 | 37 | 78 | py |
pipelines | pipelines-master/backend/src/apiserver/visualization/types/tfdv.py | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 3,733 | 39.150538 | 306 | py |
pipelines | pipelines-master/backend/src/apiserver/visualization/types/tfma.py | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 723 | 39.222222 | 94 | py |
pipelines | pipelines-master/backend/src/cache/README.md | ## Build src image
To build the Docker image of cache server, run the following Docker command from the pipelines directory:
```
docker build -t gcr.io/ml-pipeline/cache-server:latest -f backend/Dockerfile.cacheserver .
```
## Deploy cache service to an existing KFP deployment
1. Configure kubectl to talk to your new... | 903 | 36.666667 | 193 | md |
pipelines | pipelines-master/backend/src/cache/client_manager.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 5,099 | 27.651685 | 100 | go |
pipelines | pipelines-master/backend/src/cache/main.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 3,975 | 36.866667 | 141 | go |
pipelines | pipelines-master/backend/src/cache/client/kubernetes_core.go | package client
import (
"time"
"github.com/cenkalti/backoff"
"github.com/golang/glog"
"github.com/kubeflow/pipelines/backend/src/common/util"
"github.com/pkg/errors"
"k8s.io/client-go/kubernetes"
v1 "k8s.io/client-go/kubernetes/typed/core/v1"
"k8s.io/client-go/rest"
)
type KubernetesCoreInterface interface {... | 1,678 | 26.080645 | 131 | go |
pipelines | pipelines-master/backend/src/cache/client/kubernetes_core_fake.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 1,779 | 28.666667 | 96 | go |
pipelines | pipelines-master/backend/src/cache/client/pod_fake.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 4,159 | 31.5 | 175 | go |
pipelines | pipelines-master/backend/src/cache/client/sql.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 1,405 | 28.914894 | 123 | go |
pipelines | pipelines-master/backend/src/cache/client/sql_test.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 2,523 | 29.780488 | 200 | go |
pipelines | pipelines-master/backend/src/cache/deployer/deploy-cache-service.sh | #!/bin/bash
#
# Copyright 2020 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 5,345 | 44.692308 | 152 | sh |
pipelines | pipelines-master/backend/src/cache/deployer/webhook-create-signed-cert.sh | #!/bin/bash
#
# Copyright 2020 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 4,727 | 29.701299 | 167 | sh |
pipelines | pipelines-master/backend/src/cache/deployer/webhook-patch-ca-bundle.sh | #!/bin/bash
#
# Copyright 2020 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 1,180 | 25.244444 | 79 | sh |
pipelines | pipelines-master/backend/src/cache/model/execution_cache.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 1,732 | 36.673913 | 91 | go |
pipelines | pipelines-master/backend/src/cache/server/admission.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 6,063 | 32.502762 | 130 | go |
pipelines | pipelines-master/backend/src/cache/server/admission_test.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 3,754 | 31.652174 | 111 | go |
pipelines | pipelines-master/backend/src/cache/server/client_manager_fake.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 2,175 | 27.631579 | 83 | go |
pipelines | pipelines-master/backend/src/cache/server/mutation.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 11,969 | 32.909348 | 245 | go |
pipelines | pipelines-master/backend/src/cache/server/mutation_test.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 9,252 | 32.893773 | 145 | go |
pipelines | pipelines-master/backend/src/cache/server/watcher.go | package server
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
"reflect"
"strconv"
"time"
"github.com/kubeflow/pipelines/backend/src/cache/client"
"github.com/kubeflow/pipelines/backend/src/cache/model"
"github.com/peterhellberg/duration"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/ap... | 4,991 | 30.2 | 145 | go |
pipelines | pipelines-master/backend/src/cache/storage/db.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 936 | 28.28125 | 83 | go |
pipelines | pipelines-master/backend/src/cache/storage/db_fake.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,209 | 25.888889 | 75 | go |
pipelines | pipelines-master/backend/src/cache/storage/execution_cache_store.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 6,106 | 34.300578 | 157 | go |
pipelines | pipelines-master/backend/src/cache/storage/execution_cache_store_test.go | // Copyright 2020 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 7,375 | 33.957346 | 89 | go |
pipelines | pipelines-master/backend/src/common/types.go | // Copyright 2022 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 1,423 | 42.151515 | 135 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/util.go | package api_server
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"time"
workflowapi "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
"github.com/go-openapi/strfmt"
"github.com/kubeflow/pipelines/backend/src/c... | 3,287 | 30.615385 | 135 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/experiment_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 8,815 | 34.405622 | 111 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/experiment_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 3,134 | 29.144231 | 121 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/healthz_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 2,792 | 32.25 | 105 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/job_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 8,214 | 32.259109 | 99 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/job_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 3,137 | 24.306452 | 100 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/pipeline_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 13,593 | 36.142077 | 124 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/pipeline_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 4,586 | 27.490683 | 115 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/pipeline_upload_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 5,202 | 33.006536 | 145 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/pipeline_upload_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 2,101 | 31.84375 | 121 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/run_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 9,690 | 32.766551 | 99 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/run_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 3,072 | 26.936364 | 100 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/visualization_client.go | package api_server
import (
"fmt"
rt "github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
apiclient "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/visualization_client"
params "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/visualization_client/visualization_service... | 2,678 | 32.4875 | 117 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v1/visualization_client_fake.go | package api_server
import (
"encoding/json"
"fmt"
params "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/visualization_client/visualization_service"
model "github.com/kubeflow/pipelines/backend/api/v1beta1/go_http_client/visualization_model"
)
type VisualizationArguments struct {
fail bool
}
t... | 816 | 24.53125 | 117 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/experiment_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 7,044 | 32.708134 | 111 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/experiment_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 2,319 | 33.117647 | 111 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/healthz_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 2,341 | 33.441176 | 105 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/pipeline_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 11,850 | 36.267296 | 126 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/pipeline_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 3,044 | 31.052632 | 134 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/pipeline_upload_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 5,194 | 33.177632 | 149 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/pipeline_upload_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 1,811 | 30.789474 | 121 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/recurring_run_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 7,310 | 33.649289 | 117 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/recurring_run_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 2,428 | 32.736111 | 117 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/run_client.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 8,738 | 32.102273 | 101 | go |
pipelines | pipelines-master/backend/src/common/client/api_server/v2/run_client_fake.go | // Copyright 2018-2023 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 2,124 | 28.513889 | 97 | go |
pipelines | pipelines-master/backend/src/common/util/client_parameters.go | package util
// ClientParameters contains parameters needed when creating a client
type ClientParameters struct {
// Use float64 instead of float32 here to use flag.Float64Var() directly
QPS float64
Burst int
}
| 217 | 23.222222 | 73 | go |
pipelines | pipelines-master/backend/src/common/util/consts.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 2,785 | 46.220339 | 101 | go |
pipelines | pipelines-master/backend/src/common/util/error.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 12,742 | 27.192478 | 103 | go |
pipelines | pipelines-master/backend/src/common/util/error_test.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 969 | 32.448276 | 92 | go |
pipelines | pipelines-master/backend/src/common/util/execution_client.go | // Copyright 2022 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 5,756 | 36.875 | 142 | go |
pipelines | pipelines-master/backend/src/common/util/execution_spec.go | // Copyright 2022 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 9,055 | 32.416974 | 100 | go |
pipelines | pipelines-master/backend/src/common/util/execution_spec_test.go | // Copyright 2022 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 5,446 | 29.601124 | 99 | go |
pipelines | pipelines-master/backend/src/common/util/execution_status.go | // Copyright 2022 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 2,650 | 34.824324 | 108 | go |
pipelines | pipelines-master/backend/src/common/util/formatter.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 4,330 | 26.06875 | 100 | go |
pipelines | pipelines-master/backend/src/common/util/formatter_test.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 10,914 | 28.5 | 123 | go |
pipelines | pipelines-master/backend/src/common/util/json.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 1,725 | 25.151515 | 75 | go |
pipelines | pipelines-master/backend/src/common/util/label.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 894 | 28.833333 | 75 | go |
pipelines | pipelines-master/backend/src/common/util/label_test.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 922 | 27.84375 | 75 | go |
pipelines | pipelines-master/backend/src/common/util/parameter_formatter.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 5,151 | 34.047619 | 99 | go |
pipelines | pipelines-master/backend/src/common/util/parameter_formatter_test.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 2,219 | 35.393443 | 145 | go |
pipelines | pipelines-master/backend/src/common/util/pointer.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 2,277 | 18.305085 | 79 | go |
pipelines | pipelines-master/backend/src/common/util/scheduled_workflow.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 5,222 | 29.366279 | 203 | go |
pipelines | pipelines-master/backend/src/common/util/scheduled_workflow_test.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 6,837 | 32.356098 | 90 | go |
pipelines | pipelines-master/backend/src/common/util/service.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 2,736 | 29.076923 | 101 | go |
pipelines | pipelines-master/backend/src/common/util/string.go | package util
import "math"
// Truncate the provided string up to provided size
func Truncate(s string, size float64) string {
return s[:int(math.Min(float64(len(s)), size))]
}
| 179 | 19 | 51 | go |
pipelines | pipelines-master/backend/src/common/util/string_test.go | package util
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestTruncate(t *testing.T) {
assert.Equal(t, Truncate("123456", 10), "123456")
assert.Equal(t, Truncate("123456", 2), "12")
assert.Equal(t, Truncate("", 10), "")
assert.Equal(t, Truncate("123456", 0), "")
}
| 292 | 18.533333 | 50 | go |
pipelines | pipelines-master/backend/src/common/util/tgz.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 2,173 | 23.704545 | 79 | go |
pipelines | pipelines-master/backend/src/common/util/tgz_test.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 1,060 | 27.675676 | 75 | go |
pipelines | pipelines-master/backend/src/common/util/time.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 1,642 | 20.337662 | 75 | go |
pipelines | pipelines-master/backend/src/common/util/uuid.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 1,875 | 29.754098 | 103 | go |
pipelines | pipelines-master/backend/src/common/util/workflow.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 28,576 | 30.716981 | 177 | go |
pipelines | pipelines-master/backend/src/common/util/workflow_test.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 21,692 | 27.885486 | 222 | go |
pipelines | pipelines-master/backend/src/crd/README.md | ## CRD controller
This directory contains code for custom Kubernetes CRDs and controllers used by
the Kubeflow pipelines system. Currently there are 2 such systems:
* ScheduledWorkflow
* Viewer
The following are guidelines on developing and running these controllers.
### Prerequisites
First, we need to generate the... | 6,551 | 26.07438 | 108 | md |
pipelines | pipelines-master/backend/src/crd/controller/scheduledworkflow/controller.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 21,146 | 38.75 | 124 | go |
pipelines | pipelines-master/backend/src/crd/controller/scheduledworkflow/main.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 4,104 | 33.495798 | 154 | go |
pipelines | pipelines-master/backend/src/crd/controller/scheduledworkflow/client/kube_client.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 2,162 | 34.459016 | 99 | go |
pipelines | pipelines-master/backend/src/crd/controller/scheduledworkflow/client/swf_client.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 2,499 | 35.231884 | 112 | go |
pipelines | pipelines-master/backend/src/crd/controller/scheduledworkflow/client/workflow_client.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 5,381 | 33.948052 | 107 | go |
pipelines | pipelines-master/backend/src/crd/controller/scheduledworkflow/client/workflow_client_test.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 6,572 | 28.742081 | 101 | go |
pipelines | pipelines-master/backend/src/crd/controller/scheduledworkflow/util/const.go | // Copyright 2018 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,160 | 32.171429 | 129 | go |