Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Create ¶
type Create struct {
AddHost []string `desc:"Add a custom host-to-IP mapping (host=ip)"`
Annotations map[string]string `desc:"Annotations to attach to this service"`
BuildBranch string `desc:"Build repository branch" default:"master"`
BuildDockerfile string `desc:"Set Dockerfile name, defaults to Dockerfile"`
BuildContext string `desc:"Set build context, defaults to ."`
BuildWebhookSecret string `desc:"Set GitHub webhook secret name"`
BuildDockerPushSecret string `desc:"Set docker push secret name"`
BuildCloneSecret string `desc:"Set git clone secret name"`
BuildImageName string `desc:"Specify custom image name to push"`
BuildRegistry string `desc:"Specify to push image to"`
BuildRevision string `desc:"Build a specific git commit or tag"`
BuildPr bool `desc:"Enable builds on new pull requests. Can only be used when template and webhook are set"`
BuildTag bool `desc:"Enable builds on any new tags instead of new commits on a branch, requires webhook, does not support polling"`
BuildTagInclude string `desc:"Pattern that tags must match"`
BuildTagExclude string `desc:"Pattern that excludes tags"`
BuildTimeout string `desc:"Timeout for build, default to 10m (ms|s|m|h)"`
Command []string `desc:"Overwrite the default ENTRYPOINT of the image"`
Config []string `desc:"Configs to expose to the service (format: name[/key]:target)"`
Concurrency int `desc:"The maximum concurrent request a container can handle (autoscaling)" default:"10"`
Cpus string `desc:"Number of CPUs"`
DNS []string `desc:"Set custom DNS servers"`
DNSOption []string `desc:"Set DNS options (format: key:value or key)"`
DNSSearch []string `desc:"Set custom DNS search domains"`
E_Env []string `desc:"Set environment variables"`
EnvFile []string `desc:"Read in a file of environment variables"`
GlobalPermission []string `desc:"Permissions to grant to container's service account for all namespaces"`
Group string `desc:"The GID to run the entrypoint of the container process"`
HealthCmd string `desc:"Command to run to check health"`
HealthFailureThreshold int `desc:"Consecutive failures needed to report unhealthy"`
HealthHeader map[string]string `desc:"HTTP Headers to send in GET request for healthcheck"`
HealthInitialDelay string `desc:"Start period for the container to initialize before starting healthchecks (ms|s|m|h)" default:"0s"`
HealthInterval string `desc:"Time between running the check (ms|s|m|h)" default:"0s"`
HealthSuccessThreshold int `desc:"Consecutive successes needed to report healthy"`
HealthTimeout string `desc:"Maximum time to allow one check to run (ms|s|m|h)" default:"0s"`
HealthURL string `desc:"URL to hit to check health (example: http://:8080/ping)"`
HostDNS bool `desc:"Use the host level DNS and not the cluster level DNS"`
Hostname string `desc:"Container host name"`
ImagePullPolicy string `desc:"Behavior determining when to pull the image (never|always|not-present)" default:"not-present"`
ImagePullSecrets []string `desc:"Specify image pull secrets"`
I_Interactive bool `desc:"Keep STDIN open even if not attached"`
LabelFile []string `desc:"Read in a line delimited file of labels"`
L_Label map[string]string `desc:"Set meta data on a container"`
M_Memory string `desc:"Memory reservation (format: <number>[<unit>], where unit = b, k, m or g)"`
N_Name string `desc:"Assign a name to the container. Use format [namespace:]name[@version]"`
Net string `desc:"Set network mode (host)"`
NoMesh bool `desc:"Disable service mesh"`
Permission []string `desc:"Permissions to grant to container's service account in current namespace"`
P_Ports []string `desc:"Publish a container's port(s) (format: svcport:containerport/protocol)"`
Privileged bool `desc:"Run container with privilege"`
ReadOnly bool `desc:"Mount the container's root filesystem as read only"`
RolloutDuration string `` /* 161-byte string literal not displayed */
RequestTimeoutSeconds int `desc:"Set request timeout in seconds"`
Scale string `desc:"The number of replicas to run or a range for autoscaling (example 1-10)"`
Secret []string `desc:"Secrets to inject to the service (format: name[/key]:target)"`
StageOnly bool `desc:"Only stage service when generating new services. Can only be used when template is true"`
Template bool `desc:"If true new version is created per git commit. If false update in-place"`
T_Tty bool `desc:"Allocate a pseudo-TTY"`
U_User string `desc:"UID[:GID] Sets the UID used and optionally GID for entrypoint process (format: <uid>[:<gid>])"`
V_Volume []string `desc:"Specify volumes for for services"`
Weight int `desc:"Specify the weight for the services"`
W_Workdir string `desc:"Working directory inside the container"`
}
func (*Create) Run ¶
func (c *Create) Run(ctx *clicontext.CLIContext) error
func (*Create) RunCallback ¶
func (c *Create) RunCallback(ctx *clicontext.CLIContext, cb func(service *riov1.Service) *riov1.Service) (*riov1.Service, error)
func (*Create) ToService ¶
func (c *Create) ToService(ctx *clicontext.CLIContext, args []string) (*riov1.Service, error)
Click to show internal directories.
Click to hide internal directories.