Skip to content

Commit

Permalink
Bump version to v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SylwiaBrant committed Dec 8, 2021
1 parent e2f1945 commit 76078d5
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 77 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ HAS_SEMBUMP := $(shell which $(PROJECT_DIR)/bin/sembump)
sembump: # Download sembump locally if necessary
@echo "+ $@"
ifndef HAS_SEMBUMP
mkdir bin
mkdir -p $(PROJECT_DIR)/bin
wget -O $(PROJECT_DIR)/bin/sembump https://github.com/justintout/sembump/releases/download/v0.1.0/sembump-$(PLATFORM)-amd64
chmod +x $(PROJECT_DIR)/bin/sembump
endif
Expand All @@ -360,8 +360,9 @@ bump-version: sembump ## Bump the version in the version file. Set BUMP to [ pat
echo $(NEW_VERSION) > VERSION.txt
@echo "Updating version from $(VERSION) to $(NEW_VERSION) in README.md"
sed -i.bak 's/$(VERSION)/$(NEW_VERSION)/g' README.md
sed -i.bak 's/$(VERSION)/$(NEW_VERSION)/g' deploy/operator.yaml
sed -i.bak 's/$(VERSION)/$(NEW_VERSION)/g' config/manager/manager.yaml
sed -i.bak 's/$(VERSION)/$(NEW_VERSION)/g' deploy/$(ALL_IN_ONE_DEPLOY_FILE_PREFIX)-$(API_VERSION).yaml
rm */*/**.bak
rm */**.bak
rm *.bak
cp config/service_account.yaml deploy/$(ALL_IN_ONE_DEPLOY_FILE_PREFIX)-$(API_VERSION).yaml
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Jenkins Operator

[![Version](https://img.shields.io/badge/version-v0.6.0-brightgreen.svg)](https://github.com/jenkinsci/kubernetes-operator/releases/tag/v0.6.0)
[![Version](https://img.shields.io/badge/version-v0.7.0-brightgreen.svg)](https://github.com/jenkinsci/kubernetes-operator/releases/tag/v0.7.0)
[![Build status](https://github.com/jenkinsci/kubernetes-operator/actions/workflows/auto-tests.yaml/badge.svg)](https://github.com/jenkinsci/kubernetes-operator/actions/workflows/auto-tests.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/jenkinsci/kubernetes-operator "Go Report Card")](https://goreportcard.com/report/github.com/jenkinsci/kubernetes-operator)
[![Docker Pulls](https://img.shields.io/docker/pulls/virtuslab/jenkins-operator.svg)](https://hub.docker.com/r/virtuslab/jenkins-operator/tags)
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.6.0
v0.7.0
12 changes: 6 additions & 6 deletions api/v1alpha2/jenkins_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,19 @@ type JenkinsMaster struct {
// +optional
// Defaults to :
// - name: kubernetes
// version: "1.29.6"
// version: "1.30.11"
// - name: workflow-job
// version: "2.41"
// version: "2.42"
// - name: workflow-aggregator
// version: "2.6"
// - name: git
// version: "4.7.2"
// version: "4.10.0"
// - name: job-dsl
// version: "1.77"
// version: "1.78.1"
// - name: configuration-as-code
// version: "1.51"
// version: "1.55"
// - name: kubernetes-credentials-provider
// version: "0.18-1"
// version: "0.20"
BasePlugins []Plugin `json:"basePlugins,omitempty"`

// Plugins contains plugins required by user
Expand Down
10 changes: 5 additions & 5 deletions config/crd/bases/jenkins.io_jenkins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ spec:
type: object
basePlugins:
description: 'BasePlugins contains plugins required by operator
Defaults to : - name: kubernetes version: "1.29.6" - name: workflow-job
version: "2.41" - name: workflow-aggregator version: "2.6" -
name: git version: "4.7.2" - name: job-dsl version: "1.77" -
name: configuration-as-code version: "1.51" - name: kubernetes-credentials-provider
version: "0.18-1"'
Defaults to : - name: kubernetes version: "1.30.11" - name:
workflow-job version: "2.42" - name: workflow-aggregator version:
"2.6" - name: git version: "4.10.0" - name: job-dsl version:
"1.78.1" - name: configuration-as-code version: "1.55" - name:
kubernetes-credentials-provider version: "0.20"'
items:
description: Plugin defines Jenkins plugin.
properties:
Expand Down
3 changes: 1 addition & 2 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: jenkins-operator
namespace: default
labels:
control-plane: controller-manager
spec:
Expand All @@ -24,7 +23,7 @@ spec:
- /manager
args:
- --leader-elect
image: virtuslab/jenkins-operator:v0.5.0
image: virtuslab/jenkins-operator:v0.7.0
name: jenkins-operator
imagePullPolicy: IfNotPresent
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion config/samples/jenkins.io_v1alpha2_jenkins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
disableCSRFProtection: false
containers:
- name: jenkins-master
image: jenkins/jenkins:2.303.2-lts-alpine
image: jenkins/jenkins:2.319.1-lts-alpine
imagePullPolicy: Always
livenessProbe:
failureThreshold: 12
Expand Down
2 changes: 1 addition & 1 deletion deploy/all-in-one-v1alpha2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ spec:
- /manager
args:
- --leader-elect
image: virtuslab/jenkins-operator:v0.6.0
image: virtuslab/jenkins-operator:v0.7.0
name: jenkins-operator
imagePullPolicy: IfNotPresent
securityContext:
Expand Down
8 changes: 4 additions & 4 deletions pkg/plugins/base_plugins.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package plugins

const (
configurationAsCodePlugin = "configuration-as-code:1.54"
gitPlugin = "git:4.9.0"
jobDslPlugin = "job-dsl:1.77"
configurationAsCodePlugin = "configuration-as-code:1.55"
gitPlugin = "git:4.10.0"
jobDslPlugin = "job-dsl:1.78.1"
kubernetesCredentialsProviderPlugin = "kubernetes-credentials-provider:0.20"
kubernetesPlugin = "kubernetes:1.30.4"
kubernetesPlugin = "kubernetes:1.30.11"
workflowAggregatorPlugin = "workflow-aggregator:2.6"
workflowJobPlugin = "workflow-job:2.42"
)
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/jenkins_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ var _ = Describe("Jenkins controller configuration", func() {
})

AfterEach(func() {
ShowLogsIfTestHasFailed(CurrentGinkgoTestDescription().Failed, namespace.Name)
DestroyNamespace(namespace)
})

Expand Down Expand Up @@ -185,6 +186,7 @@ var _ = Describe("Jenkins controller plugins test", func() {
})

AfterEach(func() {
ShowLogsIfTestHasFailed(CurrentGinkgoTestDescription().Failed, namespace.Name)
DestroyNamespace(namespace)
})

Expand Down
1 change: 1 addition & 0 deletions test/e2e/jenkins_pod_restart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ var _ = Describe("Jenkins controller", func() {
})

AfterEach(func() {
ShowLogsIfTestHasFailed(CurrentGinkgoTestDescription().Failed, namespace.Name)
DestroyNamespace(namespace)
})

Expand Down
53 changes: 0 additions & 53 deletions test/e2e/seedjobs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,59 +28,6 @@ type seedJobConfig struct {
PrivateKey string `json:"privateKey,omitempty"`
}

/*
type seedJobsConfig struct {
SeedJobs []seedJobConfig `json:"seedJobs,omitempty"`
}
// FIXME
func TestSeedJobs(t *testing.T) {
t.Parallel()
if seedJobConfigurationFile == nil || len(*seedJobConfigurationFile) == 0 {
t.Skipf("Skipping test because flag '%+v' is not set", seedJobConfigurationFile)
}
seedJobsConfig := loadSeedJobsConfig(t)
namespace, ctx := setupTest(t)
defer showLogsAndCleanup(t, ctx)
jenkinsCRName := "e2e"
var seedJobs []v1alpha2.SeedJob
// base
for _, seedJobConfig := range seedJobsConfig.SeedJobs {
createKubernetesCredentialsProviderSecret(t, namespace, seedJobConfig)
seedJobs = append(seedJobs, seedJobConfig.SeedJob)
}
jenkins := createJenkinsCR(t, jenkinsCRName, namespace, &seedJobs, v1alpha2.GroovyScripts{}, v1alpha2.ConfigurationAsCode{}, "")
waitForJenkinsBaseConfigurationToComplete(t, jenkins)
verifyJenkinsMasterPodAttributes(t, jenkins)
jenkinsClient, cleanUpFunc := verifyJenkinsAPIConnection(t, jenkins, namespace)
defer cleanUpFunc()
verifyPlugins(t, jenkinsClient, jenkins)
// user
waitForJenkinsUserConfigurationToComplete(t, jenkins)
verifyJenkinsSeedJobs(t, jenkinsClient, seedJobsConfig.SeedJobs)
}
func loadSeedJobsConfig() seedJobsConfig {
//seedJobConfigurationFile = flag.String(seedJobConfigurationParameterName, "", "path to seed job config")
jsonFile, err := os.Open(*seedJobConfigurationFile)
Expect(err).NotTo(HaveOccurred())
defer func() { _ = jsonFile.Close() }()
byteValue, err := ioutil.ReadAll(jsonFile)
Expect(err).NotTo(HaveOccurred())
var result seedJobsConfig
err = json.Unmarshal(byteValue, &result)
Expect(err).NotTo(HaveOccurred())
Expect(result.SeedJobs).NotTo(BeEmpty())
return result
}
*/
func createKubernetesCredentialsProviderSecret(namespace string, config seedJobConfig) {
if config.JenkinsCredentialType == v1alpha2.NoJenkinsCredentialCredentialType {
return
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/test_utility.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/envtest"
)

const JenkinsTestImage = "jenkins/jenkins:2.303.2-lts"
const JenkinsTestImage = "jenkins/jenkins:2.319.1-lts"

var (
Cfg *rest.Config
Expand Down

0 comments on commit 76078d5

Please sign in to comment.