Skip to content
Draft
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
46 changes: 46 additions & 0 deletions .github/workflows/verify-helm-chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Verify Helm Chart

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
verify-helm-chart:
runs-on: ubuntu-latest
steps:
- name: Clone the code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Install kubebuilder
run: |
curl -L -o kubebuilder "https://go.kubebuilder.io/dl/latest/$(go env GOOS)/$(go env GOARCH)"
chmod +x kubebuilder
sudo mv kubebuilder /usr/local/bin/

- name: Regenerate manifests and Helm chart
run: |
IMG_TAG=$(grep 'newTag:' config/manager/kustomization.yaml | awk '{print $2}')
go mod tidy
make build-installer IMG="octopusdeploy/octopus-permissions-controller:${IMG_TAG}"
kubebuilder edit --plugins=helm/v2-alpha

- name: Check for uncommitted changes
run: |
if git diff --exit-code; then
echo "All generated files are up to date."
else
cat <<'EOF'
Generated files are out of date.

Please run the following commands locally and commit the changes:

make build-installer
kubebuilder edit --plugins=helm/v2-alpha
EOF
exit 1
fi
3 changes: 3 additions & 0 deletions api/v1beta1/workloadserviceaccount_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ type WorkloadServiceAccountScope struct {
Projects []string `json:"projects,omitempty"`
// +optional
// +kubebuilder:validation:items:Pattern="^[\\p{Ll}\\p{N}]+(?:-[\\p{L}\\p{N}]+)*$"
NewProperty []string `json:"newProperty,omitempty"`
// +optional
// +kubebuilder:validation:items:Pattern="^[\\p{Ll}\\p{N}]+(?:-[\\p{L}\\p{N}]+)*$"
ProjectGroups []string `json:"projectGroups,omitempty"`
// +optional
// +kubebuilder:validation:items:Pattern="^[\\p{Ll}\\p{N}]+(?:-[\\p{L}\\p{N}]+)*$"
Expand Down
5 changes: 5 additions & 0 deletions api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ spec:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
newProperty:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
projectGroups:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ spec:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
newProperty:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
projectGroups:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ spec:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
newProperty:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
projectGroups:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ spec:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
newProperty:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
projectGroups:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
Expand Down
10 changes: 10 additions & 0 deletions dist/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ spec:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
newProperty:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
projectGroups:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
Expand Down Expand Up @@ -402,6 +407,11 @@ spec:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
newProperty:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
type: string
type: array
projectGroups:
items:
pattern: ^[\p{Ll}\p{N}]+(?:-[\p{L}\p{N}]+)*$
Expand Down
Loading