Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for staticPods (0.17 sec)

  1. cmd/kubeadm/app/phases/upgrade/staticpods.go

    	equal, diff, err := staticpod.ManifestFilesAreEqual(currentManifestPath, newManifestPath)
    	if err != nil {
    		return err
    	}
    	if equal {
    		if !apiServerUpgrade {
    			fmt.Printf("[upgrade/staticpods] Current and new manifests of %s are equal, skipping upgrade\n", component)
    			return nil
    		}
    		klog.V(4).Infof("[upgrade/staticpods] Current and new manifests of %s are equal, but %s will be upgraded\n",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 10:07:41 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/componentconfigs/kubelet_windows_test.go

    				ResolverConfig: &fooResolverConfig,
    				StaticPodPath:  "/foo/staticpods",
    				Authentication: kubeletconfig.KubeletAuthentication{
    					X509: kubeletconfig.KubeletX509Authentication{
    						ClientCAFile: "/foo/ca.crt",
    					},
    				},
    			},
    			expected: &kubeletconfig.KubeletConfiguration{
    				ResolverConfig: ptr.To(""),
    				StaticPodPath:  filepath.Join(drive, "/foo/staticpods"),
    				Authentication: kubeletconfig.KubeletAuthentication{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/config/cluster_test.go

    				rt.staticPod.NodeName = rt.nodeName
    				if err := rt.staticPod.Create(client); err != nil {
    					t.Error("could not create static pod")
    					return
    				}
    			}
    			apiEndpoint := kubeadmapi.APIEndpoint{}
    			err := getAPIEndpointWithRetry(client, rt.nodeName, &apiEndpoint,
    				time.Millisecond*10, time.Millisecond*100)
    			if err != nil && !rt.expectedErr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  4. pkg/kubelet/pod/pod_manager_test.go

    		t.Errorf("unable to translate UID %q to the static POD's UID %q; %#v",
    			mirrorPod.UID, staticPod.UID, podManager.mirrorPodByUID)
    	}
    
    	// Test the basic Get methods.
    	actualPod, ok := podManager.GetPodByFullName("bar_default")
    	if !ok || !reflect.DeepEqual(actualPod, staticPod) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 16:57:27 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. pkg/kubelet/status/status_manager_test.go

    	m.podManager.(mutablePodManager).AddPod(staticPod)
    	assert.True(t, kubetypes.IsStaticPod(staticPod), "SetUp error: staticPod")
    
    	status := getRandomPodStatus()
    	now := metav1.Now()
    	status.StartTime = &now
    	m.SetPodStatus(staticPod, status)
    
    	t.Logf("Should be able to get the static pod status from status manager")
    	retrievedStatus := expectPodStatus(t, m, staticPod)
    	normalizeStatus(staticPod, &status)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/reset/removeetcdmember.go

    	kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
    	etcdphase "k8s.io/kubernetes/cmd/kubeadm/app/phases/etcd"
    	utilstaticpod "k8s.io/kubernetes/cmd/kubeadm/app/util/staticpod"
    )
    
    // NewRemoveETCDMemberPhase creates a kubeadm workflow phase for remove-etcd-member
    func NewRemoveETCDMemberPhase() workflow.Phase {
    	return workflow.Phase{
    		Name:  "remove-etcd-member",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 11 08:02:50 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/staticpod/utils_linux_test.go

    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.
    */
    
    package staticpod
    
    import (
    	"path/filepath"
    	"reflect"
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/utils/ptr"
    
    	"k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 14:41:12 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/staticpod/utils_linux.go

    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.
    */
    
    package staticpod
    
    import (
    	"fmt"
    	"path/filepath"
    
    	"github.com/pkg/errors"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/utils/ptr"
    
    	kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 14:41:12 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_pods_test.go

    			wantErr: false,
    			pods: []*v1.Pod{
    				staticPod(),
    			},
    			prepareWorker: func(t *testing.T, w *podWorkers, records map[types.UID][]syncPodRecord) {
    				// send a create of a static pod
    				pod := staticPod()
    				// block startup of the static pod due to full name collision
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/apiclient/wait.go

    	staticPodName := fmt.Sprintf("%s-%s", component, nodeName)
    	staticPod, err := client.CoreV1().Pods(metav1.NamespaceSystem).Get(context.TODO(), staticPodName, metav1.GetOptions{})
    	if err != nil {
    		return "", errors.Wrapf(err, "failed to obtain static Pod hash for component %s on Node %s", component, nodeName)
    	}
    
    	staticPodHash := staticPod.Annotations["kubernetes.io/config.hash"]
    	return staticPodHash, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top