Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ApplyPullSecret (0.31 sec)

  1. pkg/test/util/yml/apply.go

    			return "", err
    		}
    		toJoin = append(toJoin, chunk)
    	}
    
    	result := JoinString(toJoin...)
    	return result, nil
    }
    
    // ApplyPullSecrets applies the given pullsecret to the deployment resource
    func ApplyPullSecret(deploymentYaml string, pullSecret string) (string, error) {
    	var deploymentMerge appsv1.Deployment
    
    	mainYaml, err := yaml.YAMLToJSON([]byte(deploymentYaml))
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 07:02:38 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. pkg/test/framework/components/jwt/kube.go

    			return err
    		})
    	}
    
    	return g.Wait().ErrorOrNil()
    }
    
    func addPullSecret(resource string, pullSecret string) (string, error) {
    	res := yml.SplitString(resource)
    	updatedYaml, err := yml.ApplyPullSecret(res[2], pullSecret)
    	if err != nil {
    		return "", err
    	}
    	mergedYaml := yml.JoinString(res[0], res[1], updatedYaml)
    	return mergedYaml, nil
    }
    
    type serverImpl struct {
    	id resource.ID
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 22 23:45:43 UTC 2022
    - 4K bytes
    - Viewed (0)
  3. pkg/test/framework/components/authz/kube.go

    	return yamlText, nil
    }
    
    func addPullSecret(resource string, pullSecret string) (string, error) {
    	res := yml.SplitString(resource)
    	updatedYaml, err := yml.ApplyPullSecret(res[1], pullSecret)
    	if err != nil {
    		return "", err
    	}
    	mergedYaml := yml.JoinString(res[0], updatedYaml)
    	return mergedYaml, nil
    }
    
    func (s *serverImpl) deploy(ctx resource.Context) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top