Documentation ¶
Index ¶
- Constants
- func ApplyAPIService(client apiregclientv1.APIServicesGetter, required *apiregv1.APIService) (*apiregv1.APIService, bool, error)
- func ApplyClusterRole(client rbacclientv1.ClusterRolesGetter, required *rbacv1.ClusterRole) (*rbacv1.ClusterRole, bool, error)
- func ApplyClusterRoleBinding(client rbacclientv1.ClusterRoleBindingsGetter, ...) (*rbacv1.ClusterRoleBinding, bool, error)
- func ApplyClusterVersion(client configclientv1.ClusterVersionsGetter, required *configv1.ClusterVersion) (*configv1.ClusterVersion, bool, error)
- func ApplyClusterVersionFromCache(lister configlistersv1.ClusterVersionLister, ...) (*configv1.ClusterVersion, bool, error)
- func ApplyConfigMap(client coreclientv1.ConfigMapsGetter, required *corev1.ConfigMap) (*corev1.ConfigMap, bool, error)
- func ApplyCustomResourceDefinitionV1(client apiextclientv1.CustomResourceDefinitionsGetter, ...) (*apiextv1.CustomResourceDefinition, bool, error)
- func ApplyCustomResourceDefinitionV1beta1(client apiextclientv1beta1.CustomResourceDefinitionsGetter, ...) (*apiextv1beta1.CustomResourceDefinition, bool, error)
- func ApplyDaemonSet(client appsclientv1.DaemonSetsGetter, required *appsv1.DaemonSet) (*appsv1.DaemonSet, bool, error)
- func ApplyDaemonSetFromCache(lister appslisterv1.DaemonSetLister, client appsclientv1.DaemonSetsGetter, ...) (*appsv1.DaemonSet, bool, error)
- func ApplyDeployment(client appsclientv1.DeploymentsGetter, required *appsv1.Deployment) (*appsv1.Deployment, bool, error)
- func ApplyDeploymentFromCache(lister appslisterv1.DeploymentLister, client appsclientv1.DeploymentsGetter, ...) (*appsv1.Deployment, bool, error)
- func ApplyJob(client batchclientv1.JobsGetter, required *batchv1.Job) (*batchv1.Job, bool, error)
- func ApplyNamespace(client coreclientv1.NamespacesGetter, required *corev1.Namespace) (*corev1.Namespace, bool, error)
- func ApplyRole(client rbacclientv1.RolesGetter, required *rbacv1.Role) (*rbacv1.Role, bool, error)
- func ApplyRoleBinding(client rbacclientv1.RoleBindingsGetter, required *rbacv1.RoleBinding) (*rbacv1.RoleBinding, bool, error)
- func ApplySecurityContextConstraints(client securityclientv1.SecurityContextConstraintsGetter, ...) (*securityv1.SecurityContextConstraints, bool, error)
- func ApplyService(client coreclientv1.ServicesGetter, required *corev1.Service) (*corev1.Service, bool, error)
- func ApplyServiceAccount(client coreclientv1.ServiceAccountsGetter, required *corev1.ServiceAccount) (*corev1.ServiceAccount, bool, error)
- func IsCreateOnly(metadata metav1.Object) bool
Constants ¶
const CreateOnlyAnnotation = "release.openshift.io/create-only"
CreateOnlyAnnotation means that this resource should be created if it does not exist, but should not be updated if it already exists. It is uniformly respected across all resources, but the first known use-cases are for empty config.openshift.io and initial low-level operator resources. Set .metadata.annotations["release.openshift.io/create-only"]="true" to have a create-only resource.
Variables ¶
This section is empty.
Functions ¶
func ApplyAPIService ¶
func ApplyAPIService(client apiregclientv1.APIServicesGetter, required *apiregv1.APIService) (*apiregv1.APIService, bool, error)
func ApplyClusterRole ¶
func ApplyClusterRole(client rbacclientv1.ClusterRolesGetter, required *rbacv1.ClusterRole) (*rbacv1.ClusterRole, bool, error)
ApplyClusterRole applies the required clusterrole to the cluster.
func ApplyClusterRoleBinding ¶
func ApplyClusterRoleBinding(client rbacclientv1.ClusterRoleBindingsGetter, required *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, bool, error)
ApplyClusterRoleBinding applies the required clusterrolebinding to the cluster.
func ApplyClusterVersion ¶
func ApplyClusterVersion(client configclientv1.ClusterVersionsGetter, required *configv1.ClusterVersion) (*configv1.ClusterVersion, bool, error)
func ApplyClusterVersionFromCache ¶
func ApplyClusterVersionFromCache(lister configlistersv1.ClusterVersionLister, client configclientv1.ClusterVersionsGetter, required *configv1.ClusterVersion) (*configv1.ClusterVersion, bool, error)
func ApplyConfigMap ¶
func ApplyConfigMap(client coreclientv1.ConfigMapsGetter, required *corev1.ConfigMap) (*corev1.ConfigMap, bool, error)
ApplyConfigMap applies the required serviceaccount to the cluster.
func ApplyCustomResourceDefinitionV1 ¶
func ApplyCustomResourceDefinitionV1(client apiextclientv1.CustomResourceDefinitionsGetter, required *apiextv1.CustomResourceDefinition) (*apiextv1.CustomResourceDefinition, bool, error)
func ApplyCustomResourceDefinitionV1beta1 ¶
func ApplyCustomResourceDefinitionV1beta1(client apiextclientv1beta1.CustomResourceDefinitionsGetter, required *apiextv1beta1.CustomResourceDefinition) (*apiextv1beta1.CustomResourceDefinition, bool, error)
func ApplyDaemonSet ¶
func ApplyDaemonSet(client appsclientv1.DaemonSetsGetter, required *appsv1.DaemonSet) (*appsv1.DaemonSet, bool, error)
ApplyDaemonSet applies the required daemonset to the cluster.
func ApplyDaemonSetFromCache ¶
func ApplyDaemonSetFromCache(lister appslisterv1.DaemonSetLister, client appsclientv1.DaemonSetsGetter, required *appsv1.DaemonSet) (*appsv1.DaemonSet, bool, error)
ApplyDaemonSetFromCache applies the required deployment to the cluster.
func ApplyDeployment ¶
func ApplyDeployment(client appsclientv1.DeploymentsGetter, required *appsv1.Deployment) (*appsv1.Deployment, bool, error)
ApplyDeployment applies the required deployment to the cluster.
func ApplyDeploymentFromCache ¶
func ApplyDeploymentFromCache(lister appslisterv1.DeploymentLister, client appsclientv1.DeploymentsGetter, required *appsv1.Deployment) (*appsv1.Deployment, bool, error)
ApplyDeploymentFromCache applies the required deployment to the cluster.
func ApplyJob ¶
func ApplyJob(client batchclientv1.JobsGetter, required *batchv1.Job) (*batchv1.Job, bool, error)
ApplyJob applies the required Job to the cluster.
func ApplyNamespace ¶
func ApplyNamespace(client coreclientv1.NamespacesGetter, required *corev1.Namespace) (*corev1.Namespace, bool, error)
ApplyNamespace merges objectmeta, does not worry about anything else
func ApplyRole ¶
func ApplyRole(client rbacclientv1.RolesGetter, required *rbacv1.Role) (*rbacv1.Role, bool, error)
ApplyRole applies the required clusterrole to the cluster.
func ApplyRoleBinding ¶
func ApplyRoleBinding(client rbacclientv1.RoleBindingsGetter, required *rbacv1.RoleBinding) (*rbacv1.RoleBinding, bool, error)
ApplyRoleBinding applies the required clusterrolebinding to the cluster.
func ApplySecurityContextConstraints ¶
func ApplySecurityContextConstraints(client securityclientv1.SecurityContextConstraintsGetter, required *securityv1.SecurityContextConstraints) (*securityv1.SecurityContextConstraints, bool, error)
ApplySecurityContextConstraints applies the required SecurityContextConstraints to the cluster.
func ApplyService ¶
func ApplyService(client coreclientv1.ServicesGetter, required *corev1.Service) (*corev1.Service, bool, error)
ApplyService merges objectmeta and requires TODO, since this cannot determine whether changes are due to legitimate actors (api server) or illegitimate ones (users), we cannot update TODO I've special cased the selector for now
func ApplyServiceAccount ¶
func ApplyServiceAccount(client coreclientv1.ServiceAccountsGetter, required *corev1.ServiceAccount) (*corev1.ServiceAccount, bool, error)
ApplyServiceAccount applies the required serviceaccount to the cluster.
func IsCreateOnly ¶
IsCreateOnly takes metadata and returns true if the resource should only be created, not updated.
Types ¶
This section is empty.