k8s/io/kubernetes/pkg/api.PullPolicy 示例代码

2022-03-03

以下示例是关于golang中包含api.PullPolicy用法的示例代码,想了解api.PullPolicy的具体用法?api.PullPolicy怎么用?api.PullPolicy使用的例子?那么可以参考以下10个相关示例代码来学习它的具体使用方法。

示例1:
executor_kubernetes.go开发语言: Go项目名称: gitlab-ci-multi-runner代码行数: 563
191		Image:           image,
192		ImagePullPolicy: api.PullPolicy(s.pullPolicy),
193		Command:         command,
示例2:
executor_kubernetes.go开发语言: Go项目名称: gitlab-ci-multi-runner代码行数: 367
182		Image:           image,
183		ImagePullPolicy: api.PullPolicy(s.pullPolicy),
184		Command:         command,
示例3:
run.go开发语言: Go项目名称: cjcullen代码行数: 995
93
94	imagePullPolicy := api.PullPolicy(params["image-pull-policy"])
95	if err = updatePodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil {
267
268	imagePullPolicy := api.PullPolicy(params["image-pull-policy"])
269	if err = updatePodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil {
701
702	imagePullPolicy := api.PullPolicy(params["image-pull-policy"])
703	if err = updatePodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil {
729
730func updatePodContainers(params map[string]string, args []string, envs []api.EnvVar, imagePullPolicy api.PullPolicy, podSpec *api.PodSpec) error {
731	if len(args) > 0 {
940	}
941	imagePullPolicy := api.PullPolicy(params["image-pull-policy"])
942	if err = updatePodContainers(params, args, envs, imagePullPolicy, &pod.Spec); err != nil {
示例4:
run.go开发语言: Go项目名称: cloud-zuiwanyuan代码行数: 995
93
94	imagePullPolicy := api.PullPolicy(params["image-pull-policy"])
95	if err = updatePodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil {
267
268	imagePullPolicy := api.PullPolicy(params["image-pull-policy"])
269	if err = updatePodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil {
701
702	imagePullPolicy := api.PullPolicy(params["image-pull-policy"])
703	if err = updatePodContainers(params, args, envs, imagePullPolicy, podSpec); err != nil {
729
730func updatePodContainers(params map[string]string, args []string, envs []api.EnvVar, imagePullPolicy api.PullPolicy, podSpec *api.PodSpec) error {
731	if len(args) > 0 {
940	}
941	imagePullPolicy := api.PullPolicy(params["image-pull-policy"])
942	if err = updatePodContainers(params, args, envs, imagePullPolicy, &pod.Spec); err != nil {
示例5:
rollingupdate.go开发语言: Go项目名称: abhgupta代码行数: 389
260				}
261				config.PullPolicy = api.PullPolicy(pullPolicy)
262			}
示例6:
rollingupdate.go开发语言: Go项目名称: cjcullen代码行数: 415
269				}
270				config.PullPolicy = api.PullPolicy(pullPolicy)
271			}
示例7:
rollingupdate.go开发语言: Go项目名称: cloud-zuiwanyuan代码行数: 416
270				}
271				config.PullPolicy = api.PullPolicy(pullPolicy)
272			}
示例8:
rolling_updater.go开发语言: Go项目名称: abhgupta代码行数: 838
588	DeploymentKey    string
589	PullPolicy       api.PullPolicy
590}
示例9:
run.go开发语言: Go项目名称: abhgupta代码行数: 640
508	pullPolicy := cmdutil.GetFlagString(cmd, "image-pull-policy")
509	switch api.PullPolicy(pullPolicy) {
510	case api.PullAlways, api.PullIfNotPresent, api.PullNever:
示例10:
rolling_updater.go开发语言: Go项目名称: cjcullen代码行数: 835
579	DeploymentKey    string
580	PullPolicy       api.PullPolicy
581}

本文地址:https://www.itbaoku.cn/snippets/415625.html