istio: istio.io/istio/galley/pkg/config/analysis/analyzers/sidecar Index | Files

package sidecar

import "istio.io/istio/galley/pkg/config/analysis/analyzers/sidecar"

Copyright 2019 Istio 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.

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.

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

Package Files

defaultselector.go selector.go util.go

type DefaultSelectorAnalyzer Uses

type DefaultSelectorAnalyzer struct{}

DefaultSelectorAnalyzer validates, per namespace, that there aren't multiple sidecar resources that have no selector. This is distinct from SelectorAnalyzer because it does not require pods, so it can run even if that collection is unavailable.

func (*DefaultSelectorAnalyzer) Analyze Uses

func (a *DefaultSelectorAnalyzer) Analyze(c analysis.Context)

Analyze implements Analyzer

func (*DefaultSelectorAnalyzer) Metadata Uses

func (a *DefaultSelectorAnalyzer) Metadata() analysis.Metadata

Metadata implements Analyzer

type SelectorAnalyzer Uses

type SelectorAnalyzer struct{}

SelectorAnalyzer validates, per namespace, that: * sidecar resources that define a workload selector match at least one pod * there aren't multiple sidecar resources that select overlapping pods

func (*SelectorAnalyzer) Analyze Uses

func (a *SelectorAnalyzer) Analyze(c analysis.Context)

Analyze implements Analyzer

func (*SelectorAnalyzer) Metadata Uses

func (a *SelectorAnalyzer) Metadata() analysis.Metadata

Metadata implements Analyzer

Package sidecar imports 8 packages (graph) and is imported by 1 packages. Updated 2020-02-16. Refresh now. Tools for package owners.