Skip to content

Commit

Permalink
Handle FSS environment by returning early in netpol check
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjornstad committed Nov 25, 2024
1 parent e49f4e9 commit b636bc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/status/check_netpol.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (
type checkNetpol struct{}

func (checkNetpol) Run(ctx context.Context, w workload.Workload) ([]WorkloadStatusError, WorkloadState) {
if strings.Contains(w.GetEnvironmentName(), "-fss") {
return nil, WorkloadStateNais
}

policy := netpol.ListForWorkload(ctx, w.GetTeamSlug(), w.GetEnvironmentName(), w.GetName(), w.GetAccessPolicy())

ret := []WorkloadStatusError{}
Expand Down

0 comments on commit b636bc6

Please sign in to comment.