Documentation
¶
Overview ¶
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, 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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersion ¶
func GetVersion() string
Types ¶
type Deployment ¶
func (*Deployment) GetHpa ¶
func (d *Deployment) GetHpa(values *Type) Hpa
func (*Deployment) GetMinReplicas ¶
func (d *Deployment) GetMinReplicas(values *Type) int32
func (*Deployment) GetPdb ¶
func (d *Deployment) GetPdb(values *Type) Pdb
type Type ¶
type Type struct { // version spec Version types.Version // name blue green deployment, defaults to first deployment Name string // namespace of deployment Namespace string // environment of deployment Environment string // HorizontalPodAutoscaler spec Hpa Hpa // PodDisruptionBudget spec Pdb Pdb // replicas to set for new deployments MinReplicas int32 // flag to create new services with new version CreateService bool // flag to delete origin deployment,configmaps after successful deployment DeleteOrigins bool // interval between pod checks PodCheckIntervalSeconds int // max time to wait for pods to be ready PodCheckMaxSeconds int // deployments spec Deployments []*Deployment // services spec Services []*Service // configmaps spec ConfigMaps []*ConfigMap // WebHook spec WebHooks []*WebHook }
Click to show internal directories.
Click to hide internal directories.