Documentation
¶
Overview ¶
Copyright 2026 The Tekton 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 ¶
- func ApplyCABundlesForStatefulSet(name string) func(u *unstructured.Unstructured) error
- func ApplyCABundlesToDeployment(u *unstructured.Unstructured) error
- func GetOCPVersion(ctx context.Context) (*semver.Version, error)
- func RemoveFsGroupForDeployment() mf.Transformer
- func RemoveFsGroupForJob() mf.Transformer
- func RemoveFsGroupForStatefulSet(name string) mf.Transformer
- func RemoveRunAsGroup() mf.Transformer
- func RemoveRunAsGroupForStatefulSet(name string) mf.Transformer
- func RemoveRunAsUser() mf.Transformer
- func RemoveRunAsUserForJob() mf.Transformer
- func RemoveRunAsUserForStatefulSet(name string) mf.Transformer
- func SetOpenshiftClient(client openshiftconfigclient.Interface)
- func UpdateServiceMonitorTargetNamespace(targetNamespace string) mf.Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCABundlesForStatefulSet ¶ added in v0.76.1
func ApplyCABundlesForStatefulSet(name string) func(u *unstructured.Unstructured) error
ApplyCABundlesForStatefulSet is a transformer that adds CA bundle configurations to a StatefulSet. It configures both trusted CA bundle and service CA bundle by: - Adding volumes for the CA bundle ConfigMaps - Adding volume mounts to containers - Setting up necessary annotations for OpenShift service CA injection The function modifies the StatefulSet in place and returns any error encountered.
func ApplyCABundlesToDeployment ¶ added in v0.76.1
func ApplyCABundlesToDeployment(u *unstructured.Unstructured) error
ApplyCABundlesToDeployment is a transformer that add the trustedCA volume, mount and environment variables so that the deployment uses it.
func GetOCPVersion ¶ added in v0.78.2
func RemoveFsGroupForDeployment ¶ added in v0.63.0
func RemoveFsGroupForDeployment() mf.Transformer
RemoveFsGroupForDeployment will remove FsGroup in a deployment
func RemoveFsGroupForJob ¶ added in v0.63.0
func RemoveFsGroupForJob() mf.Transformer
RemoveFsGroupForJob will remove FsGroup in a job
func RemoveFsGroupForStatefulSet ¶ added in v0.76.1
func RemoveFsGroupForStatefulSet(name string) mf.Transformer
RemoveFsGroupForStatefulSet will remove FsGroup in a statefulset
func RemoveRunAsGroup ¶
func RemoveRunAsGroup() mf.Transformer
RemoveRunAsGroup will remove runAsGroup from all container in a deployment
func RemoveRunAsGroupForStatefulSet ¶ added in v0.76.1
func RemoveRunAsGroupForStatefulSet(name string) mf.Transformer
RemoveRunAsGroupForStatefulSet will remove runAsGroup from all container in a statefulset
func RemoveRunAsUser ¶ added in v0.50.0
func RemoveRunAsUser() mf.Transformer
RemoveRunAsUser will remove RunAsUser from all container in a deployment
func RemoveRunAsUserForJob ¶ added in v0.63.0
func RemoveRunAsUserForJob() mf.Transformer
RemoveRunAsUserForJob will remove RunAsUser from all container in a job
func RemoveRunAsUserForStatefulSet ¶ added in v0.76.1
func RemoveRunAsUserForStatefulSet(name string) mf.Transformer
RemoveRunAsUserForStatefulset will remove RunAsUser from all container in a statefulset
func SetOpenshiftClient ¶ added in v0.78.2
func SetOpenshiftClient(client openshiftconfigclient.Interface)
func UpdateServiceMonitorTargetNamespace ¶ added in v0.64.0
func UpdateServiceMonitorTargetNamespace(targetNamespace string) mf.Transformer
Types ¶
This section is empty.