Skip to content

Commit

Permalink
Merge pull request #51 from cybozu-go/refine-document
Browse files Browse the repository at this point in the history
Refine document for VirtualDC
  • Loading branch information
yokaze authored Oct 11, 2023
2 parents e2523bd + 5507742 commit 1fc225c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions api/v1beta1/virtualdc_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ import (

// VirtualDCSpec defines the desired state of VirtualDC
type VirtualDCSpec struct {
// Neco branch is a target branch name for dctest
// Neco branch to use for dctest.
// If this field is empty, controller runs dctest with "main" branch
//+kubebuiler:validation:Optional
NecoBranch string `json:"necoBranch,omitempty"`

// Neco apps branch is a target branch name for dctest
// Neco-apps branch to use for dctest.
// If this field is empty, controller runs dctest with "main" branch
//+kubebuiler:validation:Optional
NecoAppsBranch string `json:"necoAppsBranch,omitempty"`

// Skip bootstrap of neco apps if this is true
// Skip bootstrapping neco-apps if true
//+kubebuilder:validation:Optional
SkipNecoApps bool `json:"skipNecoApps,omitempty"`

// Command is run after creating dctest pods
// Path to a user-defined script and its arguments to run after bootstrapping dctest
//+kubebuiler:validation:Optional
Command []string `json:"command,omitempty"`

Expand Down
15 changes: 7 additions & 8 deletions config/crd/bases/nyamber.cybozu.io_autovirtualdcs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,18 @@ spec:
description: VirtualDCSpec defines the desired state of VirtualDC
properties:
command:
description: Command is run after creating dctest pods
description: Path to a user-defined script and its arguments
to run after bootstrapping dctest
items:
type: string
type: array
necoAppsBranch:
description: Neco apps branch is a target branch name for
dctest If this field is empty, controller runs dctest with
"main" branch
description: Neco-apps branch to use for dctest. If this field
is empty, controller runs dctest with "main" branch
type: string
necoBranch:
description: Neco branch is a target branch name for dctest
If this field is empty, controller runs dctest with "main"
branch
description: Neco branch to use for dctest. If this field
is empty, controller runs dctest with "main" branch
type: string
resources:
description: ResourceRequirements describes the compute resource
Expand Down Expand Up @@ -130,7 +129,7 @@ spec:
type: object
type: object
skipNecoApps:
description: Skip bootstrap of neco apps if this is true
description: Skip bootstrapping neco-apps if true
type: boolean
type: object
status:
Expand Down
13 changes: 7 additions & 6 deletions config/crd/bases/nyamber.cybozu.io_virtualdcs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,18 @@ spec:
description: VirtualDCSpec defines the desired state of VirtualDC
properties:
command:
description: Command is run after creating dctest pods
description: Path to a user-defined script and its arguments to run
after bootstrapping dctest
items:
type: string
type: array
necoAppsBranch:
description: Neco apps branch is a target branch name for dctest If
this field is empty, controller runs dctest with "main" branch
description: Neco-apps branch to use for dctest. If this field is
empty, controller runs dctest with "main" branch
type: string
necoBranch:
description: Neco branch is a target branch name for dctest If this
field is empty, controller runs dctest with "main" branch
description: Neco branch to use for dctest. If this field is empty,
controller runs dctest with "main" branch
type: string
resources:
description: ResourceRequirements describes the compute resource requirements.
Expand Down Expand Up @@ -107,7 +108,7 @@ spec:
type: object
type: object
skipNecoApps:
description: Skip bootstrap of neco apps if this is true
description: Skip bootstrapping neco-apps if true
type: boolean
type: object
status:
Expand Down
8 changes: 4 additions & 4 deletions docs/crd_virtualdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ VirtualDCSpec defines the desired state of VirtualDC

| Field | Description | Scheme | Required |
| ----- | ----------- | ------ | -------- |
| necoBranch | Neco branch is a target branch name for dctest If this field is empty, controller runs dctest with \"main\" branch | string | false |
| necoAppsBranch | Neco apps branch is a target branch name for dctest If this field is empty, controller runs dctest with \"main\" branch | string | false |
| skipNecoApps | Skip bootstrap of neco apps if this is true | bool | false |
| command | Command is run after creating dctest pods | []string | false |
| necoBranch | Neco branch to use for dctest. If this field is empty, controller runs dctest with \"main\" branch | string | false |
| necoAppsBranch | Neco-apps branch to use for dctest. If this field is empty, controller runs dctest with \"main\" branch | string | false |
| skipNecoApps | Skip bootstrapping neco-apps if true | bool | false |
| command | Path to a user-defined script and its arguments to run after bootstrapping dctest | []string | false |
| resources | | corev1.ResourceRequirements | false |

[Back to Custom Resources](#custom-resources)
Expand Down

0 comments on commit 1fc225c

Please sign in to comment.