Documentation
¶
Overview ¶
Copyright 2020 The Knative 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 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const PodSpecDryRunAnnotation = "features.knative.dev/podspec-dryrun"
PodSpecDryRunAnnotation gates the podspec dryrun feature and runs with the value 'enabled'
Variables ¶
This section is empty.
Functions ¶
func ValidateConfiguration ¶ added in v0.17.0
func ValidateConfiguration(ctx context.Context, uns *unstructured.Unstructured) error
ValidateConfiguration runs extra validation on Configuration resources
func ValidateService ¶ added in v0.17.0
func ValidateService(ctx context.Context, uns *unstructured.Unstructured) error
ValidateService runs extra validation on Service resources
Types ¶
type DryRunMode ¶ added in v0.15.0
type DryRunMode string
DryRunMode represents possible values of the PodSpecDryRunAnnotation
const ( // DryRunEnabled will run the dryrun logic. Will succeed if dryrun is unsupported. DryRunEnabled DryRunMode = "enabled" // DryRunStrict will run the dryrun logic and fail if dryrun is not supported. DryRunStrict DryRunMode = "strict" )