Skip to content

Display error message with empty repo field #3392

@mmartin24

Description

@mmartin24

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Issue

While the UI prevents a user from creating a gitrepo with empty repo this can be achieved via CLI and no error will be displayed in the UI.

Observed behavior

The user is not prevented from creating the repo
No error is shown in UI

Image

Additional notes:

The same happens with Helmops

Expected Behavior

To display error
No response

Steps To Reproduce

  • Deploy Rancher with continuous delivery
  • Execute this via terminal with kubectl apply:
kind: GitRepo
apiVersion: fleet.cattle.io/v1alpha1
metadata:
  name: simple
  namespace: fleet-local
spec:
  repo:
  paths:
  - simple

Environment

- Architecture: amd64
- Fleet Version: 106.0.0+up0.12.0-alpha.14
- Cluster:
  - Provider: k3s
  - Options:
  - Kubernetes Version:  v1.30.3 +k3s1

Logs

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions