Skip to content
Snippets Groups Projects
Commit b25a6924 authored by garciadeblas's avatar garciadeblas
Browse files

Update jenkins OKA and add testacme and testapp OKAs


Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent d87bd7d9
No related branches found
No related tags found
No related merge requests found
Pipeline #18274 passed with stages
in 2 minutes and 24 seconds
namespace: jenkins
# custom_env_vars:
# inline_values:
# configmap_values:
secret_values:
jenkinsUser: admin
jenkinsPassword: myJ3nk1n2P2ssw0rd
......@@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#######################################################################################
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
......
......@@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#######################################################################################
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
......@@ -25,6 +24,7 @@ spec:
chart:
spec:
chart: jenkins
version: '13.4.20'
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
......
......@@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#######################################################################################
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
......@@ -25,6 +24,7 @@ spec:
interval: 1h0m0s
path: ./apps/jenkins/manifests
prune: true
wait: true
sourceRef:
kind: GitRepository
name: sw-catalogs
......
......@@ -14,11 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#######################################################################################
---
apiVersion: v1
kind: Namespace
metadata:
creationTimestamp: null
name: jenkins
spec: {}
status: {}
namespace: testacme
custom_env_vars:
ECHO_MESSAGE: '"hello to Gerardo"'
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
config: ${appname}
run: ${appname}
name: ${appname}-http
namespace: ${target_ns}
spec:
ports:
- name: http5678tls
port: 5678
protocol: TCP
targetPort: 5678
selector:
run: ${appname}
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
config: ${appname}
name: ${appname}-deployment
namespace: ${target_ns}
spec:
replicas: 1
selector:
matchLabels:
run: ${appname}
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
mex-app: ${appname}-deployment
mexAppInstName: test
mexAppInstOrg: AcmeAppCo
mexDeployGen: kubernetes-basic
run: ${appname}
spec:
containers:
- image: docker.io/hashicorp/http-echo:1.0
imagePullPolicy: Always
name: ${appname}
ports:
- containerPort: 5678
protocol: TCP
resources: {}
args:
- "-text=\"${echo_message:=hello}\""
imagePullSecrets:
- name: docker.io
apiVersion: v1
kind: Namespace
metadata:
name: ${TARGET_NS}
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: ${APPNAME}
namespace: ${TARGET_NS}
spec:
interval: 1h0m0s
path: ./apps/testacme/manifests
prune: true
wait: true
sourceRef:
kind: GitRepository
name: sw-catalogs
namespace: flux-system
# Input parameters
postBuild:
substitute:
appname: ${APPNAME}
target_ns: ${TARGET_NS}
echo_message: ${ECHO_MESSAGE}
namespace: testapp
apiVersion: v1
kind: Service
metadata:
name: testapp
namespace: testapp
labels:
run: testapp
spec:
type: LoadBalancer
ports:
- name: tcp5678
protocol: TCP
port: 5678
targetPort: 5678
selector:
run: testapp
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: testapp-deployment
namespace: testapp
spec:
replicas: 1
selector:
matchLabels:
run: testapp
template:
metadata:
labels:
run: testapp
mexDeployGen: kubernetes-basic
spec:
volumes:
imagePullSecrets:
- name: docker.io
containers:
- name: testapp
image: docker.io/hashicorp/http-echo:0.2.3
imagePullPolicy: Always
ports:
- containerPort: 5678
protocol: TCP
args:
- "-text=\"hello\""
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: testapp
namespace: testapp
spec:
interval: 1h0m0s
path: ./apps/testapp/manifests
prune: true
wait: true
sourceRef:
kind: GitRepository
name: sw-catalogs
namespace: flux-system
#######################################################################################
# Copyright ETSI Contributors and Others.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#######################################################################################
apiVersion: v1
kind: Namespace
metadata:
name: testapp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment