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

fixed typo in next-gen-route docs #2968

Open
wants to merge 78 commits into
base: 2.x-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
eb330e0
Set up CI with Azure Pipelines
nandakishorepeddi Nov 7, 2023
0c3921b
Initial code changes for CIS 3.x for BIG-IP Next (#3138)
arzzon Nov 8, 2023
8347e4d
Add deployment Parameters (#3143)
nandakishorepeddi Nov 13, 2023
aad08ea
Support for CIS DeployConfig CR (#3156)
vklohiya Nov 17, 2023
93660f7
add manifests for cis 3.0 (#3158)
vidyasagar-m Nov 20, 2023
1a48a44
Add token manager (#3157)
arzzon Nov 20, 2023
7478ed3
Fixing merge issues
vklohiya Nov 21, 2023
a368a30
Merge pull request #3164 from vklohiya/cis-3-new
vklohiya Nov 21, 2023
cccca99
init controller and setup informers (#3151)
charanm08 Nov 21, 2023
7f3971a
Refactoring the code and removing unwanted packages (#3165)
vklohiya Nov 21, 2023
f2a984b
Add trusted cert support for token manager (#3166)
arzzon Nov 22, 2023
766e69f
Update Readme (#3167)
arzzon Nov 22, 2023
4033569
Removed unsupported parameters (#3170)
vklohiya Nov 24, 2023
94013a8
Fixing the CIS installation issues (#3171)
vklohiya Nov 24, 2023
8d6fa60
upgrade k8s client to 0.28 (#3172)
charanm08 Nov 24, 2023
e55dade
Adding informer manager for handling CIS scope dynamically (#3169)
vklohiya Nov 28, 2023
9bb06e4
Implement Reuqesthandler (#3174)
lavanya-f5 Nov 29, 2023
9feb610
removing global and local nomenclature for extended configmap (#3175)
vklohiya Dec 1, 2023
c9fc683
default partition support for bigip (#3180)
lavanya-f5 Dec 5, 2023
19271f2
Updating log messages for user friendliness (#3181)
vidyasagar-m Dec 5, 2023
881fd77
Support for prometheus metrics (#3179)
vklohiya Dec 5, 2023
e21a281
agent code segregation (#3177)
charanm08 Dec 7, 2023
462b9a9
resource handler changes (#3185)
lavanya-f5 Dec 11, 2023
432cece
Add check, Update clusterrole(rbac) and modified parameter name prope…
nandakishorepeddi Dec 12, 2023
3732be2
new agent handle per bigip (#3188)
charanm08 Dec 13, 2023
a5aa6c7
Fix cis crash and minor issues (#3189)
arzzon Dec 13, 2023
4a5fc48
Update TS status on successful posting (#3186)
arzzon Dec 15, 2023
eebfe1d
RBAC update and fix CIS 2.x config (#3191)
nandakishorepeddi Dec 15, 2023
52f856b
update the logs for post manager and request handler (#3182)
vidyasagar-m Dec 15, 2023
f1d4ce6
add multicluster userguides (#3200)
lavanya-f5 Dec 20, 2023
9009f33
Add required argument check (#3202)
nandakishorepeddi Dec 21, 2023
6cfd6c3
stop retry for token with invalid credentials (#3201)
charanm08 Dec 21, 2023
918138c
Stop retry fetching Token (#3204)
nandakishorepeddi Dec 22, 2023
026946a
customise console logger with micrsoseconds in the timestamp (#3206)
vidyasagar-m Dec 26, 2023
deab611
remove unsupported as3 schema (#3216)
charanm08 Jan 2, 2024
663237a
Optimized logic for posting the configuration on central manager (#3203)
vklohiya Jan 3, 2024
f031623
Fix pool member empty issue (#3218)
arzzon Jan 9, 2024
d1ba8c5
Fix as3 declaration for BigIP next (#3213)
arzzon Jan 9, 2024
e037a0e
Fix crash with master build (#3227)
lavanya-f5 Jan 10, 2024
618a78a
streamline CNI logic (#3226)
charanm08 Jan 12, 2024
26756bf
Add CIS 3.x Deployment Parameters (#3244)
nandakishorepeddi Jan 24, 2024
a31bcf5
Improve Extended Service validation (#3248)
arzzon Jan 24, 2024
f089352
Fix unknown field warning log (#3252)
arzzon Jan 30, 2024
d5dad5d
Support for static routes via central manager (#3245)
vklohiya Jan 31, 2024
34733b7
Add static routing mode to network config (#3274)
lavanya-f5 Feb 12, 2024
cba3dcf
fix duplicate l3 events (#3281)
charanm08 Feb 14, 2024
a9a58de
Improve unit test coverage (#3282)
vklohiya Feb 14, 2024
a31d544
ut coverage (#3285)
lavanya-f5 Feb 14, 2024
39d4ef7
Fix Improve log when admitting route status (#3289)
vklohiya Feb 16, 2024
328c6d3
Fix Improve log for certificate host name validation (#3290)
vklohiya Feb 16, 2024
66a2469
Improved log for tls handling in routes (#3296) (#3297)
vklohiya Feb 20, 2024
7f99ba1
Fix hostname check for the certificates using canonical name (#3291) …
vklohiya Feb 21, 2024
66e6b35
Restrict CIS to sync static routes created by itself (#3283)
arzzon Feb 21, 2024
d1e2d40
pool member type auto support (#3302)
charanm08 Feb 22, 2024
60ca50f
Add support for multi-cluster for transport server CR (#3298)
vklohiya Feb 26, 2024
06e5d74
Updating the declare api URI for CM (#3307)
vklohiya Mar 7, 2024
8ed7a09
Fixes for declare api (#3325)
vklohiya Mar 11, 2024
7e15a68
Added support for per application deployment (#3339)
vklohiya Mar 15, 2024
eaf061e
service type lb support (#3323)
charanm08 Mar 19, 2024
721bc25
Refactored the IPAM code and moved to ipmanager package (#3347)
vklohiya Mar 26, 2024
f16692d
Fix for traffic not working in cluster mode (#3359)
vklohiya Mar 29, 2024
2e5bd94
Add support for ingressLink (#3350)
arzzon Apr 2, 2024
ec5e3b9
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#3198)
dependabot[bot] Apr 4, 2024
6ec667a
Bump google.golang.org/protobuf from 1.30.0 to 1.33.0 (#3338)
dependabot[bot] Apr 4, 2024
5b553b9
support for resource status update (#3356)
charanm08 Apr 5, 2024
48ce543
support for il status update in response handler (#3367)
charanm08 Apr 8, 2024
9f78233
Bump golang.org/x/net from 0.17.0 to 0.23.0 (#3382)
dependabot[bot] Apr 23, 2024
2ee42be
Documentation and code refactoring (#3388)
vklohiya Apr 25, 2024
bba6ec0
Fix CIS crashes due to interface conversion panic (#3368)
arzzon Apr 25, 2024
edfc480
Fix AS3 response parsing for new response format (#3390)
arzzon Apr 25, 2024
a2fa0c7
Support for Calico CNI with static route (#3392)
vklohiya Apr 30, 2024
4088633
Add support for policy CR with serviceTypeLB (#3332)
arzzon May 2, 2024
491c695
Documentation improvements (#3391)
vklohiya May 7, 2024
fea7547
Fix logging and CRD (#3411)
arzzon May 7, 2024
c8ff031
Enhancements for beta release (#3412)
arzzon May 7, 2024
482f1af
Fix for IPAM CR cleanup issue (#3409)
arzzon May 8, 2024
ceac1f6
Fix to handle invalid IPAM label and hostGroup combinations (#3408)
arzzon May 8, 2024
67c5bc4
Support for controller status in deploy config CR (#3413)
vklohiya May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ pre-build:
prod-build: pre-build
@echo "Building with running tests..."

docker build --build-arg RUN_TESTS=1 --build-arg BUILD_VERSION=$(BUILD_VERSION) --build-arg BUILD_INFO=$(BUILD_INFO) -t k8s-bigip-ctlr:latest -f build-tools/Dockerfile.$(BASE_OS) .
docker build --platform linux/amd64 --build-arg RUN_TESTS=1 --build-arg BUILD_VERSION=$(BUILD_VERSION) --build-arg BUILD_INFO=$(BUILD_INFO) -t k8s-bigip-ctlr:latest -f build-tools/Dockerfile.$(BASE_OS) .

prod-quick: prod-build-quick

prod-build-quick: pre-build
@echo "Quick build without running tests..."
docker build --build-arg RUN_TESTS=0 --build-arg BUILD_VERSION=$(BUILD_VERSION) --build-arg BUILD_INFO=$(BUILD_INFO) -t k8s-bigip-ctlr:latest -f build-tools/Dockerfile.$(BASE_OS) .
docker build --platform linux/amd64 --build-arg RUN_TESTS=0 --build-arg BUILD_VERSION=$(BUILD_VERSION) --build-arg BUILD_INFO=$(BUILD_INFO) -t k8s-bigip-ctlr:latest -f build-tools/Dockerfile.$(BASE_OS) .

dev-license: pre-build
@echo "Running with tests and licenses generated will be in all_attributions.txt..."
Expand All @@ -93,7 +93,7 @@ dev-license: pre-build

debug: pre-build
@echo "Building with debug support..."
docker build --build-arg RUN_TESTS=0 --build-arg BUILD_VERSION=$(BUILD_VERSION) --build-arg BUILD_INFO=$(BUILD_INFO) -t k8s-bigip-ctlr-dbg:latest -f build-tools/Dockerfile.debug .
docker build --platform linux/amd64 --build-arg RUN_TESTS=0 --build-arg BUILD_VERSION=$(BUILD_VERSION) --build-arg BUILD_INFO=$(BUILD_INFO) -t k8s-bigip-ctlr-dbg:latest -f build-tools/Dockerfile.debug .


fmt:
Expand All @@ -105,7 +105,7 @@ vet:
$(CURDIR)/build-tools/vet.sh

devel-image:
docker build --build-arg RUN_TESTS=0 --build-arg BUILD_VERSION=$(BUILD_VERSION) --build-arg BUILD_INFO=$(BUILD_INFO) -t k8s-bigip-ctlr-devel:latest -f build-tools/Dockerfile.$(BASE_OS) .
docker build --platform linux/amd64 --build-arg RUN_TESTS=0 --build-arg BUILD_VERSION=$(BUILD_VERSION) --build-arg BUILD_INFO=$(BUILD_INFO) -t k8s-bigip-ctlr-devel:latest -f build-tools/Dockerfile.$(BASE_OS) .

# Enable certain funtionalities only on a developer build
dev-patch:
Expand Down Expand Up @@ -151,5 +151,5 @@ else
endif

crd-code-gen:
docker run --name crdcodegen -v $(PWD):/go/src/github.com/F5Networks/k8s-bigip-ctlr/v2 quay.io/f5networks/ciscrdcodegen:latest
docker run --platform linux/amd64 --name crdcodegen -v $(PWD):/go/src/github.com/F5Networks/k8s-bigip-ctlr/v3 quay.io/f5networks/ciscrdcodegen:v1
docker rm crdcodegen
140 changes: 5 additions & 135 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ variables:
operatorImageName: 'f5networks/f5-cis-operator-devel'
operatorBundleImageName: 'f5networks/f5-cis-operator-bundle-devel'
operatorIndexImage: 'f5networks/f5-cis-operator-index-devel'
goVersion: 1.21.4

stages:
- stage: PreCheck
jobs:
- job: Preverification
steps:
- task: GoTool@0
inputs:
version: $(goVersion)
displayName: Install Go 1.21.4
- task: CmdLine@2
displayName: Check Go format and Suspicious constructs
inputs:
Expand Down Expand Up @@ -140,138 +145,3 @@ stages:
mergeTestResults: true
failTaskOnFailedTests: false
testRunTitle: 'Trivy - Vulnerabilities Summary'
- stage: Charts
dependsOn: PreCheck
jobs:
- job: BuildCharts
steps:
- script: |
git diff HEAD HEAD~ --name-only | grep "helm-charts/\|docs/config_examples/customResourceDefinitions/customresourcedefinitions.yml"
if [ $? == 0 ] ; then echo "##vso[task.setvariable variable=chartsUpdated]True"; fi
git diff HEAD HEAD~ --name-only | grep "helm-charts/\|docs/config_examples/rbac/clusterrole.yaml"
if [ $? == 0 ] ; then echo "##vso[task.setvariable variable=chartsUpdated]True"; fi
displayName: Check Helm changes
- script: echo '##vso[task.setvariable variable=chartPath]stable'
displayName: "Set the helm chart release directory as stable if the Build.SourceBranch starts with 'refs/tags/' "
condition: startsWith(variables['build.sourceBranch'], 'refs/tags/')
- script: |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh --version $helmVersion
displayName: Install Helm
failOnStderr: true
condition: and(succeeded(), or(startsWith(variables['build.sourceBranch'], 'refs/tags/'), eq(variables['chartsUpdated'], 'True')) )
- task: UsePythonVersion@0
displayName: Install Python
inputs:
versionSpec: '3.8'
addToPath: true
architecture: 'x64'
condition: and(succeeded(), or(startsWith(variables['build.sourceBranch'], 'refs/tags/'), eq(variables['chartsUpdated'], 'True')) )
- script: |
mkdir -p ./helm-charts/f5-bigip-ctlr/crds
cp ./docs/config_examples/customResourceDefinitions/customresourcedefinitions.yml ./helm-charts/f5-bigip-ctlr/crds/f5-bigip-ctlr-customresourcedefinitions.yml
sed -i '/metadata:/r ./helm-charts/labels.txt' ./helm-charts/f5-bigip-ctlr/crds/f5-bigip-ctlr-customresourcedefinitions.yml
pip install --disable-pip-version-check -r ./build-tools/py-requirements.txt
python ./build-tools/helm-clusterrole-gen.py
helm lint --strict ./helm-charts/f5-bigip-ctlr --set 'args.bigip_url=https://example.com'
helm package ./helm-charts/f5-bigip-ctlr --destination .deploy/

displayName: Package Helm Chart
failOnStderr: true
condition: and(succeeded(), or(startsWith(variables['build.sourceBranch'], 'refs/tags/'), eq(variables['chartsUpdated'], 'True')) )
- script: |
set -ex
git clone --single-branch --branch gh-pages https://$(PAT)@github.com/$(chartOrganization)/$(chartRepoName).git /tmp/$(chartRepoName)
cp -rf .deploy/*.tgz /tmp/$(chartRepoName)/$(chartPath)/
pushd /tmp/$(chartRepoName)
git config user.email "[email protected]"
git config user.name "cisbotctlr"
helm repo index --url https://$(chartOrganization).github.io/$(chartRepoName)/$(chartPath) $(chartPath)
git add --all
git commit -m 'Updating charts for CIS Release v$(cat next-version.txt) and Build Info azure-$(Build.BuildId)-$(Build.SourceVersion) in $(chartPath)'
git push origin gh-pages
popd
displayName: Upload charts
condition: and(succeeded(), or(startsWith(variables['build.sourceBranch'], 'refs/tags/'), eq(variables['chartsUpdated'], 'True')) )
- stage: Operator
dependsOn: PreCheck
jobs:
- job: BuildOperator
steps:
- script: |
git diff HEAD HEAD~ --name-only | grep "helm-charts/\|operator/"
if [ $? == 0 ] ; then echo "##vso[task.setvariable variable=operatorUpdated]True"; fi
displayName: Check Operator changes
- task: Docker@2
displayName: Login to quay registry
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))
inputs:
command: login
containerRegistry: $(quayConnection)
- task: Docker@2
displayName: Login to redhat registry
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))
inputs:
command: login
containerRegistry: $(redhatConnection)
- task: UsePythonVersion@0
displayName: Install Python
inputs:
versionSpec: '3.8'
addToPath: true
architecture: 'x64'
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))
- script: |
pip install --disable-pip-version-check -r ./build-tools/py-requirements.txt
python ./build-tools/helm-clusterrole-gen.py
displayName: 'Generate the ClusterRole file'
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))
- task: Docker@2
displayName: Build Operator Image for test
inputs:
command: build
containerRegistry: $(quayConnection)
repository: $(operatorImageName)
Dockerfile: f5-bigip-ctlr-operator/Dockerfile
buildContext: .
tags: $(Build.SourceVersion)
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))
- task: Docker@2
displayName: Push image to Quay for testing
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))
inputs:
command: push
containerRegistry: $(quayConnection)
repository: $(operatorImageName)
tags: $(Build.SourceVersion)
- script: |
sed -i 's|registry.connect.redhat.com/f5networks/k8s-bigip-ctlr-operator:latest|quay.io/$(operatorImageName):$(Build.SourceVersion)|g' ./f5-bigip-ctlr-operator/bundle/manifests/f5-bigip-ctlr-operator.clusterserviceversion.yaml
displayName: 'Prepare the charts repo for bunding with operator'
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))
- task: Docker@2
displayName: Build Operator Bundle for test
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))
inputs:
command: build
containerRegistry: $(quayConnection)
repository: $(operatorBundleImageName)
Dockerfile: f5-bigip-ctlr-operator/bundle.Dockerfile
buildContext: f5-bigip-ctlr-operator
tags: $(Build.SourceVersion)
- task: Docker@2
displayName: Push Operator Bundle image to Quay for testing
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))
inputs:
command: push
containerRegistry: $(quayConnection)
repository: $(operatorBundleImageName)
tags: $(Build.SourceVersion)
- script: |
wget http://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest-4.9/opm-linux.tar.gz
tar xvf opm-linux.tar.gz
./opm index add --bundles quay.io/$(operatorBundleImageName):$(Build.SourceVersion) --tag quay.io/$(operatorIndexImage):$(Build.SourceVersion)
podman push quay.io/$(operatorIndexImage):$(Build.SourceVersion)
displayName: Updating the operator index image
condition: and(succeeded(), eq(variables['operatorUpdated'], 'True'))

4 changes: 3 additions & 1 deletion build-tools/Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 as builder
FROM golang:1.21 as builder

ARG REPOPATH=$GOPATH/src/github.com/F5Networks/k8s-bigip-ctlr
ARG RUN_TESTS
Expand All @@ -8,10 +8,12 @@ ARG BUILD_INFO

WORKDIR $REPOPATH
ENV GO111MODULE on
ENV CGO_ENABLED=0
COPY . .

RUN $REPOPATH/build-tools/rel-build.sh


FROM python:3.10-slim-buster

ENV APPPATH /app
Expand Down
5 changes: 3 additions & 2 deletions build-tools/Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 as builder
FROM golang:1.21 as builder

ARG REPOPATH=$GOPATH/src/github.com/F5Networks/k8s-bigip-ctlr
ARG RUN_TESTS
Expand All @@ -7,11 +7,12 @@ ARG BUILD_VERSION
ARG BUILD_INFO

WORKDIR $REPOPATH
ENV CGO_ENABLED=0
ENV GO111MODULE on
COPY . .

RUN $REPOPATH/build-tools/rel-build.sh && \
go install github.com/go-delve/delve/cmd/dlv@v1.20.1
go install github.com/go-delve/delve/cmd/dlv@v1.21.2

FROM python:3.10-slim-buster

Expand Down
2 changes: 1 addition & 1 deletion build-tools/Dockerfile.ubi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 as builder
FROM golang:1.21 as builder

ARG REPOPATH=$GOPATH/src/github.com/F5Networks/k8s-bigip-ctlr
ARG RUN_TESTS
Expand Down
12 changes: 6 additions & 6 deletions build-tools/crdcodegen.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ FROM golang:1.17

ENV GO111MODULE on

ENV PKGPATH /go/src/github.com/F5Networks/k8s-bigip-ctlr/v2
ENV PKGPATH /go/src/github.com/F5Networks/k8s-bigip-ctlr/v3

RUN mkdir -p ${GOPATH}/src/github.com/F5Networks \
&& mkdir -p ${GOPATH}/src/k8s.io \
&& go get -d k8s.io/code-generator@v0.20.4 \
&& go get -d k8s.io/apimachinery \
&& go get -d k8s.io/apiextensions-apiserver \
&& mkdir -p ${GOPATH}/src/k8s.io/ \
&& go get -d k8s.io/code-generator@v0.21.2 \
&& go get -d k8s.io/apimachinery@v0.21.2 \
&& go get -d k8s.io/apiextensions-apiserver@v0.21.2 \
&& cp -r ${GOPATH}/pkg/mod/k8s.io/api@* ${GOPATH}/src/k8s.io/api \
&& cp -r ${GOPATH}/pkg/mod/k8s.io/apiextensions-apiserver@* ${GOPATH}/src/k8s.io/apiextensions-apiserver \
&& cp -r ${GOPATH}/pkg/mod/k8s.io/apimachinery@* ${GOPATH}/src/k8s.io/apimachinery \
Expand All @@ -22,4 +22,4 @@ RUN mkdir -p ${GOPATH}/src/github.com/F5Networks \

WORKDIR ${PKGPATH}

ENTRYPOINT $GOPATH/src/k8s.io/code-generator/generate-groups-extra.sh allcustom "github.com/F5Networks/k8s-bigip-ctlr/v2/config/client" "github.com/F5Networks/k8s-bigip-ctlr/v2/config/apis" cis:v1
ENTRYPOINT $GOPATH/src/k8s.io/code-generator/generate-groups-extra.sh allcustom "github.com/F5Networks/k8s-bigip-ctlr/v3/config/client" "github.com/F5Networks/k8s-bigip-ctlr/v3/config/apis" cis:v1
5 changes: 3 additions & 2 deletions build-tools/version-tool
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ class VersionInfo(object):
self._ver_file = Version(data)

if self._ver_file.pre or self._ver_file.build:
raise Exception("{} contains more than major.minor.patch"
.format(version_file.name))
if self._ver_file.pre not in ["alpha","beta","rc"]:
raise Exception("{} contains more than major.minor.patch"
.format(version_file.name))
self._vers = {
'major': self._ver_file.major,
'minor': self._ver_file.minor,
Expand Down
Loading
Loading