Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3] (part 1) Change runner/v3 to runner/v2. Update v3 flag to v2 #5780

Merged
merged 1 commit into from
May 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/skaffold/app/cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ var flagRegistry = []Flag{
DefinedOn: []string{"dev", "build", "run", "debug", "deploy"},
},
{
Name: "v3",
Usage: "Next skaffold config (v3). Use kpt to render/hydrate and deploy manifests.",
Name: "v2",
Usage: "Next skaffold config (v2). Use kpt to render/hydrate and deploy manifests.",
Value: &opts.Experimental,
DefValue: false,
FlagAddMethod: "BoolVar",
Expand Down
20 changes: 10 additions & 10 deletions docs/content/en/docs/references/cli/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Options:
--remote-cache-dir='': Specify the location of the git repositories cache (default $HOME/.skaffold/repos)
--status-check=true: Wait for deployed resources to stabilize
--tail=false: Stream logs from deployed objects
--v3=false: Next skaffold config (v3). Use kpt to render/hydrate and deploy manifests.
--v2=false: Next skaffold config (v2). Use kpt to render/hydrate and deploy manifests.
Usage:
skaffold apply [options]
Expand All @@ -153,7 +153,7 @@ Env vars:
* `SKAFFOLD_REMOTE_CACHE_DIR` (same as `--remote-cache-dir`)
* `SKAFFOLD_STATUS_CHECK` (same as `--status-check`)
* `SKAFFOLD_TAIL` (same as `--tail`)
* `SKAFFOLD_V3` (same as `--v3`)
* `SKAFFOLD_V2` (same as `--v2`)

### skaffold build

Expand Down Expand Up @@ -442,7 +442,7 @@ Options:
--tail=true: Stream logs from deployed objects
--toot=false: Emit a terminal beep after the deploy is complete
--trigger='notify': How is change detection triggered? (polling, notify, or manual)
--v3=false: Next skaffold config (v3). Use kpt to render/hydrate and deploy manifests.
--v2=false: Next skaffold config (v2). Use kpt to render/hydrate and deploy manifests.
--wait-for-deletions=true: Wait for pending deletions to complete before a deployment
--wait-for-deletions-delay=2s: Delay between two checks for pending deletions
--wait-for-deletions-max=1m0s: Max duration to wait for pending deletions
Expand Down Expand Up @@ -495,7 +495,7 @@ Env vars:
* `SKAFFOLD_TAIL` (same as `--tail`)
* `SKAFFOLD_TOOT` (same as `--toot`)
* `SKAFFOLD_TRIGGER` (same as `--trigger`)
* `SKAFFOLD_V3` (same as `--v3`)
* `SKAFFOLD_V2` (same as `--v2`)
* `SKAFFOLD_WAIT_FOR_DELETIONS` (same as `--wait-for-deletions`)
* `SKAFFOLD_WAIT_FOR_DELETIONS_DELAY` (same as `--wait-for-deletions-delay`)
* `SKAFFOLD_WAIT_FOR_DELETIONS_MAX` (same as `--wait-for-deletions-max`)
Expand Down Expand Up @@ -591,7 +591,7 @@ Options:
-t, --tag='': The optional custom tag to use for images which overrides the current Tagger configuration
--tail=false: Stream logs from deployed objects
--toot=false: Emit a terminal beep after the deploy is complete
--v3=false: Next skaffold config (v3). Use kpt to render/hydrate and deploy manifests.
--v2=false: Next skaffold config (v2). Use kpt to render/hydrate and deploy manifests.
--wait-for-deletions=true: Wait for pending deletions to complete before a deployment
--wait-for-deletions-delay=2s: Delay between two checks for pending deletions
--wait-for-deletions-max=1m0s: Max duration to wait for pending deletions
Expand Down Expand Up @@ -632,7 +632,7 @@ Env vars:
* `SKAFFOLD_TAG` (same as `--tag`)
* `SKAFFOLD_TAIL` (same as `--tail`)
* `SKAFFOLD_TOOT` (same as `--toot`)
* `SKAFFOLD_V3` (same as `--v3`)
* `SKAFFOLD_V2` (same as `--v2`)
* `SKAFFOLD_WAIT_FOR_DELETIONS` (same as `--wait-for-deletions`)
* `SKAFFOLD_WAIT_FOR_DELETIONS_DELAY` (same as `--wait-for-deletions-delay`)
* `SKAFFOLD_WAIT_FOR_DELETIONS_MAX` (same as `--wait-for-deletions-max`)
Expand Down Expand Up @@ -682,7 +682,7 @@ Options:
--tail=true: Stream logs from deployed objects
--toot=false: Emit a terminal beep after the deploy is complete
--trigger='notify': How is change detection triggered? (polling, notify, or manual)
--v3=false: Next skaffold config (v3). Use kpt to render/hydrate and deploy manifests.
--v2=false: Next skaffold config (v2). Use kpt to render/hydrate and deploy manifests.
--wait-for-deletions=true: Wait for pending deletions to complete before a deployment
--wait-for-deletions-delay=2s: Delay between two checks for pending deletions
--wait-for-deletions-max=1m0s: Max duration to wait for pending deletions
Expand Down Expand Up @@ -735,7 +735,7 @@ Env vars:
* `SKAFFOLD_TAIL` (same as `--tail`)
* `SKAFFOLD_TOOT` (same as `--toot`)
* `SKAFFOLD_TRIGGER` (same as `--trigger`)
* `SKAFFOLD_V3` (same as `--v3`)
* `SKAFFOLD_V2` (same as `--v2`)
* `SKAFFOLD_WAIT_FOR_DELETIONS` (same as `--wait-for-deletions`)
* `SKAFFOLD_WAIT_FOR_DELETIONS_DELAY` (same as `--wait-for-deletions-delay`)
* `SKAFFOLD_WAIT_FOR_DELETIONS_MAX` (same as `--wait-for-deletions-max`)
Expand Down Expand Up @@ -978,7 +978,7 @@ Options:
-t, --tag='': The optional custom tag to use for images which overrides the current Tagger configuration
--tail=false: Stream logs from deployed objects
--toot=false: Emit a terminal beep after the deploy is complete
--v3=false: Next skaffold config (v3). Use kpt to render/hydrate and deploy manifests.
--v2=false: Next skaffold config (v2). Use kpt to render/hydrate and deploy manifests.
--wait-for-deletions=true: Wait for pending deletions to complete before a deployment
--wait-for-deletions-delay=2s: Delay between two checks for pending deletions
--wait-for-deletions-max=1m0s: Max duration to wait for pending deletions
Expand Down Expand Up @@ -1026,7 +1026,7 @@ Env vars:
* `SKAFFOLD_TAG` (same as `--tag`)
* `SKAFFOLD_TAIL` (same as `--tail`)
* `SKAFFOLD_TOOT` (same as `--toot`)
* `SKAFFOLD_V3` (same as `--v3`)
* `SKAFFOLD_V2` (same as `--v2`)
* `SKAFFOLD_WAIT_FOR_DELETIONS` (same as `--wait-for-deletions`)
* `SKAFFOLD_WAIT_FOR_DELETIONS_DELAY` (same as `--wait-for-deletions-delay`)
* `SKAFFOLD_WAIT_FOR_DELETIONS_MAX` (same as `--wait-for-deletions-max`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.
*/
package v3
package v2

import (
"context"
Expand All @@ -22,5 +22,5 @@ import (
)

func (r *SkaffoldRunner) Apply(ctx context.Context, out io.Writer) error {
return fmt.Errorf("not implemented error: SkaffoldRunner(v3).Apply")
return fmt.Errorf("not implemented error: SkaffoldRunner(v2).Apply")
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.
*/
package v3
package v2

import (
"context"
Expand All @@ -22,5 +22,5 @@ import (
)

func (r *SkaffoldRunner) Cleanup(ctx context.Context, out io.Writer) error {
return fmt.Errorf("not implemented error: SkaffoldRunner(v3).Cleanup")
return fmt.Errorf("not implemented error: SkaffoldRunner(v2).Cleanup")
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.
*/
package v3
package v2

import (
"context"
Expand All @@ -24,5 +24,5 @@ import (
)

func (r *SkaffoldRunner) Deploy(ctx context.Context, out io.Writer, artifacts []graph.Artifact) error {
return fmt.Errorf("not implemented error: SkaffoldRunner(v3).Deploy")
return fmt.Errorf("not implemented error: SkaffoldRunner(v2).Deploy")
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.
*/
package v3
package v2

import (
"context"
Expand All @@ -24,5 +24,5 @@ import (
)

func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*latest_v1.Artifact) error {
return fmt.Errorf("not implemented error: SkaffoldRunner(v3).Dev")
return fmt.Errorf("not implemented error: SkaffoldRunner(v2).Dev")
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.
*/
package v3
package v2

import (
"context"
Expand All @@ -24,5 +24,5 @@ import (
)

func (r *SkaffoldRunner) GeneratePipeline(ctx context.Context, out io.Writer, configs []*latest_v1.SkaffoldConfig, configPaths []string, fileOut string) error {
return fmt.Errorf("not implemented error: SkaffoldRunner(v3).GeneratePipeline")
return fmt.Errorf("not implemented error: SkaffoldRunner(v2).GeneratePipeline")
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.
*/
package v3
package v2

import (
"context"
Expand All @@ -24,5 +24,5 @@ import (
)

func (r *SkaffoldRunner) Render(ctx context.Context, out io.Writer, builds []graph.Artifact, offline bool, filepath string) error {
return fmt.Errorf("not implemented error: SkaffoldRunner(v3).Dev")
return fmt.Errorf("not implemented error: SkaffoldRunner(v2).Dev")
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.
*/
package v3
package v2

import (
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/runner"
Expand Down