github.com/GoogleContainerTools/skaffold@v1.39.18/pkg/skaffold/deploy/kubectl/constants.go (about)

     1  /*
     2  Copyright 2020 The Skaffold Authors
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package kubectl
    18  
    19  const (
    20  	KubectlVersion112 = `{"clientVersion":{"major":"1","minor":"12"}}`
    21  	KubectlVersion118 = `{"clientVersion":{"major":"1","minor":"18"}}`
    22  )
    23  
    24  var TestKubeConfig = "kubeconfig"
    25  var TestKubeContext = "kubecontext"
    26  var TestNamespace = "testNamespace"
    27  var TestNamespace2 = "testNamespace2"
    28  var TestNamespace2FromEnvTemplate = "test{{.MYENV}}ace2" // needs `MYENV=Namesp` environment variable
    29  
    30  const DeploymentWebYAML = `apiVersion: v1
    31  kind: Pod
    32  metadata:
    33    name: leeroy-web
    34  spec:
    35    containers:
    36      - name: leeroy-web
    37        image: leeroy-web`
    38  
    39  const DeploymentWebYAMLv1 = `apiVersion: v1
    40  kind: Pod
    41  metadata:
    42    name: leeroy-web
    43  spec:
    44    containers:
    45      - image: leeroy-web:v1
    46        name: leeroy-web`
    47  
    48  const DeploymentAppYAML = `apiVersion: v1
    49  kind: Pod
    50  metadata:
    51    name: leeroy-app
    52  spec:
    53    containers:
    54      - name: leeroy-app
    55        image: leeroy-app`
    56  
    57  const DeploymentAppYAMLv1 = `apiVersion: v1
    58  kind: Pod
    59  metadata:
    60    name: leeroy-app
    61  spec:
    62    containers:
    63      - image: leeroy-app:v1
    64        name: leeroy-app`
    65  
    66  const DeploymentAppYAMLv2 = `apiVersion: v1
    67  kind: Pod
    68  metadata:
    69    name: leeroy-app
    70  spec:
    71    containers:
    72      - image: leeroy-app:v2
    73        name: leeroy-app`