This file contains hidden or 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
| import logging | |
| import glob | |
| import os | |
| import textwrap | |
| import re | |
| import numpy as np | |
| import pandas as pd | |
| from flask import Flask, request, jsonify | |
| from flask_cors import CORS | |
| from vertexai.preview.language_models import TextEmbeddingModel, TextGenerationModel, CodeGenerationModel |
This file contains hidden or 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
| # Base valid ReplicationController object (must be the SAME as in valid.yaml) | |
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| name: valid-rc | |
| spec: | |
| replicas: 1 | |
| selector: | |
| app: my-app | |
| template: |
This file contains hidden or 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
| # Base valid ReplicationController object (must be the SAME as in valid.yaml) | |
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| name: valid-rc | |
| spec: | |
| replicas: 1 | |
| selector: | |
| app: my-app | |
| template: |
This file contains hidden or 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
| # Base valid ReplicationController object | |
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| name: valid-rc | |
| spec: | |
| replicas: 1 # Valid: default value | |
| selector: | |
| app: my-app | |
| template: |
This file contains hidden or 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
| /* | |
| Copyright 2024 The Kubernetes 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 writing, software |
This file contains hidden or 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
| diff --git a/pkg/apis/core/validation/validation_test.go b/pkg/apis/core/validation/validation_test.go | |
| index 295f8425eab..8a9fdb68661 100644 | |
| --- a/pkg/apis/core/validation/validation_test.go | |
| +++ b/pkg/apis/core/validation/validation_test.go | |
| @@ -1,27 +1,32 @@ | |
| /* | |
| -Copyright 2014 The Kubernetes Authors. | |
| + Copyright 2014 The Kubernetes Authors. | |
| -Licensed under the Apache License, Version 2.0 (the "License"); |
This file contains hidden or 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
| //go:build !ignore_autogenerated | |
| // +build !ignore_autogenerated | |
| /* | |
| Copyright The Kubernetes 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 |
This file contains hidden or 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
| # HELP kubernetes_feature_enabled [BETA] This metric records the data about the stage and enablement of a k8s feature. | |
| # TYPE kubernetes_feature_enabled gauge | |
| kubernetes_feature_enabled{name="APIListChunking",stage=""} 1 | |
| kubernetes_feature_enabled{name="APIResponseCompression",stage="BETA"} 1 | |
| kubernetes_feature_enabled{name="APIServerIdentity",stage="BETA"} 1 | |
| kubernetes_feature_enabled{name="APIServerTracing",stage="BETA"} 1 | |
| kubernetes_feature_enabled{name="APIServingWithRoutine",stage="ALPHA"} 0 | |
| kubernetes_feature_enabled{name="AdmissionWebhookMatchConditions",stage=""} 1 | |
| kubernetes_feature_enabled{name="AggregatedDiscoveryEndpoint",stage=""} 1 | |
| kubernetes_feature_enabled{name="AllAlpha",stage="ALPHA"} 0 |
This file contains hidden or 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
| # HELP kubernetes_feature_enabled [BETA] This metric records the data about the stage and enablement of a k8s feature. | |
| # TYPE kubernetes_feature_enabled gauge | |
| kubernetes_feature_enabled{name="APIListChunking",stage=""} 1 | |
| kubernetes_feature_enabled{name="APIResponseCompression",stage="BETA"} 1 | |
| kubernetes_feature_enabled{name="APIServerIdentity",stage="BETA"} 1 | |
| kubernetes_feature_enabled{name="APIServerTracing",stage="BETA"} 1 | |
| kubernetes_feature_enabled{name="APIServingWithRoutine",stage="ALPHA"} 0 | |
| kubernetes_feature_enabled{name="AdmissionWebhookMatchConditions",stage=""} 1 | |
| kubernetes_feature_enabled{name="AggregatedDiscoveryEndpoint",stage=""} 1 | |
| kubernetes_feature_enabled{name="AllAlpha",stage="ALPHA"} 0 |
This file contains hidden or 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
| # HELP kubernetes_feature_enabled [BETA] This metric records the data about the stage and enablement of a k8s feature. | |
| # TYPE kubernetes_feature_enabled gauge | |
| kubernetes_feature_enabled{name="APIListChunking",stage=""} 1 | |
| kubernetes_feature_enabled{name="APIResponseCompression",stage="BETA"} 1 | |
| kubernetes_feature_enabled{name="APIServerIdentity",stage="BETA"} 1 | |
| kubernetes_feature_enabled{name="APIServerTracing",stage="BETA"} 1 | |
| kubernetes_feature_enabled{name="APIServingWithRoutine",stage="ALPHA"} 0 | |
| kubernetes_feature_enabled{name="AdmissionWebhookMatchConditions",stage=""} 1 | |
| kubernetes_feature_enabled{name="AggregatedDiscoveryEndpoint",stage=""} 1 | |
| kubernetes_feature_enabled{name="AllAlpha",stage="ALPHA"} 0 |