Skip to content

Commit c235562

Browse files
Remove-ingress-class-required (#231)
* removed ingress class flag from git-source create * bump * docs update * improve string
1 parent 382b964 commit c235562

File tree

6 files changed

+5
-15
lines changed

6 files changed

+5
-15
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.211
1+
VERSION=v0.0.212
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

cmd/commands/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ func askUserIfToProceedWithInsecure(ctx context.Context) error {
454454
}
455455

456456
log.G(ctx).Warnf("The ingress host does not have a valid certificate.")
457-
labelStr := fmt.Sprintf("%vDo you wish to continue the installation with insecure ingress host mode?%v", CYAN, COLOR_RESET)
457+
labelStr := fmt.Sprintf("%vDo you wish to continue with the installation in insecure mode with this ingress host?%v", CYAN, COLOR_RESET)
458458

459459
prompt := promptui.Select{
460460
Label: labelStr,

cmd/commands/git-source.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ func NewGitSourceCreateCommand() *cobra.Command {
116116
insCloneOpts *git.CloneOptions
117117
gsCloneOpts *git.CloneOptions
118118
createRepo bool
119-
ingressClass string
120119
)
121120

122121
cmd := &cobra.Command{
@@ -141,10 +140,6 @@ func NewGitSourceCreateCommand() *cobra.Command {
141140
log.G(ctx).Fatal("must enter a valid value to --git-src-repo. Example: https://github.com/owner/repo-name/path/to/workflow")
142141
}
143142

144-
if ingressClass == "" && !store.Get().BypassIngressClassCheck {
145-
log.G(ctx).Fatal("must enter a valid ingressClass name to --ingress-class")
146-
}
147-
148143
err := ensureRepo(cmd, args[0], insCloneOpts, true)
149144
if err != nil {
150145
return err
@@ -181,15 +176,11 @@ func NewGitSourceCreateCommand() *cobra.Command {
181176
GsName: args[1],
182177
RuntimeName: args[0],
183178
CreateDemoResources: false,
184-
IngressClass: ingressClass,
185179
})
186180
},
187181
}
188182

189183
cmd.Flags().BoolVar(&createRepo, "create-repo", false, "If true, will create the specified git-source repo in case it doesn't already exist")
190-
cmd.Flags().StringVar(&ingressClass, "ingress-class", "", "The ingress class name")
191-
cmd.Flags().BoolVar(&store.Get().BypassIngressClassCheck, "bypass-ingress-class-check", false, "Disables the ingress class check during git-source installation")
192-
util.Die(cmd.Flags().MarkHidden("bypass-ingress-class-check"))
193184

194185
insCloneOpts = apu.AddCloneFlags(cmd, &apu.CloneFlagsOptions{})
195186
gsCloneOpts = apu.AddCloneFlags(cmd, &apu.CloneFlagsOptions{

docs/commands/cli-v2_git-source_create.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ cli-v2 git-source create runtime_name git-source_name [flags]
2424
-t, --git-token string Your git provider api token [GIT_TOKEN]
2525
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
2626
-h, --help help for create
27-
--ingress-class string The ingress class name
2827
--repo string Repository URL [GIT_REPO]
2928
```
3029

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cf version
2323

2424
```bash
2525
# download and extract the binary
26-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.211/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.212/cf-linux-amd64.tar.gz | tar zx
2727

2828
# move the binary to your $PATH
2929
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -36,7 +36,7 @@ cf version
3636

3737
```bash
3838
# download and extract the binary
39-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.211/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.212/cf-darwin-amd64.tar.gz | tar zx
4040

4141
# move the binary to your $PATH
4242
mv ./cf-darwin-amd64 /usr/local/bin/cf

manifests/runtime.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: '{{ namespace }}'
66
spec:
77
defVersion: 1.0.0
8-
version: 0.0.211
8+
version: 0.0.212
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

0 commit comments

Comments
 (0)