blob: eb0eb353de1eefdd43e787ed0e073c5e16308992 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
package version
const (
// Use the script /hack/ci/bump-version.sh to update these constants. DO NOT UPDATE THEM MANUALLY!
// operatorVersion is the current BINARY version of the operator, not the image tag.
operatorVersion = "999.0.0"
// tagVersion is the images version tag.
// For example, docker.io/apache/incubator-kie-sonataflow-operator:main
//
// This tag must reflect an existing tag in the registry. In development, must follow the git branch naming.
// When released, this version should reflect the `major.minor` version in the registry.
// For example, docker.io/apache/incubator-kie-sonataflow-operator:10.0
tagVersion = "main"
serviceTagVersion = "weekly-latest"
)
// GetOperatorVersion gets the current binary version of the operator. Do not use it to compose image tags!
func GetOperatorVersion() string {
return operatorVersion
}
// GetTagVersion gets the current tag version for the operator and platform images.
func GetTagVersion() string {
return tagVersion
}
// GetServiceTagVersion gets the current tag version for the service images.
// TODO, unify all with tagVersion="main", when "main" tag is produced for DI and JS.
// Right now, Apache community only produces "weekly-latest", and "timestamped tags" for these services.
func GetServiceTagVersion() string {
return serviceTagVersion
}